[jQuery] missing ) after argument list
I tried many things, but cant get rid of this error message by
firebug:
missing ) after argument list
testReplace1 works perfect, but testReplace2 gives the error.
Code:
<?php
// testvar
$testReplace1 = '<div>TEST</div>';
$testReplace2 = '<div id="pos1-0"><img name="pos1-0" src="test.gif"
height="50" width="50" border="0" alt="white_pawn"></img></div>';
?>
<taconite>
<eval><![CDATA[
$("#<?php echo $div; ?>").replaceWith("<?php echo $testReplace1; ?
>"); // WORKS PERFECT!!
//$("#<?php echo $div; ?>").replaceWith("<?php echo $testReplace2; ?
>")); // missing ) after argument list ???
]]>
</eval>
</taconite>
From Firebug with testReplace1:
[taconite] Plugin Version: 3.07
[taconite] [AJAX response] content-type: text/xml; status: 200 OK; has
responseXML: true
[taconite] type: undefined
[taconite] responseXML: [object XMLDocument]
[taconite] XML document root: taconite
[taconite] invoking "eval" command: $("#pos1-0").replaceWith
("<div>TEST</div>"); // WORKS PERFECT!! //$("#pos1-0").replaceWith
("<div id="pos1-0"><img name="pos1-0" src="test.gif" height="50"
width="50" border="0" alt="white_pawn"></img></div>")); // missing )
after argument list ???
[taconite] time to process response: 5ms
Many many thanks in advance for helping me!!
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home