Jump to content

*.js script not executed under virtual domain, outside it, it works


BrainPill
 Share

Recommended Posts

I want to run a piece of *.js like this:

name: index1.html

        <html>
        <head>
        <script type="text/javascript" 
            src="example.js"</script>
        </head>
        test
        </html>

I can run it as a separate script.

But when I call the script when placed under a virtual domain it is not working

all other scripts I made work normal under the virtual domain

 

example:

this works : X:\wamp\www\index1.html

this does not work: http://www.my-virtual-domain.loc/index1.html

The text: test is executed on the screen in both scripts, meaning that the js script in one situation does not work.

Does anybody know what causes this?

 

 

 

 

Edited by BrainPill
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...