Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Page works on server but not on local disc

Posted on 2014-03-14
3
Medium Priority
?
365 Views
Last Modified: 2014-03-15
I have a page with an API Google Map at www.mauivacationrental.com/test.htm  I'd like to be able to edit this page on my local disc, but it won't load.   There is a script in the <HEAD> which includes this code:
src="//maps.google.com/maps/api/js?sensor=false"

If I add "http:" or "https:" before the double-slash, the page will load from local disc, but the Google Map will not appear.

Editing the page is difficult without access from local disc, because I need to upload every change in order to evaluate it.
0
Comment
Question by:ddantes
3 Comments
 
LVL 23

Assisted Solution

by:Patrick Bogers
Patrick Bogers earned 500 total points
ID: 39931173
What if you open the page locally with e.g. Google Chrome and deverloper tools open?
It should give you some error which might help you further.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39931363
How are you loading it from local disk?
http://localhost

or as I suspect
file///c:/drive.
0
 

Author Comment

by:ddantes
ID: 39931550
Solved by downloading the Google js and invoking the script on local drive, instead of through a URL.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question