Preserved Topic: HTML or JavaScript for Form Elements? |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: there...no..there..... |
posted 11-13-2001 20:58
I have noticed that some web sites use JavaScript to write the form elements of a drop down menu. What would be the advantage of doing it this was as opposed to just putting it in with HTML code? |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 11-13-2001 21:22 |
Maniac (V) Inmate From: there...no..there..... |
posted 11-13-2001 21:48
Well, that makes some sense. I can't figure out why someone would want to do this instead or just making it in the HTML script. Seems like it is just making more work. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 11-14-2001 01:45
I've also used PHP to grab MySQL data from a database, then create the drop menu on the fly. Also, you can use JavaScript to populate a drop menu based on certain criteria, such as the value of a previous form field. An example that comes to mind is Ford. Go to that page, and look at the VEHICLE SELECTOR. You notice that the bottom drop menu doesn't have any options until you choose something in the top drop menu. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-14-2001 02:23
This particular example is wierd because it does look like it uses a cgi for the menu to back up the JS. |
Maniac (V) Inmate From: there...no..there..... |
posted 11-14-2001 14:14
Thanks for the input guys! I guess I was just wondering if I was missing something on Symantec's site. I just didn't see any reason for them to do this. If they were concerned about the JavaScript Jump page thing for older browsers, they could have simply just used a "<noscript>" tag. |
Maniac (V) Mad Scientist From: New California |
posted 11-14-2001 22:34 |
Maniac (V) Inmate From: there...no..there..... |
posted 11-14-2001 22:57
Yep. That's my point exactly Bugimus. I was just wondering if I was missing something. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-14-2001 23:00
I can't see a good reason for it double (and triple) drop down menus are done very differently as in the example Pugzly's example shows and see here: |