fmbma
Posts: 58
|
| Posted: 10/31/2006, 4:26 PM |
|
I have multiple dependent listboxes and use the client-side onchange event to to use a window.location command to reload the page with the value of the independent listbox in the querystring. This works fine in IE, but not in Netscape or Firefox. I would like to stay with this method. Is there a way to get it to work with non-IE browsers?
thanks
|
 |
 |
Edd
Posts: 547
|
| Posted: 11/01/2006, 3:12 AM |
|
Fred,
There are some instances where CCS "onBind" methods don't work in other browsers. Netscape is one of them.
To get around this you will need to code each event manually, ie. go into designer and delete all the client events, then go to the raw HTML and add the onChange="somefuncion();" to each of the listboxes.
Also watch your uppper / lower case in function calls "onchange" versus "onChange" IE doesn't care Netscape does not.
Please use Firefox as the "preferred" testing and development browser. I have nothing against IE but Firefox complies to more standards. If it works in Firefox it generally works in other browsers.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
WKempees
|
| Posted: 11/01/2006, 10:10 AM |
|
And further to Edd's advice,
Firefox has a magnitude of useful extensions and plugins, one of which
enables you to simulate other browsers (IE)
Javascript error reporting is superior to the yellow triangle IE gives to
you
Walter
|
|
|
 |
fmbma
Posts: 58
|
| Posted: 11/02/2006, 6:19 AM |
|
Thank you both for your replies. Putting the code into the html rather than an event did the trick. For those not familiar with this, the solution looks something like this:
<script type="text/javascript">
function selectchange(theSelect )
{
theIndex = theSelect .selectedIndex;
selValue = theSelect .options[theIndex ].value;
window.location.href = "searchpage.asp?SearchType=xxx&s_var=" + selValue ;
}
</script>
...
<select class="simple" name="{s_control_Name}" onchange="selectchange(this);">
|
 |
 |
|