|
Problems with AJAX POST
Hi All,
In my jQuery I am executing the following AJAX:
$.ajax(
{
type: "GET",
url: "get_modules.php",
data: get_string,
success: function(result)
{
$("#step-2 ul").html(result);
}
});
The PHP code get_modules.php returns the following dynamically generated HTML:
<li><a href="#">Page Title 1</a></li>
<li><a href="#">Page Header 1</a></li>
<li><a href="#">Spotlights 1</a></li>
My Firefox Firebug shows the HTML is being returned correctly but then I get the following jQuery error in the console...
Syntax Error
_block_windowOpen(); function () {\n
and the jQuery script dies. This does not happen on all systems, I am going a bit nutty trying to determine root cause...any suggestions? Thanks!
|