Hi all,
I have some code that works without error in FF but simply fails to run in IE.
I have done some alert based testing and the AJAX function does get data from the server but as soon as i try and populate any element i get nothing, no errors or any kind of hint in IE.
Here is the code
In the onSuccess branch i can alert the responseText before i use the $('headerMessages').update, but this update fails and all the code afterwards fails.
It appears that the $ notation is just not working in IE, anyone have any suggestions as i cannot really re-write the whole app.
Thanks in advance.
I have some code that works without error in FF but simply fails to run in IE.
I have done some alert based testing and the AJAX function does get data from the server but as soon as i try and populate any element i get nothing, no errors or any kind of hint in IE.
Here is the code
Code:
function doAjax(requestedAction, step, savestep, Obj){
new Ajax.Request(targetUrl,
{
method:'post',
parameters:{
action: requestedAction,
step:step,
savestep:savestep,
userid:'<?=$userid?>',
eventid:'<?=$eventid?>'
},
onLoading: function (){
$('headerMessages').update(loadImgHTML);
},
onSuccess: function(transport){
$('headerMessages').update(normalImgHTML);
var data = transport.responseText;
Obj.updateFormView(data);
},
onFailure: function(){
$('headerMessages').update(normalImgHTML);
$('headerMessages').update('There was a problem' );
}
});
}
It appears that the $ notation is just not working in IE, anyone have any suggestions as i cannot really re-write the whole app.
Thanks in advance.