×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    10

    Question CBrCtlInterface不能加载Google maps JavaScript ?

    请各位大佬帮忙:

    我想用CBrCtlInterface来使用Google maps API V3。利用了3rd版中的例子做样板。
    问题是,CBrCtlInterface加载javascript没有问题,但一加载 google maps javascript就不行了,从log上看打开socket后收发了一些数据然后就停止了指导连接被关闭。
    请问这是什么原因?
    哪位解决过这样的问题有样例代码学习一下?

    万分感谢!

    Google maps javascript:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title> Sample Widget</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript">
    function initialize() {
    var latlng = new google.maps.LatLng(1.383, 103.89);
    var myOptions = {
    zoom: 8,
    center: latlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    } </script>
    <body onLoad="initialize()">
    <div id="map_canvas" style="width:230px; height:240px"></div>
    </body>
    </html>

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    10

    Re: CBrCtlInterface不能加载Google maps JavaScript ?

    补充一下,这段javascript在PC browser上运行正常。

Similar Threads

  1. HTTP POST failing and discrepancy of string tables in SDK and 6600
    By cas_dominic in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-05-31, 08:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •