<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Are you seriously generating html and then splicing out the generated javascript on the client side?<div class=""><div class=""><div class=""><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 10 Jul 2017, at 17:26, David Pennington <<a href="mailto:david@totallyobjects.com" class="">david@totallyobjects.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div class="">Thanks for the advice however, I always find responses like this outside of my capabilities due to my lack of in-depth knowledge of Seaside.<div class=""><br class=""></div>In fact, I solved my problem quite simply by writing a few lines of JavaScript as follows:<div class=""><br class=""></div><div class=""><br class=""></div><div class="">var first = data.indexOf("{");</div><div class="">var next = data.indexOf("}");</div><div class="">userJson = data.slice(first,next + 1);</div><div class="">userJson = userJson.replace(/&quot/g, '\"');</div><div class="">userJson = userJson.replace(/;/g, '');</div><div class="">return $.parseJSON(userJson)</div><br class="">where the $.parseJSON is a jquery.mobile.js method.<div class=""><br class=""></div>This worked perfectly and I now have a fully organised JavaScript object that has the parsed JSON.<div class=""><br class=""></div>David<br class="">--------- Original Message ---------<br class=""><b class="">From:</b> <<a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a>><br class=""><b class="">To:</b> <<a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a>><br class=""><b class="">Subject:</b> seaside Digest, Vol 175, Issue 6<br class=""><b class="">Date:</b> 07/10/2017 13:00:07 (Mon)<br class=""><br class=""><pre style="white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" class="">Send seaside mailing list submissions to
        <a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
or, via email, send a message with subject or body 'help' to
        <a href="mailto:seaside-request@lists.squeakfoundation.org" class="">seaside-request@lists.squeakfoundation.org</a>

You can reach the person managing the list at
        <a href="mailto:seaside-owner@lists.squeakfoundation.org" class="">seaside-owner@lists.squeakfoundation.org</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of seaside digest..."

</pre>

<br class="">
<br class="">
<hr class="">
<br class="">
<pre style="white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" class="">Today's Topics:

   1. Removing HTTP headers (David Pennington)
   2. Re: Removing HTTP headers (Philippe Marschall)

</pre>

<br class="">
<br class="">
<hr class="">
<br class="">
<pre style="white-space:pre-wrap; white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; word-wrap:break-word;" class="">_______________________________________________
seaside mailing list
<a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>

</pre>
</div>
<br class=""><hr class=""><pre class="">Message sent using Winmail Mail Server</pre>
_______________________________________________<br class="">seaside mailing list<br class=""><a href="mailto:seaside@lists.squeakfoundation.org" class="">seaside@lists.squeakfoundation.org</a><br class="">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br class=""></div></blockquote></div><br class=""></div></div></div></div></body></html>