[Seaside] Re: how can I use result of onLoad() javascript function in session or view

Sabine Knöfel sabine.knoefel at gmail.com
Tue Feb 4 10:16:05 UTC 2014


Hi Bob,

thank you. This helps.
I use your code within the login screen and save the result in the session.

Regards
Sabine


On Mon, Feb 3, 2014 at 5:36 PM, Bob Arning-2 [via Smalltalk] <
ml-node+s1294792n4741238h73 at n4.nabble.com> wrote:

> Maybe you don't even need that.
>
>     html div
>         onClick: (html jQuery ajax
>             callback: [ :var | var halt]
>             value: (JSStream on: 'detectHtmlDate5()')
>         );
>         with: 'testing'.
>
> var is 'true' when I click on this. So, something like this could tell you
> what to render next. Alternately, the onload code could store the result in
> a js var which gets returned by the above method when user clicks.
>
> Cheers,
> Bob
>
>
>  On 2/3/14 11:00 AM, Sabine Knöfel wrote:
>
> short version of my question:
>
> how can I use the result of a javascript function which is called onLoad
> within my smalltalk code? Eg. set the result in an inst var of view or
> session?
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4741238&i=0>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.world.st/how-can-I-use-result-of-onLoad-javascript-function-in-session-or-view-tp4741219p4741238.html
>  To start a new topic under Seaside General, email
> ml-node+s1294792n86180h75 at n4.nabble.com
> To unsubscribe from Seaside, click here<http://forum.world.st/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1310907&code=c2FiaW5lLmtub2VmZWxAZ21haWwuY29tfDEzMTA5MDd8MTA0OTM5MTYx>
> .
> NAML<http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://forum.world.st/how-can-I-use-result-of-onLoad-javascript-function-in-session-or-view-tp4741219p4741396.html
Sent from the Seaside General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140204/58a33368/attachment.htm


More information about the seaside mailing list