Concatenate Seaside/JQuery to Javascript

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

Concatenate Seaside/JQuery to Javascript

Robert Sirois
How can I do something like this? It's sorta cheating hehe.

Scaler.sendData = function() { ', (html jQuery ajax callback: [:v | self zoom: v ] value: 'Scaler.scale' ) asJavascript, '; };

I guess my problem is that I need the ajax url tied to the session.

Thanks,
RS

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

Re: Concatenate Seaside/JQuery to Javascript

Johan Brichau-2
Hi Robert,

I think this is what you are looking for:

(html jQuery ajax callback: [:v | self zoom: v ] value: (JSStream on: 'Scaler.scale') ) asFunction assignTo: 'Scaler.sendData'

if not, I think I misunderstood the question.

cheers,
Johan

On 23 Nov 2011, at 20:28, Robert Sirois wrote:

> How can I do something like this? It's sorta cheating hehe.
>
> Scaler.sendData = function() { ', (html jQuery ajax callback: [:v | self zoom: v ] value: 'Scaler.scale' ) asJavascript, '; };
>
> I guess my problem is that I need the ajax url tied to the session.
>
> Thanks,
> RS
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

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

FW: Concatenate Seaside/JQuery to Javascript

Robert Sirois
In reply to this post by Robert Sirois
Lol false alarm. It turns out if you put a function call after a return statement, the function won't be called ;)

RS


From: [hidden email]
To: [hidden email]
Subject: Concatenate Seaside/JQuery to Javascript
Date: Wed, 23 Nov 2011 12:28:42 -0700

How can I do something like this? It's sorta cheating hehe.

Scaler.sendData = function() { ', (html jQuery ajax callback: [:v | self zoom: v ] value: 'Scaler.scale' ) asJavascript, '; };

I guess my problem is that I need the ajax url tied to the session.

Thanks,
RS

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

RE: Concatenate Seaside/JQuery to Javascript

Robert Sirois
In reply to this post by Johan Brichau-2
Thanks Johan. That was the other thing I had to change.

rS

> Subject: Re: [Seaside] Concatenate Seaside/JQuery to Javascript

> From: [hidden email]
> Date: Wed, 23 Nov 2011 20:44:59 +0100
> To: [hidden email]
>
> Hi Robert,
>
> I think this is what you are looking for:
>
> (html jQuery ajax callback: [:v | self zoom: v ] value: (JSStream on: 'Scaler.scale') ) asFunction assignTo: 'Scaler.sendData'
>
> if not, I think I misunderstood the question.
>
> cheers,
> Johan
>
> On 23 Nov 2011, at 20:28, Robert Sirois wrote:
>
> > How can I do something like this? It's sorta cheating hehe.
> >
> > Scaler.sendData = function() { ', (html jQuery ajax callback: [:v | self zoom: v ] value: 'Scaler.scale' ) asJavascript, '; };
> >
> > I guess my problem is that I need the ajax url tied to the session.
> >
> > Thanks,
> > RS
> > _______________________________________________
> > seaside mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside