[Seaside] Seaside function onLoad problematic
Johan Brichau
johan at inceptive.be
Sun Nov 27 14:09:15 UTC 2016
Hi Dario,
Try:
html document addLoadScript: (html javascript: ‘so_initdtr()’)
As you can notice in the generated html output, the contents of the loadscript is a JS string.
cheers
Johan
> On 26 Nov 2016, at 19:00, dtrussardi at tiscali.it wrote:
>
> Ciao,
>
> into Pharo5.0 with Seaside 3.2 ( but i have the same problematic into Pharo 4.0 with Seaside 3.1 )
>
> when define a function to load when the page has finished loading
>
> with addLoadScript: 'so_initdtr()'.
>
> the function is not called.
>
>
> For example:
>
>
> renderContentOn: html
>
> html document addLoadScript: 'so_initdtr()'.
>
> html heading: 'Pippo'.
>
>
> The html report:
>
> <script type="text/javascript">function onLoad(){"soinitdtr()";};</script>
>
> but the browser don't call it when load the page.
>
> The relative javascript code is right loaded into the browser.
>
> I can call the so_initdtr() function with the browser console and it works fine.
>
>
> Thanks in advance!
>
> Dario
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list