Client side javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Client side javascript

Eric Hochmeister-2
Is it necessary to generate the javascript while rendering a
component/page?  Is it possible to write client side javascript
separate from what seaside generates?  I'm trying to understand how
you would resolve a callback, or if that's possible.  When you
generate the javascript inline in Smalltalk, this information is
populated for you.  But when writing javascript, you can't just
reference a url.

Is anyone doing this?

Thanks,

Eric
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Client side javascript

Lukas Renggli
> Is it necessary to generate the javascript while rendering a
> component/page?  Is it possible to write client side javascript
> separate from what seaside generates?  I'm trying to understand how
> you would resolve a callback, or if that's possible.  When you
> generate the javascript inline in Smalltalk, this information is
> populated for you.  But when writing javascript, you can't just
> reference a url.
>
> Is anyone doing this?

Yes, anything that is more than a few lines of Javascript should be
written externally. Most people that have a lot of sophisticated
Javascript do exactly that.

At some point you have to hook these things into the HTML you
generate. At this point you can pass in callback URLs from Seaside.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside