On Feb 20, 9:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I want to include javascript file in layout.It is possible? if it is,
> how to include javascript file.
>
> If i include like this
>
> app/views/layouts/index.thtml
>
> <head>
> <title>Untitled-1</title>
> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
> </head>
>
> <script src='../js/shal.js' language='javascript'></script>
>
> it is not working.

How could it ;). Your current location changes depending on if you
have parameters or not in the url, and you have specificed a relative
path - In any event it would be cleaner to use the javascript helper
to generate the script link (search the manual/group if you don't know
what that means)

HTH,

AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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