By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,258 Members | 1,679 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,258 IT Pros & Developers. It's quick & easy.

Running scripts based on user form input - help required.

P: n/a
Hi - a bit of a Javascript newbie here

Can anybody point me to a tutorial whereby I might be able to work out
this requirement.

1. User enters text in an input box on a html page.
2. They select via a radio button whether to search "My Site" or the
"Internet".
3. If they choose "My Site" it's action = an internal cgi script to
search my site.
4. If they choose "Internet" it displays results from google and
overture on the same page.

I've tried lots of different methods but can't seem to get anywhere

Any help would be appreciated
Nov 28 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VK

skinnybloke wrote:
Hi - a bit of a Javascript newbie here

Can anybody point me to a tutorial whereby I might be able to work out
this requirement.

1. User enters text in an input box on a html page.
2. They select via a radio button whether to search "My Site" or the
"Internet".
3. If they choose "My Site" it's action = an internal cgi script to
search my site.
4. If they choose "Internet" it displays results from google and
overture on the same page.

I've tried lots of different methods but can't seem to get anywhere

Any help would be appreciated


It is very easy:
1) go to <http://www.google.com/searchcode.html>
2) read and agree on "Terms of Service". In the particular you agree to
display Google credentials atop of search results. If you don't like
the terms - do not agree on them and do not use Google whatsoever.
Otherwise go to 3)
3) On the next page copy the 3rd variant (search Web / search my site).
4) Paste the code into frame/iframe on your page.
You are done!

Nov 28 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.