thx miles. the JS code is in the same view as my php stuff....so it
should work.. i'll give it a try when i get home.

again, i have learned sth.

thank you :)



On 9 Sep., 01:30, Miles J <[email protected]> wrote:
> You cant pass PHP variables to an external Javascript file. If the JS
> was in the page, you could do:
>
> $('#my_div').load('viewproduct, {data: '<?php echo $content; ?
>
> >'}).fadeIn('slow');
>
> On Sep 8, 1:19 pm, Tomfox Wiranata <[email protected]> wrote:
>
> > hi,
>
> > i have this jquery function
>
> > $('#my_div').load('viewproduct, {data: title_content}).fadeIn('slow');
>
> > but instead of passing the JS variable title_content i want to pass a
> > php variable? does anybody know how to do that?
>
> > thank you :)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to