D
dean.karres
Hi,
I am working with ajax and have a working tool under netscape, opera
and safari but not IE 6.x (or earlier as far as I can tell).
I have a section of code:
....
<input style="margin-left:20px;margin-bottom:10px;" type="button"
id="PSID_request"
value="Generate Specimen ID"
onclick="getSpecimenID(['PSID_request'], ['PSID']); return true;" />
<div style="margin-left:20px;margin-bottom:20px;background-color:#eee;
font-family:Arial,sans-serif;font-size:1em;padding:2px;text-align:center;
border:1px solid #999;width:9em;min-height:20px;" id="PSID"> </div>
....
The problem: in netscape/firefox and the other working browsers,
everytime I click the button the onclick event is triggered, the
javascript function runs and through the magic of ajax a result is
returned to the following DIV.
In IE, however, If I start the browser from scratch and visit the page
once and click the button once I get a result. If I click the button
again the DIV clears and nothing happens.
I have instrumented the server-side script to log progress as it runs.
In the IE case, on the first button click the function is called and
ajax calls the server-side routine. Afterwards the server-side script
is not run.
I have set the "return true" to false but I'm not sure what else to
try. ideas?
I am working with ajax and have a working tool under netscape, opera
and safari but not IE 6.x (or earlier as far as I can tell).
I have a section of code:
....
<input style="margin-left:20px;margin-bottom:10px;" type="button"
id="PSID_request"
value="Generate Specimen ID"
onclick="getSpecimenID(['PSID_request'], ['PSID']); return true;" />
<div style="margin-left:20px;margin-bottom:20px;background-color:#eee;
font-family:Arial,sans-serif;font-size:1em;padding:2px;text-align:center;
border:1px solid #999;width:9em;min-height:20px;" id="PSID"> </div>
....
The problem: in netscape/firefox and the other working browsers,
everytime I click the button the onclick event is triggered, the
javascript function runs and through the magic of ajax a result is
returned to the following DIV.
In IE, however, If I start the browser from scratch and visit the page
once and click the button once I get a result. If I click the button
again the DIV clears and nothing happens.
I have instrumented the server-side script to log progress as it runs.
In the IE case, on the first button click the function is called and
ajax calls the server-side routine. Afterwards the server-side script
is not run.
I have set the "return true" to false but I'm not sure what else to
try. ideas?