I'm not familiar with ext.js so I can't really say what's going on for
sure, but is that error being thrown from ext_custom.js, itself, or
another file? I think your first link should be:

echo $javascript->link('ext-2.0.1/ext-custom.js');

Note there's no leading slash.

On Wed, Mar 5, 2008 at 9: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
>  (See http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to