Im trying an example of Ajax.responder but the code isnt working. The code is mentioned below- code for html file <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Ajax with Prototype</title> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="ajax.js"></script> </head> <body> <img src="bulleta.gif" id ="inProgress" style="display: none" /> <button onclick="ajaxResponder();">Show image processing </button> </body> </html>
code for ajax.js function ajaxResponder(){ Ajax.Responders.register({ onCreate: showProcessing, onComplete: hideProcessing }); } function showProcessing() { if(Ajax.activeRequestCount > 0) document.getElementById('inProgress').style.display = 'inline'; } function hideProcessing () { if(Ajax.activeRequestCount <= 0) document.getElementById('inProgress').style.display = 'none'; } I am running this example but its not showing any image on screen. please help me out thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---