RE: Pass variable to jQuery

2009-05-08 Thread Dave Maharaj :: WidePixels.com
advanced but THANK YOU! Dave -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: May-09-09 12:00 AM To: cake-php@googlegroups.com Subject: Re: Pass variable to jQuery Hey, I just remembered that DIV can take a title attribute. So, set it up like: ... $(function() { $(

Re: Pass variable to jQuery

2009-05-08 Thread brian
>    }); > }); > > I need > $('.edit').editable('/memos/mynote/65489',   { > > Or another way to get the ID of the post to the mynote function? > > Thanks, > > Dave > > -Original Message- > From: brian [mailto:bally.z...@gmail.com]

RE: Pass variable to jQuery

2009-05-08 Thread Dave Maharaj :: WidePixels.com
ID of the post to the mynote function? Thanks, Dave -Original Message----- From: brian [mailto:bally.z...@gmail.com] Sent: May-08-09 6:13 PM To: cake-php@googlegroups.com Subject: Re: Pass variable to jQuery I usually use rel for just this purpose when it's a link. However, a div canno

Re: Pass variable to jQuery

2009-05-08 Thread brian
I usually use rel for just this purpose when it's a link. However, a div cannot have a rel attribute. I'm sure there's still a better way to do this for this case. On Fri, May 8, 2009 at 4:28 PM, mbavio wrote: > > Why not to create html attributes (like rel) that can be then > extracted by the

Re: Pass variable to jQuery

2009-05-08 Thread mbavio
Why not to create html attributes (like rel) that can be then extracted by the dom parser that jQuery has? I read this techinque somewhere, I cant remember where... On May 8, 10:16 am, brian wrote: > On Thu, May 7, 2009 at 2:45 PM, Dave Maharaj :: WidePixels.com > > wrote: > > > Right thanks, >

Re: Pass variable to jQuery

2009-05-08 Thread brian
On Thu, May 7, 2009 at 2:45 PM, Dave Maharaj :: WidePixels.com wrote: > > Right thanks, > > Going to test it out, try the first example first. > > Where do I put the codeblock you have? MVC? In the view. --~--~-~--~~~---~--~~ You received this message because you

Re: Pass variable to jQuery

2009-05-07 Thread DuncanBrown
first example first. > > Where do I put the codeblock you have? MVC? > > Thanks for the detailed response, > > Dave > > -Original Message- > From: brian [mailto:bally.z...@gmail.com] > Sent: May-07-09 3:38 PM > To: cake-php@googlegroups.com > Subject: Re: Pass vari

RE: Pass variable to jQuery

2009-05-07 Thread Dave Maharaj :: WidePixels.com
variable to jQuery There are a couple of ways to handle this. The most straightforward way would be to create a global JS var. You can do this by having Cake generate a JS block like so: $javascript->codeBlock('var post_key = ' . $this->data['Note']['post_key']

Re: Pass variable to jQuery

2009-05-07 Thread brian
There are a couple of ways to handle this. The most straightforward way would be to create a global JS var. You can do this by having Cake generate a JS block like so: $javascript->codeBlock('var post_key = ' . $this->data['Note']['post_key'] . ';'); As long as the jquery code that needs to acce