Jump to content

accessing JS and CSS files while using localhost


cliquot22

Recommended Posts

I am trying to create a HTML file that will interface with a Garmin GPS but run without internet access. Garmin provides the Javascript and CSS. I can run the file on my localhost when I access the JS and CSS files from the Garmin servers (with the line: <script type="text/javascript" src="http://developer.garmin.com/web/communicator-api/garmin/device/GarminDeviceDisplay.js"></script>) . But when I copy those files to my own computer (<script type="text/javascript" src="garmin/GarminDeviceDisplay.js"></script>), they are not available. The "garmin" folder is at the same level as the HTML file so this should be pointing to the JS file. Why can't I access JS and CSS files when I'm using http://localhost/tracker.html? localhost-->tracker.html-->garmin folder---->GarminDeviceDisplay.js---->Garmin.css

Link to comment
Share on other sites

The error console says "BrowserSupport" is undefined. I'm not sure what that means. Is that a setting in the IE options or a call in the JS code? Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 1.1.4322; Windows-Media-Player/10.00.00.3990; .NET CLR 3.0.04506.30; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)Timestamp: Sun, 2 Jan 2011 06:03:50 UTCMessage: 'BrowserSupport' is undefinedLine: 91Char: 3Code: 0URI: http://localhost/Mark/garmin/GarminDeviceDisplay.js

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...