Results 1 to 2 of 2

Thread: Conflict with google autocomplete

  1. #1
    Thread Starter
    icesway's Avatar
    Join Date
    Oct 2014
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Conflict with google autocomplete

    Hello,

    i have put this code on my wrapper.php in head but it only works if your plugin is unactive , do you have a idea? i think it is the call of the google api but i can't resolve the problem.

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
    <script>
    function initAutocomplete() {
    var autocompleteOptions = {types: ['(cities)'],componentRestrictions: {country: 'BE'}};
    var input = document.getElementById('search-location');
    console.log(input);
    var autocomplete = new google.maps.places.Autocomplete(input,autocomplete Options);
    }
    google.maps.event.addDomListener(window, 'load', initAutocomplete);
    </script>


    </head>

    <body <?php body_class(); ?> onload="initAutocomplete()" itemscope itemtype="http://schema.org/WebPage" >


    Thanks

  2. #2
    Marketplace Seller vipul's Avatar
    Join Date
    Jun 2012
    Location
    Surat,Gujarat,India
    Posts
    1,647
    Thanks
    0
    Thanked 172 Times in 170 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [PLUGIN NEEDED] Use Google Places Autocomplete for Classified Location Data
    By slimpickins in forum ClassiPress General Discussion
    Replies: 5
    Last Post: October 27th, 2017, 02:02 PM
  2. [SOLVED] conflict with acf and google translate
    By acheica in forum ClassiPress General Discussion
    Replies: 2
    Last Post: June 29th, 2014, 06:54 PM
  3. [SOLVED] Advanced custom fields conflict with google translate
    By acheica in forum Advanced Custom Fields
    Replies: 1
    Last Post: June 27th, 2014, 11:16 PM
  4. Classipress - wordpress "user messages" autocomplete conflict? Help!
    By reboot in forum ClassiPress General Discussion
    Replies: 3
    Last Post: March 19th, 2011, 01:33 PM