Hi ros,
Looks like your javascript file (bad.txt) was corrupted somehow...
looking at the source on line 32 you can see it starts to define
Ext={version:"2.0.1"}; again.
Just replace the current javascript file you've got with the working
version.
I'd be interested to find out how this occurred. I've checked the zip
file and it works fine.
Cheers,
Adam
On Mar 6, 12:26 am, ros <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Just started with CakePHP 1.2 and trying to make working the tree
> example:http://blogs.bigfish.tv/adam/examples/tut01-extjs-cakephp/employees/
>
> Can not insert link to javascript file in to the default.ctp head
> section
> //ExtJS library
> echo $html->css('/js/ext-2.0.1/resources/css/ext-
> custom.css');
> echo $javascript->link('/ext-2.0.1/ext-custom.js');
> The result is syntax error:
> missing : after property id
> [Break on this error]
> Ext={version:"2.0.1"};window["undefined"]=window["undefined"];Ext.apply=function...
>
> And if I use:
> //ExtJS library
> echo $html->css('/js/ext-2.0.1/resources/css/ext-
> custom.css');
> echo $javascript->link('http://blogs.bigfish.tv/adam/
> examples/tut01-extjs-cakephp/js/ext-2.0.1/ext-custom.js');
>
> it works. It looks like the js file is currupted while loading from
> local server by some kind of decorator. What It could be?
>
> Local js file source bad.txt
> Remote js file source good.txt
> (Seehttp://www.nabble.com/javascript-error-td15823288.html#a15823288
> for files to download)
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---