hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : JavaScript Help Please...!
Reply

Forum Jump

JavaScript Help Please...!

Reply Post New Thread In Web Hosting Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Guest
 
Posts: n/a
Post

Hi,
OK, this is somewhat hard for me, so any help would be great!

Here's what I need:

I want a drop down box, with two choice (ex: 1 & 2).
Then I have a form.
Now..
if the person chooses #1, so it should send the data to: www.myhost.com/cgi-bin/form1.pl

Else..
is he chooses #2, it should send the data to www.myhost.com/cgi-bin/form2.pl

Any ideas?

P.S. It doesn't have to be a drop down box. Anyhthing that works is great!

Thanks!

~I put this thread here b/c I don't know where else to put it~



Sponsored Links
  #2  
Old
Web Hosting Master
 
Join Date: Mar 2000
Location: Not here
Posts: 1,437
Post

This site can probably help you. They have lots of Java scripts of all types. http://javascript.internet.com/

  #3  
Old
Guest
 
Posts: n/a
Post

(Not sure how this relates to web hosting, but...)

Another good source for Javascript code is:
http://javascriptsource.com

Very nice site with lots of stuff.

Sponsored Links
  #4  
Old
Guest
 
Posts: n/a
Smile

...and I was glad I could actually share some javascript knowledge I had (my javascript knowledge = go to javascriptsource.com !)

  #5  
Old
Junior Guru Wannabe
 
Join Date: Mar 2000
Posts: 41
Talking

Thanks Duster & TK, you are right its not "hosting" but isn't it nice to simply be able to help someone sometimes. *s*

  #6  
Old
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Post

It is just my opinion that javascipt should not be used for: forms (effects within forms are fine), or navigation (including redirection based on making a choice such as the one you mentioned).

Javascipt is great, but not every browser works properly with all scripts. You can generally do these types of redirects/navigation with cgi (which will work with everything).

  #7  
Old
Web Hosting Guru
 
Join Date: Jun 2000
Posts: 309
Post

You have made a valid point, Chicken !

CGI is definitely the better way to go !!!

Unfortunately, there are a lot of people out there who don't want to bother upgrading to a newer version of their browser !!!

  #8  
Old
Web Hosting Guru
 
Join Date: Jun 2000
Posts: 309
Unhappy

Thought that I should also add that Javascript may not be executed in exactly the same way by Netscape and Internet Explorer sometimes... it's quite rare though after IE 5.0

Also, VBScript isn't supported by Netscape at all. It is just ignored!!

Until there is total cross-browser compatibility with such scripting languages, such factors can be quite a nuisance once in a blue moon :O(

And total cross-browser won't happen so easily unless both Netscape and Microsoft open up their respective source codes for both these scripting languages.


  #9  
Old
Web Hosting Master
 
Join Date: Jun 2000
Location: Southern California
Posts: 12,121
Post

And while it is a nuisance for some scripts (clock, random quotes, etc.), it becomes a major issue when it comes to navigation, etc.

I use a DHTML script for navigation on site I am working on, but what you can't see, is that behind it (hidden by the script's menus), are text links if the script doesn't load and display properly.

Just be sure if you use js this way that you have *some* way of handling non-js viewers.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Swarmify's New Approach to Content Delivery Uses Site Visitors to Accelerate Content Web Hosting News 2014-05-01 08:34:03
Web Hosting Sales and Promos Roundup - December 6, 2013 Web Hosting News 2014-05-23 15:42:37
Nasuni Launches Cloud Mirroring Feature to Storage Solution Web Hosting News 2013-08-08 14:15:27
OpenStack and the AWS API Debate Web Hosting News 2014-05-09 12:40:29
Facebook's Recently Acquired Mobile App Platform Parse Launches Web Hosting for Developers Web Hosting News 2013-05-08 10:49:17


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?