Solved

Page works on server but not on local disc

Posted on 2014-03-14
3
351 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 19

Assisted Solution

by:Patricksr1972
Patricksr1972 earned 125 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 125 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now