Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:55 am EST

Geeklog Forums

static page (blank page) and safari issue


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

Here is my code for a static page (option blank page)

Text Formatted Code

<p><strong>Map</strong></p>
 <script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAXQ45F0Vk1fKTRhembu-XrBQQ_vCKEC8TCoCrOvxCU8lyL8UZmxQr1R3kQ60rrp2BG2eRuyQLdMEiGA' type='text/javascript' charset='utf-8'></script>

<div id='map1' style='padding:0px;'></div>
<script type='text/javascript'>
//<![CDATA[ var zoom1 = 10; var mapstyle1 = document.getElementById('map1').style; mapstyle1.width = '750px'; //???? mapstyle1.height = '400px'; //????? mapstyle1.margin = 'autopx'; //????? function OnloadBody1(){ if(document.getElementById('map1')) { var map1 = new GMap2(document.getElementById('map1')); var point1 = new GLatLng(43.284307,5.349569); map1.setCenter( point1 , zoom1 ); map1.addControl(new GLargeMapControl()); map1.addControl(new GMapTypeControl()); map1.addControl(new GOverviewMapControl()); var point11 = new GLatLng(43.284307,5.349569); var icon11 = new GIcon(G_DEFAULT_ICON); icon11.image = 'http://maps.google.co.jp/mapfiles/ms/icons/blue-dot.png'; icon11.iconSize = new GSize(32,32); icon11.iconAnchor = new GPoint(16,16); icon11.infoWindowAnchor = new GPoint(15,10); var marker11 = new GMarker(point11 ,{ icon: icon11, title: ''}); map1.addOverlay(marker11); } } //]]>
</script>
 <script type='text/javascript'>
<!--
function OnloadBody(){
  OnloadBody1();
}
window.onload = OnloadBody;
// -->

</script>
</p>
<p class="aligncenter"><span style="padding-left:5px;padding-right:5px;visibility:hidden">|</span> </p>

 


This blank page is for a pop up window displaying a google map. It is working with FF and IE, but the map is not display in safari.

Can someone tell me why or show me the light? :wink:

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
FWIW - works in my Safari (4.0.3 on Mac OS X 10.6).
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Yes, it was not working on my old safari 3. I hope everybody will update to safari 4 Wink

Thanks,

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
You could add ´display:block´ or ´float:left´ to the style of the div, sometimes that helps even if it looks useless.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

All times are EST. The time is now 09:55 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content