<div dir="ltr">Hi guys,<div><br></div><div>It happens to me quite frequently that I have some issue in an AJAX calls. On Chrome, I see:</div><div><br></div><div><div>Uncaught SyntaxError: Unexpected token $ in JSON at position 0</div><div>    at JSON.parse (<anonymous>)</div><div>    at Function.n.parseJSON (jQuery.js:4)</div><div>    at HTMLDocument.<anonymous> (reps?_s=YZ0L_G1AYPiERSfd&_k=lD9O_xh3oh59qMMq:453)</div><div>    at HTMLDocument.dispatch (jQuery.js:3)</div><div>    at HTMLDocument.r.handle (jQuery.js:3)</div><div>    at Object.trigger (jQuery.js:3)</div><div>    at x (jQuery.js:4)</div><div>    at XMLHttpRequest.b (jQuery.js:4)</div></div><div><br></div><div>But there is no way for me to know what triggered that at Seaside level. If I inspect the "VM2043:1" kind of link in the Chrome console, I get to the script generated by my ajax which is something like:</div><div><br></div><div>$("#id174").replaceWith("<div class=\"companyReportMainDiv\" id=\"id232\"><div id=\"popupContainer9358488\" class=\"popupContainer\"></div><script<br></div><div>..........</div><div>)</div><div><br></div><div>Chrome shows me that with a red underline like if that would have an error, but such JS is correct. </div><div><br></div><div>Any idea how can I know what is going on? </div><div><br></div><div><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>