JQuery options

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

JQuery options

John McKeon
I have an option that needs to render differently than what I have seen with most options.
The option value needs to be a jQuery object so that it should render as:
  "option": $("#anId")
Is this possible?

--
http://john-mckeon.us/pier
http://john-mckeon.us/footballpool  (login: guest/football)


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

Re: JQuery options

Bart Veenstra
you can try to use: 

JSStream on: ' $("#anId")'

But you can also use the current renderer to generate the jqeury selector:

(s jQuery id: #anId) 

and use that as an argument





2010/8/30 John McKeon <[hidden email]>
I have an option that needs to render differently than what I have seen with most options.
The option value needs to be a jQuery object so that it should render as:
  "option": $("#anId")
Is this possible?

--
http://john-mckeon.us/pier
http://john-mckeon.us/footballpool  (login: guest/football)


_______________________________________________
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
|

Re: JQuery options

Lukas Renggli
In reply to this post by John McKeon
There are various jQuery calls that accept other jQuery object as an
argument/option, e.g. from the tests:

    html ajax serialize: (html jQuery: 'form')

gives:

    $.ajax({"url":"http://www.seaside.st/","data":["_s=1","_k=a","1",$("form").serialize()].join("&")})

So it should be fine in all cases just to pass the other jQuery object
as argument.

Lukas

On 30 August 2010 11:47, John McKeon <[hidden email]> wrote:

> I have an option that needs to render differently than what I have seen with
> most options.
> The option value needs to be a jQuery object so that it should render as:
>   "option": $("#anId")
> Is this possible?
>
> --
> http://john-mckeon.us/pier
> http://john-mckeon.us/footballpool  (login: guest/football)
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



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