radar Posted February 17, 2009 Share Posted February 17, 2009 Here is the code im having an issue with: function GetAttendees(qty) { var url = "getattendees.php?qty="+qty; var pars=''; //alert(url); var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete: ShowSubMyInfoControl }); } function ShowSubMyInfoControl(originalRequest) { var x=originalRequest.responseText; document.getElementById('attendees').innerHTML=x; } </script> What it is telling me is ajax is undefined. I checked prototype.js and on line 1587 of the file starts the common error of this: Ajax.Responders.register({ onCreate: function() { Ajax.activeRequestCount++; }, onComplete: function() { Ajax.activeRequestCount--; } }); and the code to include prototype.js onto the first page is: <script type='text/javascript' src="prototype.js"></script> The error on this in IE7 is: var myAjax = new Ajax.Request( url, { method: 'post', parameters: pars, onComplete: ShowSubMyInfoControl }); That is in the main php file. Any help on this is appreciated, thanks. Quote Link to comment Share on other sites More sharing options...
radar Posted February 17, 2009 Author Share Posted February 17, 2009 Okay again, I solved this on my own -- and without knowing javascript or ajax. My solution, in case others are having the same issue using prototype.js was to upgrade to a newer version of the script. The original version was 1.5.0 The upgraded version is 1.6.0.3 If you need the upgraded file you can get it by going here: http://www.prototypejs.org/download Hope it helps someone. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.