first go link http://www.enjoyholistic.com/event/search , fill search form , click search , in post code textbox enter london.
if go event detail screen , return search, doesn't populate location. if click location box- postcode,town,city search. magically appears.
i use below code populate textbox.
(function ($) { $.querystring = (function (a) { if (a == "") return {}; var b = {}; (var = 0; < a.length; ++i) { var p = a[i].split('='); if (p.length != 2) continue; b[p[0]] = decodeuricomponent(p[1].replace(/\+/g, " ")); } return b; })(window.location.search.substr(1).split('&')) })(jquery); $("input[name='eventpostcode']").val($.querystring["eventpostcode]);
it work in chrome dont work in firefox...
refer site http://www.enjoyholistic.com/event/search
it seems there either wrong in javascript or nature of firefox places-api not notify when go back button.
i cannot find doc regarding how think 1 workaround might change focus in , out of places autocomplete text box.
you can using document.getelementbyid("autocomplete-text-box").focus();
, document.getelementbyid("autocomplete-text-box").blur();
Comments
Post a Comment