Brian,

Thank you for your answer.

You are right, it was a typo. I am not using the extensions when
calling the scripts.

When I see the view source the links appear like this:

<script type="text/javascript" src="/cake/js/prototype.js"></script>
<script type="text/javascript" src="/cake/js/listinvoices.js"></
script>

And both files are, indeed, under cake/webroot/js

Since my Www_Root variable is "C:\Inetpub\wwwroot\cake\app\webroot\"

I understand the tags'  src is correct, maybe not?


On Mar 4, 10:13 pm, brian <[email protected]> wrote:
> On Wed, Mar 4, 2009 at 8:09 PM, SergioTorresC. <[email protected]> 
> wrote:
>
> >        <?php e($javascript->link('prototype.js')); ?>
>
> Is this a typo? I ask because, further on in your mail, you leave out
> the ".js", which is the correct way. Always leave out the extension
> for both JS & CSS files.
>
> >        <?php e($scripts_for_layout); ?>
>
> > In myview.ctp file
>
> >        <?php e($javascript->link('listinvoices', false)); ?>
>
> > Firebug reports for both files a "syntax error" on line 1.
> > Line 1 has the document declaration
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> > I checked on the web and the declaration seems to be ok.
>
> This is the same thing I see when the path to a JS file is incorrect.
> You didn't mention what the script tag's src looks like (when you view
> source).

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