Retrieving data from an asp page using jQuery's $.get ajax method

Blue Berry

New Member
jQuery's \[code\]$.get\[/code\] method should be an easy way of retrieving data generated by an .asp page running jscript, but so far I've not been able to make it work.A model example from the jQuery documentation is\[code\]$.get("test.php", function(data){ alert("Data Loaded: " + data);});\[/code\]But when I try using an asp page instead of the .php function I get nowhere.My asp page: \[code\]<% response.write "Hello World" %> \[/code\]My html page, apart from headers and src refs to jQuery, is simply\[code\]$.get("test.asp", function(data){ alert("Data Loaded: " + data);});\[/code\]Loading the page results in a blank page.Is there a reason why this can't happen, or have I just got it wrongly set up?
 
Back
Top