Hi Paul,<div><br></div><div>Did you solve this problem? If not perhaps there's no need to encode the elements of the Dictionary separately. Perhaps something like:<br><br></div><div><br></div><div>renderContentOn: html<br>
|event1 events|<br><br>event1:=Dictionary new.<br>event1 at: 'title' put:'event1'.<br>event1 at:'start' put:'2010-06-20'.<br><br>html div<br> id:'calendar';<br> script: (html jQuery this fullCalendar theme:true).<br>
html script:( (html jQuery id:'calendar') fullCalendar events:(event1 asJson) )<br></div><div><br></div><div>or even try without the asJson.</div><div><br></div><div>It looks as though your Dictionary is Jsonified/Javascriptified three times.</div>
<div><br></div><div>Compare the output of:</div><div><br></div><div><div>event1:=Dictionary new.</div><div>event1 at: 'title' put:'event1'.</div><div>event1 at:'start' put:'2010-06-20'.</div>
<div>event1 asJson</div></div><div><br></div><div>with:</div><div><br></div><div><div>event1:=Dictionary new.</div><div>event1 at: 'title' put:'event1'.</div><div>event1 at:'start' put:'2010-06-20'.</div>
<div>event1 asJson asJson asJson</div></div><div><br></div><div>Hope this helps</div><div><br></div><div>Nick</div><div><br><div class="gmail_quote">On 20 June 2010 17:22, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi -<br>
<br>
I'm trying to generate a JSON array and can't figure out how to get rid of the escaped double quote characters.<br>
<br>
When I do this:<br>
<br>
renderContentOn: html<br>
|event1 events|<br>
<br>
event1:=Dictionary new.<br>
event1 at: 'title' put:'event1'.<br>
event1 at:'start' put:'2010-06-20'.<br>
events:= String streamContents: [:stream | event1 jsonOn: stream].<br>
<br>
html div<br>
id:'calendar';<br>
script: (html jQuery this fullCalendar theme:true).<br>
html script:( (html jQuery id:'calendar') fullCalendar events:(Array with:events) )<br>
<br>
<br>
in the web page I get:<br>
<br>
$("#calendar").fullCalendar("{\"events\":[\"{\\\"title\\\":\\\"event1\\\",\\\"start\\\":\\\"2010-06-20\\\"}\"]}")<br>
<br>
<br>
but what I seem to need to get the jQuery FullCalendar (<a href="http://arshaw.com/fullcalendar/" target="_blank">http://arshaw.com/fullcalendar/</a>) plug-in to work is this:<br>
<br>
$("#calendar").fullCalendar({events:[{title:"event1",start:"2010-06-20"}]})<br>
<br>
<br>
Thanks for any guidance you can provide...<br><font color="#888888">
<br>
<br>
Paul DeBruicker<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br></div>