Forum Moderators: phranque
I am looking for ideas on replacing our current double combo select boxes in our application Non-JavaScript... Any ideas are appreciated :)
A little background:
I hope this makes sense, grammar and I don’t mix that well ;) Again many thanks for any ideas or inspirations that you guyz might have!
KR,
-gs
A tag library would necessitate going back to the server and a database call every time the user clicked a button, right? If you have so much data it's slowing down your page, isn't that a database you'd want to query as little as possible?
g.
User selects the first drop down box and JavaScript executes onchange="document.FORMNAME.submit()". This submits the document.
In my script I read all the values and determine what to show in the second selection. Populate selection and display HTML to the browser. I actually have three choices.
I sent you a sticky with example.
Many thanks for your response! In answer to your suggested fixes:
The reason the select boxes are on the one page is to filter the query that will be shown in the search. At present we have an upper template/tile with a few text boxes and the select boxes (in total around 9 of these are on the page) with the search button, below is where the results are shown. I think by adding another page to this equation would only complicate the process (but I shall put it forward).
>A tag library would necessitate going back to the server and a database call every time the user clicked a button, right?
This is correct, this is what we were trying to avoid hence the reason I included
>Has anyone ever came across any HTML that can do what we are trying to do avoiding JavaScript where we could send a query to the database and have the second selection made available to the client without if possible refreshing the page?
>If you have so much data it's slowing down your page, isn't that a database you'd want to query as little as possible?
What we are trying to do is avoid having so much html/javascript and programming logic on one page!
Thanks for that suggestion though J
-gs
I had to it this way because having thousands of codes in a javascript was making the page very slow to load.
I found some decent code on the Internet (it works for various versions of IE5+ and Netscape6+) to base my code on - just search for 'remote scripting iframe' and it will be the top result
moltar are you using Perl or CGI?
IFrames sounds like a nice way forward, does it have any effect on overheads etc? (speed & performance is the issue we are trying to avoid) I realize that avoiding a minimal amount of JavaScript is unavoidable!
KR,
-gs