Works in FF3 not IE8

0 views
Skip to first unread message

mjhaston

unread,
Oct 28, 2009, 3:59:56 PM10/28/09
to Prototype & script.aculo.us
function ajaxRequest2(){
var url = "/cgidev2p/r_chgpwd.pgm";
var pars = 'v_current=' + escape($F('v_current')) + '&v_new=' +
escape($F('v_new')) + '&v_confirm=' + escape($F('v_confirm')) +
'&sessionid=' + escape($F('sessionid'));
var submitObj = document.getElementById('goButton');
new Ajax.Request(url, {
method: 'get',
parameters: pars,
onSuccess: function(transport){
var message = $('message');
if (!transport.responseText) {
//alert('alert 1');
}
else {
if (transport.responseText == 'You may submit your change.') {
v_messege.update(transport.responseText).setStyle({
background: '#dfd'
});
submitObj.disabled = false;
}
else {
v_messege.update(transport.responseText).setStyle({
background: '#fdd'
});
submitObj.disabled = true;
}
}
}
});
}

david

unread,
Oct 30, 2009, 5:16:52 AM10/30/09
to Prototype & script.aculo.us
Hi mjhaston,

What works and what doesn't ??
Where do you have any trouble ??
What is the question ??

--
david

Michael Haston

unread,
Nov 3, 2009, 10:42:44 AM11/3/09
to prototype-s...@googlegroups.com
This line of code doesn't seem to work in IE6.

v_messege.update(transport.responseText).setStyle({ background: '#dfd'});
Reply all
Reply to author
Forward
0 new messages