external javascript in layout.master

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/7/2009 3:35:34 AM
Gravatar
Total Posts 1

external javascript in layout.master

Sirs,

Im confused already when inserting external javascripts in the layout.master. When running on local machine I used

<script language="javascript" src="/ClientScript/menuscript.js" type="text/javascript"></script> inside the head tag and it works. But when I deploy it to our server it doesnt read the script anymore. Files are complete I even tried to put it in the url and the browser displays it.

What I did was to use the <portal:SiteScript id="myScript" runat="server" ScriptRelativeToRoot="/ClientScript/menuscript.js" /> at the bottom part of the layout.master and it worked! Im not sure if this is advisable to use the portal sitescript tag.

I also have some inline scripts since I cannot embed external js files so my layout.master looks messy.

Any suggestion please?

Thanks in advance

You must sign in to post in the forums. This thread is closed to new posts.