Coder Social home page Coder Social logo

jquery-geolocation-edit's People

Contributors

brentkelly avatar leonelcamara avatar miloss avatar the-architect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery-geolocation-edit's Issues

Fix for using on a secure page, or if using jQuery.noConflict

Hi guys,

Great plugin. A couple of small fixes to make the code a bit more robust:

  • Currently doesn't support using the script on a https:// encoded page. Throws a security error for trying to load a (hardcoded) insecure script
  • Doesn't support jQuery.noConflict() being used (callback code assumes $ will be bound to jQuery)

Have implemented & tested the following fix to line 225 of jquery.geolocation.edit.js:

script.src = ( window.location.protocol == 'https:' ? 'https' : 'http' ) + '://maps.googleapis.com/maps/api/js?sensor=false&callback=jQuery.fn.geolocateGMapsLoaded';

Fix is to detect https, and also to use jQuery for the callback instead of $

Cheers!

Error api key

Thank you for your hard work. I've used your plugin on my development server but when everything was ready for live server I got an error with this (Google Api need key). After that I've created an key in Google and modified your code by adding key. Now it works and I am sorry for making change of your code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.