$.get("MyPage.aspx", {foo:"bar"}, function(results){
Some Js code here.
});
Question – In MyPage.aspx, I have window.onload method. This is not being executed.
Your comments?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$.get()only retrieves a file from the web server.It is the browser that executes
window.onloadetc. if the HTML file is displayed. If you just load the file to retrieve its content, no client-side JS code is executed.