Solved

Page works on server but not on local disc

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 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