HighDots Forums  

problem with .ajax POST and quotes

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss problem with .ajax POST and quotes in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
phicarre
 
Posts: n/a

Default problem with .ajax POST and quotes - 11-07-2009 , 06:21 AM






Hi all,

Problem with .ajax with type = POST

error: missing ) after argument list

$output .= "<div style='width:150px;' ><a href=\"javascript:choice1
($id,";
$output .= "'" . $name . "'";
$output .= ")\">";

same error with

$output .= "<div style='width:150px;' ><a href=\"javascript:choice1
($id,";
$output .= "\"" . $name . "\"";
$output .= ")\">";

no error but display choice1(99, instead of choice1(99,"10")

$output .= "<div style='width:150px;' ><a href='javascript:choice1
($id,";
$output .= "'" . $name . "'";
$output .= ")'>";

The calling function declares dataType as script

What is the correct formulation ?

Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.