PDA

Click to See Complete Forum and Search --> : Select box


oblio
March 6th, 2002, 08:14 PM
Hi I am in need of help. One of my clients uses Netscape 4.7 exclusively on their intranet. I have to populate a select box based on oracle db records, I do just this fine in JSP and when I view source in the web browser, all the data is there. I know this because there are a bunch of

" document.input.Product.options[document.input.Product.options.length] = new Option('10 Year Term','8');

document.input.Product.options[document.input.Product.options.length] = new Option('20 Year Term','21'); "

in my javascript function. The select box gets loaded fine in MSIE 5, Netscape 6 but in Netscape 4.7, it does not load at first. All the data is there as I have said, just not loading into the select box. The weirdest part though, is if you click the back button and then the forward button, the data is loaded perfectly into the select box. I am not usually programming for the web so I am not aware of any JS differences for such actions.

Juridian
March 6th, 2002, 09:01 PM
hmm...my first question is why are you filling the select box on the client side and does it really need to be done there?

oblio
March 6th, 2002, 09:06 PM
in html and javascript, all data is loaded on the client's side.

the data however is retrieved on the server's side

Juridian
March 6th, 2002, 09:16 PM
What I mean is, can't you load/write the select box on the server side and then send it to the client? Doing work that that client side is a pain with users having old browsers, turning javascript off, etc. If there is no real need to do it client side, I wouldn't do it there.