久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='kq5FY'><style id='kq5FY'><dir id='kq5FY'><q id='kq5FY'></q></dir></style></legend>
    • <bdo id='kq5FY'></bdo><ul id='kq5FY'></ul>
    <i id='kq5FY'><tr id='kq5FY'><dt id='kq5FY'><q id='kq5FY'><span id='kq5FY'><b id='kq5FY'><form id='kq5FY'><ins id='kq5FY'></ins><ul id='kq5FY'></ul><sub id='kq5FY'></sub></form><legend id='kq5FY'></legend><bdo id='kq5FY'><pre id='kq5FY'><center id='kq5FY'></center></pre></bdo></b><th id='kq5FY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kq5FY'><tfoot id='kq5FY'></tfoot><dl id='kq5FY'><fieldset id='kq5FY'></fieldset></dl></div>

      1. <tfoot id='kq5FY'></tfoot>

        <small id='kq5FY'></small><noframes id='kq5FY'>

        Http 站點未檢測到 Chrome 中的位置 - 問題

        Http sites does not detect the location in Chrome - issue(Http 站點未檢測到 Chrome 中的位置 - 問題)
        • <bdo id='0GW5H'></bdo><ul id='0GW5H'></ul>

                <tbody id='0GW5H'></tbody>
                <legend id='0GW5H'><style id='0GW5H'><dir id='0GW5H'><q id='0GW5H'></q></dir></style></legend>
                <tfoot id='0GW5H'></tfoot>
              • <i id='0GW5H'><tr id='0GW5H'><dt id='0GW5H'><q id='0GW5H'><span id='0GW5H'><b id='0GW5H'><form id='0GW5H'><ins id='0GW5H'></ins><ul id='0GW5H'></ul><sub id='0GW5H'></sub></form><legend id='0GW5H'></legend><bdo id='0GW5H'><pre id='0GW5H'><center id='0GW5H'></center></pre></bdo></b><th id='0GW5H'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0GW5H'><tfoot id='0GW5H'></tfoot><dl id='0GW5H'><fieldset id='0GW5H'></fieldset></dl></div>

                <small id='0GW5H'></small><noframes id='0GW5H'>

                  本文介紹了Http 站點未檢測到 Chrome 中的位置 - 問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們今天確實注意到了根據用戶位置自動檢測郵政編碼的問題.它在其他瀏覽器(edge、IE、Firefox)中運行良好我們必須將站點配置為 https,然后它就可以正常工作了

                  We did notice today an issue in automatic detection of zip code based on the user s location. it worked well in other browsers(edge, IE, Firefox) We had to configure the sites to https and then it works ok

                  示例:https://www.whatismyzip.com/ 效果很好其中 http://www.mapdevelopers.com/what-is-my-zip-code.php 不起作用.

                  Example : https://www.whatismyzip.com/ works well where as http://www.mapdevelopers.com/what-is-my-zip-code.php does'nt work.

                    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAdGQKI4sEj5TZAjNCds422V_ZHevD45Fo"></script>
                   <%--   <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>--%>
                  
                   <%--     <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
                   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>--%>
                      <script type="text/javascript">
                  
                  
                          function ShowMessages() {
                  
                              debugger;
                              if (navigator.geolocation) {
                                  navigator.geolocation.getCurrentPosition(success);
                              } else {
                                  alert("Geo Location is not supported on your current browser!");
                              }
                              function success(position) {
                                  debugger;
                                  var lat = position.coords.latitude;
                                  var lng = position.coords.longitude;
                                  var latlng = new google.maps.LatLng(lat, lng);
                                  var geocoder = geocoder = new google.maps.Geocoder();
                                  geocoder.geocode({ 'latLng': latlng }, function (results, status) {
                                      if (status == google.maps.GeocoderStatus.OK) {
                                          if (results[1]) {
                  
                                              var searchAddressComponents = results[0].address_components,
                                               searchPostalCode = "";
                                              $.each(searchAddressComponents, function () {
                                                  if (this.types[0] == "postal_code") {
                                                      searchPostalCode = this.short_name;
                                                  }
                                              });
                  
                                              document.getElementById('hidden1').value = searchPostalCode
                                              __doPostBack('', '');
                  
                  
                                          }
                                      }
                                  });
                              }
                  
                          }
                  

                  任何幫助/解決方法將不勝感激.

                  Any help/workaround would be appreciated.

                  除了 Google API,還有其他可行的替代方案嗎?

                  推薦答案

                  Chrome 50 中引入的新安全規則不會將位置信息發送到沒有 Transfer Encryption 的站點.

                  The new Security rule introduced in Chrome 50 does not send Location Information to Sites without Transfer Encryption.

                  這里是適合 Mapping API 問題的替代方案.

                  Here are the alternatives which are apt for the Mapping API problems.

                  恢復到之前的 Chrome(50) 版本也是一種解決方案,但是在 Web 開發中,這樣做是相當困難的.

                  Reverting to Prior versions of the Chrome(50) is also a solution, but in Web development, it is quite difficult to do so.

                  但事實是,目前只有 ChromeMapping API 存在此類問題,其他 瀏覽器 仍然支持它們(其中讓我暫時放心).

                  But the fact is that, currently only Chrome has such issues with Mapping API and other Browsers still supports them(Which gives me a short term peace of mind).

                  但遲早,這可能會被其他瀏覽器實踐,這對于與我不同的現有用戶來說可能是一個大問題.由于這是一個長期的過程(在我的情況下),最好開始開發和遷移到 https 站點而不是在 http 中,但是有 利弊處理它們.

                  But sooner or later, this may be practiced by other browsers too, which may be a big problem for the existing users unlike me. Since it is a long term process(in my case), it is better to start developing and migrating to https sites rather than being in http, how ever there are pros and cons in handling them.

                  這篇關于Http 站點未檢測到 Chrome 中的位置 - 問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                  <legend id='14q4x'><style id='14q4x'><dir id='14q4x'><q id='14q4x'></q></dir></style></legend>
                  <tfoot id='14q4x'></tfoot>

                  • <i id='14q4x'><tr id='14q4x'><dt id='14q4x'><q id='14q4x'><span id='14q4x'><b id='14q4x'><form id='14q4x'><ins id='14q4x'></ins><ul id='14q4x'></ul><sub id='14q4x'></sub></form><legend id='14q4x'></legend><bdo id='14q4x'><pre id='14q4x'><center id='14q4x'></center></pre></bdo></b><th id='14q4x'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='14q4x'><tfoot id='14q4x'></tfoot><dl id='14q4x'><fieldset id='14q4x'></fieldset></dl></div>

                    <small id='14q4x'></small><noframes id='14q4x'>

                      <bdo id='14q4x'></bdo><ul id='14q4x'></ul>
                        <tbody id='14q4x'></tbody>

                          • 主站蜘蛛池模板: 日韩精品在线看 | 草草视频在线观看 | 99热视 | 成人亚洲片 | 国产精品一区二区三级 | 中文字幕在线观看第一页 | 国产精品自拍视频网站 | 久一久| 国产亚洲精品美女久久久久久久久久 | 九九热在线免费视频 | 久草视| 91精品国产手机 | 日本一区二区三区四区 | 久久久999精品 | 欧美一区二区在线观看视频 | 毛片免费在线 | 成人av高清 | 在线视频一区二区 | 久久久这里都是精品 | 成人三级电影 | 亚洲美女av网站 | 久久久精品视 | 91视频大全 | 精品视频一二区 | 日韩网站在线 | 国产丝袜一区二区三区免费视频 | 免费午夜电影 | 免费毛片网 | 国产一区在线免费观看视频 | 一区二区精品 | 国产亚洲精品久久久久动 | 亚洲欧美视频在线观看 | 秋霞国产| 国产福利久久 | 国产精品亚洲视频 | 国产一区二区三区在线观看免费 | 亚洲国产精品va在线看黑人 | 一区二区免费 | 久久99精品久久久久 | 日韩精品一区二区三区中文在线 | 欧美a√ |