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