XMLHttpRequest open method in javascript function not calling asp page load event.
-
I am using the XMLHttpRequest object to do a xmlhttp.open in a javascript function; however, when I make the open call the asp page's onload event never gets fired. See example below: function myfunct () { var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "myPage.aspx?Action=Save", true); } What I was trying to do was call a asp code behind method from javascript. I tried PageMethods but it only calls static methods. Then I attempted to go with the XMLHttpRequest object and use the asp code behind on load event to get the query string and process based on it's value. Now, I don't want a postback so I set the async parameter to true but now it still does not work. What is the best way to access non static code from javascript? Thanks, Steve Holdorf