I have an external Javascript file that is hosted on a server along with a xml file. I have included this file in an HTML page hosted on another server. Now the External JS file has a .$( document ).ready function that has a $.get() function that calls the xml file hosted on the same server , gets some values from it and append them to a div.
Now if my HTML and JS file are hosted on same server the code works perfectly fine and the the values get appended
But in when i host the HTML file on another server and include the JS as an external java script file the values are not getting appended
Is there a way to make the JS work