Jump to content

Recommended Posts

For example, if you have a file structure like so:

 

index.php -> javascript.js

                  another_javascript.js

 

If calling the javascript.js directly, and the javascript.js script references another_javascript.js as src="another_javascript.js", it'll work. But if you're including it from the root and using this method rather than src="http://www.example.com/dir/another_javascript.com", when including the javascript.js, it'll be looking for another_javascript.js in the wrong directory.

 

It's kind of hard to explain. So yeah, are you calling any other files or anything, or are you getting an error?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.