Welcome Guest, Not a member yet? Register   Sign In
form_dropdown()
#10

[eluser]Dave Stewart[/eluser]
[quote author="SeanJA" date="1214338167"]Isn't this all going to make for a really messy page though?[/quote]

I guess it depends how much content you have, and the context of the usage.
If it's something like a form, where you want to show alternative options, then the div route is a good one, as it's instant.
If it's a small amount of information, or you have to read a fair bit so you can afford the initial load, then it's also a good option.
If perhaps you need security, or are worried about download, then you coudl do it with AJAX, but there'll likely be a short delay.

[quote author="SeanJA" date="1214338167"]And all of those hidden divs that will be completely inaccessable for someone who can't use javascript (Sorry... I just hate relying too much on something that not everyone is using).[/quote]

Well, there's no point starting with either an onchange handler or JQuery (your suggestion) if you're going to worry about that!

If you are worried about that, then you just invoke the hidden divs functionality using a document.ready or body.onload handler, and if they've JS turned off, the divs will remain visible.

For 99% of apps these days, JS is a prerequisite.


Messages In This Thread
form_dropdown() - by El Forum - 06-23-2008, 10:42 PM
form_dropdown() - by El Forum - 06-23-2008, 11:44 PM
form_dropdown() - by El Forum - 06-23-2008, 11:48 PM
form_dropdown() - by El Forum - 06-23-2008, 11:50 PM
form_dropdown() - by El Forum - 06-23-2008, 11:55 PM
form_dropdown() - by El Forum - 06-24-2008, 01:30 AM
form_dropdown() - by El Forum - 06-24-2008, 03:51 AM
form_dropdown() - by El Forum - 06-24-2008, 06:15 AM
form_dropdown() - by El Forum - 06-24-2008, 09:09 AM
form_dropdown() - by El Forum - 06-24-2008, 09:19 AM
form_dropdown() - by El Forum - 06-24-2008, 09:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB