showing line on body tag.so line no is not relevent.but when i add this code then only get error.may be brackets are not matching .not sure.
showing line on body tag.so line no is not relevent.but when i add this code then only get error.may be brackets are not matching .not sure.
Love is physical attraction and mental destruction
I'm not sure about this PrototypeJS stuff...I've never used it. I've always used XmlHttpRequest object.
For what reason do you want to avoid XmlHttpRequest?
I guess the best way to troubleshoot this is to look at their documentation: Prototype JavaScript framework: Ajax.Ajax.Request
jmurrayhead
If you agree, give me rep. If my post helped you, click "Thanks".
If you like it here...throw us a few bones to help support us.
ok now gotted the problem i used below function .and problem is with unterminated string in my code.thanks Jmh.cheers!!
Code:window.onerror = trap_error; function trap_error(error, url, line) { alert("There was an error from '" + url + "' at line '" + line + "'.\n\n" + error); return true; }Code:var ajaxReq = new Ajax.Request( sTarget, { method: 'get', parameters: true, evalScripts:true, onSuccess: function(request) { alert(request.responseText); }, onException: function(req,exception) { alert("The request had a fatal exception thrown.\n\n" + exception.message); return true; }, onFailure: function(request) { return reloadPage(); } } );
Love is physical attraction and mental destruction
Bookmarks