cliquot22 Posted January 1, 2011 Share Posted January 1, 2011 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 More sharing options...
Fmdpa Posted January 1, 2011 Share Posted January 1, 2011 Did you check your browser's JS/CSS error console? Link to comment Share on other sites More sharing options...
cliquot22 Posted January 2, 2011 Author Share Posted January 2, 2011 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 More sharing options...
cliquot22 Posted January 2, 2011 Author Share Posted January 2, 2011 Okay I figured it out. BrowserSupport is a call in the JS code. I was missing additional JS code that was not referred to in the demo. Thanks. Link to comment Share on other sites More sharing options...
Fmdpa Posted January 2, 2011 Share Posted January 2, 2011 It sounds like it could be an undefined variable within the file. So it did find the file? Is the URI you posted the correct path to the file? Link to comment Share on other sites More sharing options...
cliquot22 Posted January 2, 2011 Author Share Posted January 2, 2011 Yes it did find the file. Thanks for pointing out the error log, Learn something new every day. Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.