Re: Use php in js files?

2007-05-14 Thread hydra12
I ended up assigning the variable to a js variable in my view. That worked great. Thanks! On May 12, 3:21 pm, Vladimir <[EMAIL PROTECTED]> wrote: > assigning js var is better because .js file can be cached --~--~-~--~~~---~--~~ You received this message becaus

Re: Use php in js files?

2007-05-12 Thread Vladimir
assigning js var is better because .js file can be cached --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this gro

Re: Use php in js files?

2007-05-10 Thread cdomigan
I think you can just rename the .js file to .php. Or you could just assign it to a js var before you include your js script. On May 11, 7:27 am, hydra12 <[EMAIL PROTECTED]> wrote: > I'm using jquery and ext.js to build a user interface. When a page > loads, I have a ext.js menu loading at the t

Use php in js files?

2007-05-10 Thread hydra12
I'm using jquery and ext.js to build a user interface. When a page loads, I have a ext.js menu loading at the top with new, edit and delete options. I want to click edit on the menu and have my page reload in editable form via ajax. Here's my problem: the new button works fine, but I can't get