Re: seaside Digest, Vol 175, Issue 6

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Are you seriously generating html and then splicing out the generated javascript on the client side?

> On 10 Jul 2017, at 17:26, David Pennington <[email protected]> wrote:
> 
> 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.
> 
> In fact, I solved my problem quite simply by writing a few lines of JavaScript as follows:
> 
> 
> var first = data.indexOf("{");
> var next = data.indexOf("}");
> userJson = data.slice(first,next + 1);
> userJson = userJson.replace(/&quot/g, '\"');
> userJson = userJson.replace(/;/g, '');
> return $.parseJSON(userJson)
> 
> where the $.parseJSON is a jquery.mobile.js method.
> 
> This worked perfectly and I now have a fully organised JavaScript object that has the parsed JSON.
> 
> David
> --------- Original Message ---------
> From: <[email protected]>
> To: <[email protected]>
> Subject: seaside Digest, Vol 175, Issue 6
> Date: 07/10/2017 13:00:07 (Mon)
> 
> Send seaside mailing list submissions to
> 	[email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> or, via email, send a message with subject or body 'help' to
> 	[email protected]
> 
> You can reach the person managing the list at
> 	[email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of seaside digest..."
> 
> 
> 
> 
> Today's Topics:
> 
>    1. Removing HTTP headers (David Pennington)
>    2. Re: Removing HTTP headers (Philippe Marschall)
> 
> 
> 
> 
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 
> Message sent using Winmail Mail Server
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.