J
jaapkramer
I have this function which changes the image according to a selection
which is made by a select box.
This is all working great with Firefox and on a Mac. But it refuses to
work in IE. In IE it will change the source, but the image isn't
replaced (still get it?)
So i change the source to order1.gif, but order0.gif is still
displayed.
<select name=\"prior22345\" class=\"noprint\"
onChange=\"javascript:changePrior(22345)\" id=\"22345\">
<option value=\"0\">0</option>
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
<option value=\"4\">4</option>
<option value=\"5\">5</option>
<option value=\"6\">6</option>
<option value=\"7\">7</option>
<option value=\"8\">8</option>
</select>
this is the image i'm changing:
<img src='images/icons/order0.gif' id='prior22345'>
the function i'm executing:
function changePrior( waid )
{
prioriteit = document.getElementById( waid ).value;
document.getElementById('prior'+ waid).src = 'images/icons/order' +
prioriteit + '.gif';
checker();
}
\
which is made by a select box.
This is all working great with Firefox and on a Mac. But it refuses to
work in IE. In IE it will change the source, but the image isn't
replaced (still get it?)
So i change the source to order1.gif, but order0.gif is still
displayed.
<select name=\"prior22345\" class=\"noprint\"
onChange=\"javascript:changePrior(22345)\" id=\"22345\">
<option value=\"0\">0</option>
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
<option value=\"4\">4</option>
<option value=\"5\">5</option>
<option value=\"6\">6</option>
<option value=\"7\">7</option>
<option value=\"8\">8</option>
</select>
this is the image i'm changing:
<img src='images/icons/order0.gif' id='prior22345'>
the function i'm executing:
function changePrior( waid )
{
prioriteit = document.getElementById( waid ).value;
document.getElementById('prior'+ waid).src = 'images/icons/order' +
prioriteit + '.gif';
checker();
}
\