PDA

View Full Version : jQuery Problems with AJAX POST


davidwny
04-06-2009, 08:25 PM
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!

Uzbekjon
04-15-2009, 04:39 PM
What is in your "get_string" ?