× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You can't get there from here. It's a known issue that you cannot set
the innerHtml on a select in IE and have it do what you want. Like it?
Nope. But there it is, deal with it. :-)

Options:

1 (Recommended): Return the <select> part too from the Ajax call and
wrap the select in a span and set the span's innerHtml, works fine.

2: Return just the <option> part, and wrap it up in a select in JS and
then see option #1.

3: Return the items you want in JSON, or other non-html format, and use
the .Add method to add the options to the select tag

Also... Why on earth are you not using a toolkit? If you take option 1
(my recommendation) and had prototype.js as your toolkit your entire
code could (from the <script> to the </script>) be replaced with:

function updDropDown(fldName) {
Ajax.Updater('shiptospan',
'/cgi-bro/SYG930?DDMODE=S&DDVIEWNAME=CB01HP&DDFLDNAME=BTCD&DDDEFAULT='
+ $F('fldName'));
}

where 'shiptpspan' is the id of the span you wrap the shipto select in,
and it would be x-browser to boot.

-Walden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.