window.load() in jquery is not working in google chrome -
$(window).load(function(){});
not working in google chrome working in firefox.
my situation have explained here, loading google map in application. have used jquery loading google map. used $(document).ready(function()
load google map, google pointer not coming in middle position. used $(window).load(function()
, loading in middle place in firefox not in google chrome... why??? code:
<div id="tabs " class="js-ui-tabs"> <!-- gallery--> <ul> <li><?php echo $this->html->link(__t('photos'), '#photo', array('title'=>__t('photos'),'class'=>'property {"tab":"photo"}')); ?></li> <li><?php echo $this->html->link(__t('map'), '#map', array('title'=>__t('map'),'class'=>'last {"tab":"map"}')); ?></li> <li><?php echo $this->html->link(__t('calendar'), '#calender', array('title'=>__t('calendar'),'class'=>'last {"tab":"calender"}','id'=>'view-calendar-holder')); ?></li> </ul> </div>
the above code header of tabs list. when click on 2nd tab, map code loaded.. given below:
<div class="map map-point" id="map"> <?php $propertylocation = $property['property']['address'].',+'.$property['city']['name'].',+'.$property['country']['name']; if(!empty($property['property']['latitude']) && !empty($property['property']['longitude']) ){ $propertylocation .= '@'.$property['property']['latitude'].",".$property['property']['longitude']; } ?> <iframe width="620" height="382" frameborder="no" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo $propertylocation; ?>&z=12&output=embed"></iframe> </div>
refer next link view problem: http://www.staypleasure.com/chennai-property/spectras-nest
jquery
No comments:
Post a Comment