Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inner html refresh question

Status
Not open for further replies.

bradoirs

Technical User
Jul 8, 2009
35
GB
I am using an inner html to replace a dropdown pick list which is dependent on inputs elsewhere. The picklist changes and all works great in explorer but in other browsers it changes the picklist but will not read the new values from the form retaining any select value already selected before the replacement. Any ideas? keep them simple please as very new to this.
 
I don't find your question clear enough to help (particularly the latter half). Could you rephrase any provide your code and examples of the issue you face.
 
Well, with as general as your question was; it sounds to me like your problems (and how to solve them) are:

1.) You should never, ever, EVER program JavaScript while playing with a Microsoft browser, unless it's an app you're making for internal use only on a business/personal network where all computers are under your control, and use only Microsoft browsers. Unfortunately, no amount of scolding from the US court system, or either US or international standards organizations will ever convince Microsoft to design a single program that conforms to, and properly implements a standards set (i.e. the JavaScript language standards). Because of that, everything programmed in JavaScript has to have a special self-reprogramming ability to work on a)every other browser, and b) Microsoft garbage.

2.) It sounds to me like you got suckered into using an i.e.-specific (here goes the standards non-compliance again) call to update your innerHTML on your pick list iframe. If you re-write your JavaScript to read the entire form, and rebuild the entire picklist from it after each onChange() event, I think that'll be the most universal solution for your problem (and, coincidentally, if you simply write the function to do this once, then call it from each event, likely the easiest too).

Aside from that, like jpadie said, we'd need much more specific information on your problem in order to offer more case-specific help to you.

I hope this helps;
robherc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top