Solved

Page works on server but not on local disc

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

Assisted Solution

by:Patrick Bogers
Patrick Bogers 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
HTML5 save .Dat to server side 20 51
Question about traversing a tree using jQuery 7 34
How to display div value on input field value in php 11 54
Search Item in Table 2 23
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

821 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