Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-06-2009, 07:25 PM   PM User | #1
davidwny
New to the CF scene

 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
davidwny is an unknown quantity at this point
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!
davidwny is offline   Reply With Quote
Old 04-15-2009, 03:39 PM   PM User | #2
Uzbekjon
New Coder

 
Join Date: Feb 2009
Location: Uzbekistan
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Uzbekjon is an unknown quantity at this point
What is in your "get_string" ?
Uzbekjon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Advertisement
Log in to turn off these ads.