HTML <form> and redirecting the result

This is a discussion on HTML <form> and redirecting the result within the RUBY forums in Programming Languages category; Hi there, since a long time I am using a very simple ruby script that translates input like 'goo' or 'g' or 'google' to the remote URL of google via a big case menu. It has maybe one thousand entries or more, keeping my local pages together to. For example if i type 'open ruby' it will open my local ruby page. 'browse php' it will open my local php page (i decided that my local stuff has priority over remote php webpage) Anyway, the point of my message here is that this works beautifully, and I thought that I ...

Go Back   Application Development Forum > Programming Languages > RUBY

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 10:52 PM
Marc Heiler
Guest
 
Default HTML <form> and redirecting the result

Hi there,

since a long time I am using a very simple ruby script that translates
input like

'goo' or 'g' or 'google' to the remote URL of google

via a big case menu.

It has maybe one thousand entries or more, keeping my local pages
together to.

For example if i type
'open ruby'
it will open my local ruby page.
'browse php'
it will open my local php page (i decided that my local stuff has
priority over remote php webpage)

Anyway, the point of my message here is that this works beautifully, and
I thought that I would like to have a little html <form> element which
redirects me to the page once i finished typing and pressed submit (or
hit enter)

But how do I do this?

For example, if i type 'ruby' in the <input> field, i would like to be
redirected to the ruby homepage or similar when i press enter.

Will I need javascript for this redirection? Or a .cgi page required?

Any hints appreciated. If possible I'd rather prefer pure ruby than
anything with javascript. I dont like leaving ruby. But for this
functionality it would be fine, because right now I always use a shell,
and firefox does not seem to have a nice happy shell
--
Posted via http://www.ruby-forum.com/.

Reply With Quote
  #2  
Old 08-27-2008, 11:23 PM
Lay Lee
Guest
 
Default Re: HTML <form> and redirecting the result

[Note: parts of this message were removed to make it a legal post.]

if i need to do this function, i'll use javascript.


On Thu, Aug 28, 2008 at 10:52 AM, Marc Heiler <shevegen@linuxmail.org>wrote:

> Hi there,
>
> since a long time I am using a very simple ruby script that translates
> input like
>
> 'goo' or 'g' or 'google' to the remote URL of google
>
> via a big case menu.
>
> It has maybe one thousand entries or more, keeping my local pages
> together to.
>
> For example if i type
> 'open ruby'
> it will open my local ruby page.
> 'browse php'
> it will open my local php page (i decided that my local stuff has
> priority over remote php webpage)
>
> Anyway, the point of my message here is that this works beautifully, and
> I thought that I would like to have a little html <form> element which
> redirects me to the page once i finished typing and pressed submit (or
> hit enter)
>
> But how do I do this?
>
> For example, if i type 'ruby' in the <input> field, i would like to be
> redirected to the ruby homepage or similar when i press enter.
>
> Will I need javascript for this redirection? Or a .cgi page required?
>
> Any hints appreciated. If possible I'd rather prefer pure ruby than
> anything with javascript. I dont like leaving ruby. But for this
> functionality it would be fine, because right now I always use a shell,
> and firefox does not seem to have a nice happy shell
> --
> Posted via http://www.ruby-forum.com/.
>
>



--
Regards

Lilei

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.