Ajax without the Helper

2009-02-24 Thread inna

Hi, I'm a long time web designer who has just started looking into
cakePHP, unfortunately i'm stuck and need help with an issue that for
the life of me I cannot find an answer to.
I'm trying to migrate my old ajax code from my existing website, I
have read the cakephp documentations but cannot find an answer.

I'm trying to get my old scripts working without using the built in
helper for now. Literally copied and pasted it should work. Just a
simple window pop up script.

I've referenced my js scripts on the default.ctp layout, I have
referenced my css, I have checked if the tags are pointing to the
right classes, everything SHOULD be working right now.

Cake doesn't throw an exception but it doesnt let me use my scripts
either... Does it handle files differently? Do I need to change a
configuration somewhere?

Help! Thank you in advance.

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



Re: Ajax without the Helper

2009-02-24 Thread Gonzalo Servat
On Tue, Feb 24, 2009 at 4:22 AM, inna inna@gmail.com wrote:


 Hi, I'm a long time web designer who has just started looking into
 cakePHP, unfortunately i'm stuck and need help with an issue that for
 the life of me I cannot find an answer to.
 I'm trying to migrate my old ajax code from my existing website, I
 have read the cakephp documentations but cannot find an answer.

 I'm trying to get my old scripts working without using the built in
 helper for now. Literally copied and pasted it should work. Just a
 simple window pop up script.

 I've referenced my js scripts on the default.ctp layout, I have
 referenced my css, I have checked if the tags are pointing to the
 right classes, everything SHOULD be working right now.

 Cake doesn't throw an exception but it doesnt let me use my scripts
 either... Does it handle files differently? Do I need to change a
 configuration somewhere?

 Help! Thank you in advance.


Hi Inna,

Can you provide the URL?

- Gonzalo

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



Re: Ajax without the Helper

2009-02-24 Thread brian

On Tue, Feb 24, 2009 at 1:22 AM, inna inna@gmail.com wrote:.

 I've referenced my js scripts on the default.ctp layout, I have
 referenced my css, I have checked if the tags are pointing to the
 right classes, everything SHOULD be working right now.

 Cake doesn't throw an exception but it doesnt let me use my scripts
 either... Does it handle files differently? Do I need to change a
 configuration somewhere?

How are you linking to the JS? And where does it live in the
filesytem? If the file is in app/webroot/js/your_script.js then a link
to /js/your_file.js should work fine. Note that, if using the
JavascriptHelper, you should provide only the name/path relative to
the webroot/js folder and omit the js extension:

$javascript-link('your_file')

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