This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Path problem in javascript file
Path problem in javascript file [message #69173] Sun, 04 January 2009 23:32 Go to next message
mikoro  is currently offline mikoro
Messages: 3
Registered: January 2009
Junior Member
Hi,

I have included a javascript file to my layout with view.yml. Inside this script I have following:

Shadowbox.loadSkin("classic", "js/shadowbox/skin");
Shadowbox.loadLanguage("en", "js/shadowbox/lang");
Shadowbox.loadPlayer(["img", "iframe"], "js/shadowbox/player");


To make it work on the homepage (web/frontend_dev.php/) I have to add "../" to the paths and on the others (e.g. web/frontend_dev.php/content/about) I need to add "../../".

What's the correct way to make it work on every page?

Thanks!
Re: Path problem in javascript file [message #79702 is a reply to message #69173 ] Thu, 11 June 2009 10:57 Go to previous message
zidler  is currently offline zidler
Messages: 7
Registered: August 2008
Junior Member
Uv got to use '/' in every path string.
Like '/js/blabla.js'.


Im soooooo noooooob.
Previous Topic:XAMPP XP setup
Next Topic:Doctrine not easy in attempting jobeet setup
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software