<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thomas,<br>
<br>
the JS function runs down in the web browser and returns its
result locally. So there is no easy way to get the results back to
the server, as far as I know. Calling the function can also only
be accomplished down in the Browser, e.g. by using events line
onLoad etc.<br>
<br>
What we usually do in Kontolino is to send such results back to
the server using an AJAX call. <br>
<br>
It is not easy to provide sample code, because you don't exactly
state how and when you want a function to be called and such.<br>
So just a hint:<br>
<br>
we ship down JS code that hooks into Document.onload() from our
FileLibrary or external source (using html document
addLoadScript:) and instead of simply returning results we send an
AJAX call to the server to inform it about the results. The tricky
part here is to give that script a callback name to call back to.<br>
Please ask for more specific info.<br>
<br>
HTH <br>
<br>
Joachim<br>
<br>
<br>
Am 22.09.15 um 07:57 schrieb Thomas Heniart:<br>
</div>
<blockquote
cite="mid:CALPibtwzvFq_rRQ8E_O7UPQVdzjM3Azzqu+iTUMpy8LWUstGhQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi everyone,<br>
<br>
</div>
Is it possible to get the result after calling a JS
function from Seaside<br>
<br>
</div>
For exemple I have a function in a JS file with a
function test() which return true,<br>
<br>
</div>
Can we do something like <br>
result := html aMethod: 'test()'. <br>
which execute my function and get the result as a String
in result ?<br>
</div>
<br>
</div>
Cheers,<br>
</div>
Thomas<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel <a class="moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1 <a class="moz-txt-link-freetext" href="http://www.objektfabrik.de">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg <a class="moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
</pre>
</body>
</html>