Jan 05

Begin to use AJAX with signup form, I found that my function have some error with IE (innerHTML), cannot delete node or replace text in element id (but just work with Firefox). Then I use moo.ajax to replace that function and below code is work for IE (v.6 and later) and Firefox.

Include this javascript in header

Use this function to post and get reply from server

function ajax_req() {
new ajax(‘check.php’, { postBody: pars, onComplete: chState });
}
function chState(request) {
var rs=request.responseText;
alert(rs);
}

Useful links

Comments are closed.

preload preload preload