[Seaside] how call onLoad() script

Paul DeBruicker pdebruic at gmail.com
Thu Jul 4 14:27:50 UTC 2013


Hi Sabine,

Try:

$(theView).filter('script').each(function () {
   $.globalEval(this.text || this.textContent || this.innerHTML || '');
});

after theView is loaded into #center=

It iterates over the HTML in theView inst var and executes the scripts

Good luck

Paul



On 07/04/2013 07:00 AM, Sabine Knöfel wrote:
> Hi
> 
> I use JQUILayout.
> (In my app, on the left is a menu, in the center different pages depending
> on the menu selection).
> 
> For opening a certain page in the center, after clicking in the menu, I make
> something like:
> 
> html << (html jQuery: #center) html: theView.
> 
> This opens and renders the page -> ok.
> 
> But it does not perform the onLoad() script of theView.
> 
> If I force the same page to reload, the onLoad() (Stg+F5), then fires.
> 
> I think I should send something to theView and need a hint for this.
> Sabine
> 
> 
> 
> --
> View this message in context: http://forum.world.st/how-call-onLoad-script-tp4697350.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 



More information about the seaside mailing list