By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,701 Members | 1,978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,701 IT Pros & Developers. It's quick & easy.

problem with Internet Explorer

100+
P: 118
Hi,


I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error message as in alert box as


" Internet Explorer cannot open the Internet site http://google.citycarrentals.com.au/...llocations.php . Operation aborted". It is working in Mozilla . Here i mentioned my code . I am facing this problem several days.Any body please help me .Its very Urgent.

Expand|Select|Wrap|Line Numbers
  1.  
  2. <?
  3. error_reporting(5);
  4. session_start();
  5. include("conn.php");        
  6. if($_SESSION['user']){
  7. //echo "<font color=blue><b>Welcome&nbsp;&nbsp;" .$_SESSION['user']."</b></font>";
  8. }
  9. //echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=logout.php><b>Logout</b></a></td></tr></table></body></html>";
  10. if((($_REQUEST['user']!='admin' || $_REQUEST['msgs']!='subadmin') && ($_REQUEST['user']==' ')) || (($_REQUEST['msgs']!='admin' || $_REQUEST['msgs']!='subadmin') && $_REQUEST['msgs']==' ')){
  11. echo "<br>";
  12. echo "<font color=red>User can't Drag And Edit the Vehicle</font>";
  13. }
  14. else{
  15.     $lat1=$_POST['lat1'];
  16.     //echo $lat1;
  17.     $lng1=$_POST['lng1'];
  18.     //echo $lng1;
  19.     $vid=$_POST['vid'];
  20.     //echo $vid;
  21.     $location1=$_POST['location'];
  22.     //echo $location1;
  23.         if($_REQUEST['vdel']=='yes'){
  24.         $id=$_REQUEST['id'];
  25.         mysql_query("delete from vehicles where vehid='$id'");
  26.         }
  27.             $result3=mysql_query("select * from offices where id='$location1'");
  28.             $row3=mysql_fetch_array($result3);
  29.             $lat2=substr($lat1,0,strpos($lat1,'.')+3);
  30.             $lng2=substr($lng1,0,strpos($lng1,'.')+3);
  31.               if(isset($_POST['submit'])){
  32.                 $count=0;
  33.                 $result=mysql_query("select * from offices");
  34.                 while($row=mysql_fetch_array($result)){
  35.                         $latitude=$row['latitude'];
  36.                         $longitude=$row['longitude'];
  37.                         $latitude1=substr($latitude,0,strpos($latitude,'.')+3);
  38.                         $longitude1=substr($longitude,0,strpos($longitude,'.')+3);
  39.                             if(($latitude1==$lat2)&&($longitude1==$lng2)){
  40.                                     $id=$row['offid'];
  41.                                     //echo $id;
  42.                                     $lati=$row['latitude'];
  43.                                     //echo $lati;
  44.                                     $longi=$row['longitude'];
  45.                                     //echo $longi;
  46.                                     $marker=$row['office_name'];
  47.                                     $find=mysql_query("select * from vehicles where vehid='$vid'");
  48.                                     $find_result=mysql_fetch_array($find);
  49.                                     $li=$find_result['latitude'];
  50.                                     $lo=$find_result['longitude'];
  51.                                     mysql_query("update vehicles set latitudeold='$li',longitudeold='$lo',lid='$id',location='$marker',latitude='$lati',longitude='$longi',transit='yes' where vehid='$vid'");
  52.                                     mysql_query("update bookings set start_place='$marker' where vid='$vid'");
  53.                                     //echo "update vehicles set latitudeold='$li',longitudeold='$lo',lid='$id',location='$marker',latitude='$lati',longitude='$longi',transit='yes' where vehid='$vid'";
  54.                                     mysql_query("update vehicles set action='line',latitude1='$lat1',longitude1='$lng1' where vehid='$vid'");
  55.                                     //echo "update vehicles set action='line',latitude1='$lat1',longitude1='$lng1' where vehid='$vid'";
  56.                                     $count++;
  57.                                 }
  58.                     }
  59.                         if($count==0){
  60.                         echo "<font color=red size=3>Please Drag again</font>";
  61.                         }
  62.                 } 
  63.     }
  64. ?>
  65. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  66. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 
  67. <head> 
  68. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> 
  69. <title>Simple Google map</title> 
  70. <!-- //Change the following line to use your own key available from http://www.google.com/apis/maps/signup.html -->
  71. <script>
  72. function show1(){
  73.     //alert('hello');
  74. //document.getElementById("p1").style.display="none";
  75. }
  76. </script>
  77.     <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA6lo7chc3tJ4PtHEdUe07mhRyn6Gjw6raW1kj0ExjN4K0-gzleRQetwIWgwv6rUBDEdHLMjTZJO4mkg&amp;sensor=false" type="text/javascript">
  78. </script>
  79. <script>
  80. function open_win(url_add)
  81.    {
  82.    window.open(url_add,'welcome',
  83.    'width=300,height=200,menubar=yes,status=yes,
  84.    location=yes,toolbar=yes,scrollbars=yes');
  85.    }
  86.  
  87. function submitform(){
  88. //alert('hello');
  89. var answer = confirm ("Are you Sure Want to Delete the Vehicle?")
  90. if (answer)
  91. return true;
  92. else
  93. return false;
  94. }
  95. </script>
  96. <script type="text/javascript">
  97. var map;
  98. var geocoder = null;
  99. var icon0;
  100. var newpoints = new Array();
  101. var newpoints = new Array();
  102. var vpoints = new Array();
  103. var myarray=["icon2", "icon3", "icon4", "icon5", "icon6", "icon7"];
  104.  
  105.         function addLoadEvent(func) { 
  106.             var oldonload = window.onload; 
  107.             if (typeof window.onload != 'function'){ 
  108.                 window.onload = func
  109.             } else { 
  110.                 window.onload = function() {
  111.                     oldonload();
  112.                     func();
  113.                 }
  114.             }
  115.         }
  116.  
  117. addLoadEvent(loadMap);
  118. addLoadEvent(addPoints);
  119. var lat=15;
  120. var lon=20;
  121. var g;
  122. function loadMap() {
  123.     map = new GMap2(document.getElementById("map"));
  124.     map.addControl(new GLargeMapControl());
  125.     map.addControl(new GMapTypeControl());
  126.  
  127.     map.setCenter(new GLatLng(-33.8673,151.2041), 13);
  128.     map.setMapType(G_NORMAL_MAP);
  129.  
  130.     icon0 = new GIcon();
  131.     icon0.image = "images/home.png";
  132.     icon0.shadow = "images/shadow50.png";
  133.     icon0.iconSize = new GSize(32, 32);
  134.     icon0.shadowSize = new GSize(37, 34);
  135.     icon0.iconAnchor = new GPoint(9, 34);
  136.     icon0.infoWindowAnchor = new GPoint(9, 2);
  137.     icon0.infoShadowAnchor = new GPoint(18, 25);
  138.     var count=10;
  139.     var count1=15;
  140.     var some="";
  141.     var g=1;
  142.     var a='icon'+g;
  143.     //alert(a);
  144.     icon1=new GIcon();
  145.     icon1.image = "images/bmw-small.png";
  146.     icon1.shadow = "images/shadow50.png";
  147.     icon1.iconSize = new GSize(25, 25);
  148.     icon1.shadowSize = new GSize(20, 19);
  149.     icon1.iconAnchor = new GPoint(10, 15);
  150.     icon1.infoWindowAnchor = new GPoint(9, 2);
  151.     icon1.infoShadowAnchor = new GPoint(18, 25);
  152.     iconf1=new GIcon();
  153.     iconf1.image = "images/bmw-small1.png";
  154.     iconf1.shadow = "images/shadow50.png";
  155.     iconf1.iconSize = new GSize(25, 25);
  156.     iconf1.shadowSize = new GSize(20, 19);
  157.     iconf1.iconAnchor = new GPoint(10, 15);
  158.     iconf1.infoWindowAnchor = new GPoint(9, 2);
  159.     iconf1.infoShadowAnchor = new GPoint(18, 25);    
  160.     icons0 = new GIcon();
  161.     icons0.image = "images/GAPI/home.png";
  162.     icons0.shadow = "images/shadow50.png";
  163.     icons0.iconSize = new GSize(25, 25);
  164.     icons0.shadowSize = new GSize(37, 34);
  165.     icons0.iconAnchor = new GPoint(9, 34);
  166.     icons0.infoWindowAnchor = new GPoint(9, 2);
  167.     icons0.infoShadowAnchor = new GPoint(18, 25);
  168.     iconm1 = new GIcon();
  169.     iconm1.image = "images/merc-small1.png";
  170.     iconm1.shadow = "images/shadow50.png";
  171.     iconm1.iconSize = new GSize(12, 15);
  172.     iconm1.shadowSize = new GSize(20, 19);
  173.     iconm1.iconAnchor = new GPoint(10, 15);
  174.     iconm1.infoWindowAnchor = new GPoint(9, 2);
  175.     iconm1.infoShadowAnchor = new GPoint(18, 25);
  176. }
  177.  
  178.     function addPoints() {
  179.       var x=0;
  180.       var y=0;
  181.             <?
  182.             $query=mysql_query("select * from offices");
  183.             while($row=mysql_fetch_array($query)){
  184.                 $id=$row['offid'];
  185.             ?>
  186.             newpoints[x] = new Array('<?=$row['latitude']?>',  '<?=$row['longitude']?>', icon0, '<?=$row['office_name']?>', '<?=$row['description']?>'); 
  187.                     <?
  188.                         $query1=mysql_query("select * from vehicles where lid='$id'");
  189.                         while($row1=mysql_fetch_array($query1)){
  190.                     ?>
  191.                            vpoints[y]=new Array('<?=$row['latitude']?>','<?=$row['longitude']?>','<?=$row['latitude']?>','<?=$row['longitude']?>','<?=$row['latitude']?>');
  192.                            y++;
  193.                      <?
  194.                         }
  195.                      ?>
  196.             x++;
  197.             <?
  198.             }  
  199.             ?>
  200.  
  201.  
  202.         for(var i = 0; i < newpoints.length; i++) {
  203.             var point = new GPoint(newpoints[i][1],newpoints[i][0]);
  204.             document.getElementById("lat1").value = newpoints[i][0];
  205.             document.getElementById("lng1").value = newpoints[i][1];
  206.             var popuphtml = newpoints[i][4] ;
  207.             var marker = createMarker(point,newpoints[i][2],popuphtml);
  208.             map.addOverlay(marker);
  209.             var k=2;
  210.             var val='BMW';
  211.             var val1='Mercedes-Benz';
  212.             var val2='Mercedes';
  213.             <?
  214.             $query2=mysql_query("select * from vehicles");
  215.                 while($row2=mysql_fetch_array($query2)){
  216.                 $lat=$row2['latitude'];
  217.                 $lon=$row2['longitude'];
  218.                 $vehicletype=$row2['vmake'];
  219.                 $val='BMW';
  220.                 $reg=$row2['vehid'];
  221.                 ?>
  222.                 document.getElementById('vid').value=<?=$row2['vehid']?>;
  223.                 document.getElementById('location').value=<?=$row2['lid']?>;
  224.                     if(newpoints[i][0]=='<?=$lat?>' && newpoints[i][1]=='<?=$lon?>' && val=='<?=$vehicletype?>')
  225.                        {
  226.                         <?
  227.                      $vid=$row2['vehid'];
  228.                         $result3=mysql_query("select * from bookings where vid='$vid'");
  229.                         $row3=mysql_fetch_array($result3);
  230.                         ?>
  231.                         var popup ="";
  232.                             popup +='<form name=\"form1\" method=\"post\" action=\"vehicleedit_act.php?id=<?=$reg?>\">';
  233.                             popup +='<table>';
  234.                             popup +='<tr><td><u>Vehicle Edit Form</u>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"viewalllocations.php?id=<?=$reg?>&vdel=yes\" onclick=\"return submitform();\">Delete</a></td><td>&nbsp;</td><td>&nbsp;</td><td><a href=\"javascript:void(0)\" onclick=window.open(\'expenses_edit.php?id=<?=$row2['vehid']?>\',\'mywindow\',\'width=600,height=500,scrollbars=yes,toolbar=yes,status=yes\')>Expenses Window</a></td></tr>';
  235.                             popup +='</table>';
  236.                             popup +='<table>';
  237.                             popup +='<tr>';
  238.                             popup +='<td>Registration Number:</td>';
  239.                             popup +='<td><input type=text name=regid id=regid value=<?=$row2['vehid']?> readonly=readonly></td>';
  240.                             popup +='</tr>';
  241.                             popup +='<tr>';
  242.                             popup +='<td>FromOffice:</td>';
  243.                             popup +='<td><input type=text name=location id=location readonly=readonly value=<?=$row2['tolocation']?> ></td>';
  244.                             popup +='<td>ToOffice:</td><td><input type=text name=tolocation id=tolocation value=<?=$row3['start_place']?></td>';
  245.                             popup +='</tr>';
  246.                                 popup +='<tr>';
  247.                             popup +='<td>Date Due Back:</td>';
  248.                             popup +='<td><input type=text name=dateback id=dateback  readonly=readonly value=<?=$row3['end_date']?> ></td>';
  249.                             popup +='<td>Date Due Out:</td><td><input type=text name=dateout id=dateout value=<?=$row3['start_date']?>></td>';
  250.                             popup +='</tr>';
  251.                             popup +='<tr>';
  252.                             popup +='<td>Time Due Back:</td>';
  253.                             popup +='<td><input type=text name=timeback id=timeback value=<?=$row3['end_time']?>></td>';
  254.                             popup +='<td>Time Due Out:</td><td><input type=text name=timeout id=timeout value=<?=$row3['start_time']?>></td>';
  255.                             popup +='</tr>';
  256.                             popup +='<tr>';
  257.                             popup +='<td>Make/Model:</td>';
  258.                             popup +='<td><select name=vehicle id=vehicle><option value=<?php echo $row2['vmake'];?>><?php echo $row2['vmake'];?></option><option value=Mercedes Benz>Mercedes Benz</option><option value=BMW>BMW</option></select></td>';
  259.                             popup +='</tr>';
  260.                             popup +='<tr>';
  261.                             popup +='<td>Status:</td><td>&nbsp;&nbsp;<select name=statusinf>';
  262.                             popup +='<option value=<?=$row2['status'];?>><?=$row2['status'];?></option>';
  263.                             popup +='<option value=visible>visible</option>';
  264.                             popup +='<option value=Semi Transparent>Semi Transparent</option>';
  265.                             popup +='</select>';
  266.                             popup +='</td>';
  267.                             popup +='</tr>';
  268.                             popup +='<tr>';
  269.                             popup +='<td>In Transit:</td><td>&nbsp;&nbsp;YES<input type=radio name=yes id=yes value=yes checked>NO<input type=radio name=yes id=no value=no>';
  270.                             popup +='</td>';
  271.                             popup +='</tr>';
  272.                             popup +='<tr>';
  273.                             popup +='<td>Existing Booking ID:</td><td>&nbsp;&nbsp;<input type=text name=bookid id=bookid value=<?=$row3['b_id'];?> readonly=readonly>';
  274.                             popup +='</td><td>New Booking ID:</td><td><input type=text name=newbookid id=newbookid value=<?=$row3['cl_id']?>></td>';
  275.                             popup +='</tr>';
  276.                             popup +='<tr>';
  277.                             popup +='<td>Staff reporting:</td><td>&nbsp;&nbsp;<input type=text name=staffreporting id=staffreporting value=<?=$row2['staffreporting'];?>>';
  278.                             popup +='</td>';
  279.                             popup +='</tr>';
  280.                             popup +='<tr>';
  281.                             popup +='<td>Warning messages:</td><td>&nbsp;&nbsp;<lable><?=$row2['warningmsgs'];?></lable>';
  282.                             popup +='</td>';
  283.                             popup +='</tr>';
  284.                             popup +='<tr>';
  285.                             popup +='<td>Comments:</td><td>&nbsp;&nbsp;<textarea name=comments><?=$row2['vcomments'];?></textarea>';
  286.                             popup +='</td>';
  287.                             popup +='</tr>';
  288.                             popup +='<tr>';
  289.                             popup +='<td>Messages:</td><td>&nbsp;&nbsp;<textarea name=messages rows=2 cols=20><?=$row2['vnotes'];?></textarea>';
  290.                             popup +='</td>';
  291.                             popup +='</tr>';
  292.                             popup +='<tr>';
  293.                             popup +='<td>VehiclePhoto:</td>';
  294.                             popup +='<td><img src=<?=$row2['imageFile1'];?> width=130 height=70></td>';
  295.                             popup +='</tr>';
  296.                             popup +='</table>';
  297.                             popup +='<table>';
  298.                             popup +='<tr><td><input type=submit name=submit value=Submit></td></tr>';
  299.                             popup +='</table>';
  300.                             popup +='</form>';   
  301.                             <?
  302.     $status=$row2['status'];
  303.     if($status=='visible'){
  304.     ?>
  305.         var vmarker = cvmarker(point,eval('icon'+k),popup,<?=$row2['vehid']?>,<?=$row2['lid']?>,<?=$row2['latitude']?>,<?=$row2['longitude']?>);
  306.         <?
  307.         }
  308.         else{
  309.         ?>
  310.         var vmarker = cvmarker(point,eval('iconf'+k),popup,<?=$row2['vehid']?>,<?=$row2['lid']?>,<?=$row2['latitude']?>,<?=$row2['longitude']?>);
  311.         <?
  312.         }
  313.         ?>
  314.         //var vmarker=new GMarker(point,eval('icon'+k));
  315.  
  316.        map.addOverlay(vmarker);
  317.        <?
  318.         $result3=mysql_query("select * from vehicles where action='line' and transit!='no' and transit!=' '");
  319.         while($row3=mysql_fetch_array($result3)){
  320.         $action=$row3['action'];
  321.         $latitudes=$row3['latitudeold'];
  322.         $lat3=$row3['latitude1'];
  323.         $longitudes=$row3['longitudeold'];
  324.         $long3=$row3['longitude1'];
  325.         ?>
  326.             draw(<?=$latitudes?>,<?=$longitudes?>,<?=$lat3?>,<?=$long3?>);
  327.         <?
  328.         }
  329.         ?>
  330.               k++;
  331.  
  332.                        }
  333.                  else if(newpoints[i][0]=='<?php echo $lat;?>' && newpoints[i][1]=='<?php echo $lon;?>' && (val1=='<?php echo $vehicletype;?>' || val2=='<?php echo $vehicletype;?>'))
  334.                   {
  335.                      <?
  336.                      $vid=$row2['vehid'];
  337.                         $result3=mysql_query("select * from bookings where vid='$vid'");
  338.                         $row3=mysql_fetch_array($result3);
  339.                         ?>
  340.                  var popup ="";
  341.                             popup +='<form name=\"form1\" method=\"post\" action=\"vehicleedit_act.php?id=<?=$reg?>\">';
  342.                             popup +='<table>';
  343.                             popup +='<tr><td><u>Vehicle Edit Form</u>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"viewalllocations.php?id=<?=$reg?>&vdel=yes\" onclick=\"return submitform();\">Delete</a></td><td>&nbsp;</td><td>&nbsp;</td><td><a href=\"javascript:void(0)\" onclick=window.open(\'expenses_edit.php?id=<?=$row2['vehid']?>\',\'mywindow\',\'width=600,height=500,scrollbars=yes,toolbar=yes,status=yes\')>Expenses Window</a></td></tr>';
  344.                             popup +='</table>';
  345.                             popup +='<table>';
  346.                             popup +='<tr>';
  347.                             popup +='<td>Registration Number:</td>';
  348.                             popup +='<td><input type=text name=regid id=regid value=<?=$row2['vehid']?> readonly=readonly></td>';
  349.                             popup +='</tr>';
  350.                             popup +='<tr>';
  351.                             popup +='<td>FromOffice:</td>';
  352.                             popup +='<td><input type=text name=location id=location readonly=readonly value=<?=$row2['tolocation']?> ></td>';
  353.                             popup +='<td>ToOffice:</td><td><input type=text name=tolocation id=tolocation value=<?=$row3['start_place']?>></td>';
  354.                             popup +='</tr>';
  355.                             popup +='<tr>';
  356.                             popup +='<td>Date Due Back:</td>';
  357.                             popup +='<td><input type=text name=dateback id=dateback  readonly=readonly value=<?=$row3['end_date']?> ></td>';
  358.                             popup +='<td>Date Due Out:</td><td><input type=text name=dateout id=dateout value=<?=$row3['start_date']?>></td>';
  359.                             popup +='</tr>';
  360.                             popup +='<tr>';
  361.                             popup +='<td>Time Due Back:</td>';
  362.                             popup +='<td><input type=text name=timeback id=timeback value=<?=$row3['end_time']?>></td>';
  363.                             popup +='<td>Time Due Out:</td><td><input type=text name=timeout id=timeout value=<?=$row3['start_time']?>></td>';
  364.                             popup +='</tr>';
  365.                             popup +='<tr>';
  366.                             popup +='<td>Make/Model:</td>';
  367.                             popup +='<td><select name=vehicle id=vehicle><option value=<?php echo $row2['vmake'];?>><?php echo $row2['vmake'];?></option><option value=Mercedes Benz>Mercedes Benz</option><option value=BMW>BMW</option></select></td>';
  368.                             popup +='</tr>';
  369.                             popup +='<tr>';
  370.                             popup +='<td>Status:</td><td>&nbsp;&nbsp;<select name=statusinf>';
  371.                             popup +='<option value=<?=$row2['status'];?>><?=$row2['status'];?></option>';
  372.                             popup +='<option value=visible>visible</option>';
  373.                             popup +='<option value=Semi Transparent>Semi Transparent</option>';
  374.                             popup +='</select>';
  375.                             popup +='</td>';
  376.                             popup +='</tr>';
  377.                             popup +='<tr>';
  378.                             popup +='<td>In Transit:</td><td>&nbsp;&nbsp;YES<input type=radio name=yes id=yes value=yes checked>NO<input type=radio name=yes id=no value=no>';
  379.                             popup +='</td>';
  380.                             popup +='</tr>';
  381.                             popup +='<tr>';
  382.                             popup +='<td>Existing Booking ID:</td><td>&nbsp;&nbsp;<input type=text name=bookid id=bookid value=<?=$row3['b_id']?> readonly=readonly>';
  383.                             popup +='</td><td>New Booking ID:</td><td><input type=text name=newbookid id=newbookid value=<?=$row3['cl_id']?>></td>';
  384.                             popup +='</tr>';
  385.                             popup +='<tr>';
  386.                             popup +='<td>Staff reporting:</td><td>&nbsp;&nbsp;<input type=text name=staffreporting id=staffreporting value=<?=$row2['staffreporting'];?>>';
  387.                             popup +='</td>';
  388.                             popup +='</tr>';
  389.                             popup +='<tr>';
  390.                             popup +='<td>Warning messages:</td><td>&nbsp;&nbsp;<lable><?=$row2['warningmsgs'];?></lable>';
  391.                             popup +='</td>';
  392.                             popup +='</tr>';
  393.                             popup +='<tr>';
  394.                             popup +='<td>Comments:</td><td>&nbsp;&nbsp;<textarea name=comments><?=$row2['vcomments'];?></textarea>';
  395.                             popup +='</td>';
  396.                             popup +='</tr>';
  397.                             popup +='<tr>';
  398.                             popup +='<td>Messages:</td><td>&nbsp;&nbsp;<textarea name=messages rows=2 cols=20><?=$row2['vnotes'];?></textarea>';
  399.                             popup +='</td>';
  400.                             popup +='</tr>';
  401.                             popup +='<tr>';
  402.                             popup +='<td>VehiclePhoto:</td>';
  403.                             popup +='<td><img src=<?=$row2['imageFile1'];?> width=130 height=70></td>';
  404.                             popup +='</tr>';
  405.                             popup +='</table>';
  406.                             popup +='<table>';
  407.                             popup +='<tr><td><input type=submit name=submit value=Submit></td></tr>';
  408.                             popup +='</table>';
  409.                             popup +='</form>';   
  410.                             <?
  411.     $status=$row2['status'];
  412.     if($status=='visible'){
  413.     ?>
  414.         var vmarker = cvmarker(point,eval('icons'+k),popup,<?=$row2['vehid']?>,<?=$row2['lid']?>,<?=$row2['latitude']?>,<?=$row2['longitude']?>);
  415.         //var vmarker=new GMarker(point,eval('icon'+k));
  416.         <?
  417.         }
  418.         else{
  419.         ?>
  420.         var vmarker = cvmarker(point,eval('iconm'+k),popup,<?=$row2['vehid']?>,<?=$row2['lid']?>,<?=$row2['latitude']?>,<?=$row2['longitude']?>);
  421.         <?
  422.         }
  423.         ?>
  424.        map.addOverlay(vmarker);
  425.          <?
  426.         $result3=mysql_query("select * from vehicles where action='line' and transit!='no' and transit!=' '");
  427.         while($row3=mysql_fetch_array($result3)){
  428.         $action=$row3['action'];
  429.         $latitudes=$row3['latitudeold'];
  430.         $lat3=$row3['latitude1'];
  431.         $longitudes=$row3['longitudeold'];
  432.         $long3=$row3['longitude1'];
  433.         //mysql_query("select * from markup where id='$location1
  434.         ?>
  435.  
  436.         draw(<?=$latitudes?>,<?=$longitudes?>,<?=$lat3?>,<?=$long3?>);
  437.         //draw('-33.8401','151.1460','-33.8607','151.1407');
  438.  
  439.         <?
  440.         }
  441.         ?>
  442.  
  443.         k++;
  444.                   }   
  445.                 <?
  446.                 }
  447.             ?>
  448.         }
  449.     }
  450.  
  451. function createMarker(point, icon, popuphtml) {
  452.     var popuphtml = "<div id=\"popup\">" + popuphtml + "<\/div>";
  453.     var marker = new GMarker(point, icon);
  454.     GEvent.addListener(marker, "click", function() {
  455.         marker.openInfoWindowHtml(popuphtml);
  456.     });
  457.     return marker;
  458. }
  459. function cvmarker(vpoint, vicon, vpopuphtml,id,lid,lati,long) {
  460.  
  461.     var vpopuphtml = vpopuphtml;
  462.     var vmarker = new GMarker(vpoint , {
  463.     icon:vicon,
  464.     draggable: true, 
  465.     title: 'Drag me'
  466. });
  467.     GEvent.addListener(vmarker, "click", function() {
  468.         vmarker.openInfoWindowHtml(vpopuphtml);
  469.     });
  470.      GEvent.addListener(vmarker, "dragstart", function() {
  471.           vmarker.closeInfoWindow();
  472.           //alert(lati);
  473.           //alert(long);
  474.          // draw(lati,long);
  475.  
  476.         });
  477.  
  478.         GEvent.addListener(vmarker, "dragend", function() {
  479.           vmarker.openInfoWindowHtml("This vehicle is now in transit...");
  480.            var point = vmarker.getPoint();
  481.           map.panTo(point);
  482.        document.getElementById("lat1").value = point.lat().toFixed(5);
  483.        document.getElementById("lng1").value = point.lng().toFixed(5);
  484.        document.getElementById('vid').value=id;
  485.       document.getElementById('location').value=lid;
  486.       var latiend=document.getElementById("lat1").value;
  487.       var longend=document.getElementById("lng1").value;
  488.       document.getElementById("sbutton").style.display = "block"; 
  489.  
  490.      // alert(latiend);
  491.       //alert(longend);
  492.  
  493. draw(lati,long,latiend,longend);
  494.  
  495.  
  496.         });
  497.  
  498.     return vmarker;
  499. }
  500. function draw(latii, longg,latiendd,longendd){
  501. var polyline = new GPolyline([
  502.             new GLatLng(latii, longg),
  503.             new GLatLng(latiendd, longendd)
  504.         ], "#ff0000", 4);
  505.         map.addOverlay(polyline);
  506.  
  507. }
  508. //]]>
  509. </script>
  510.  <script>
  511. function pagechange(){
  512. window.location.href='maphome.php';
  513. }
  514. function pagechange1(){
  515. window.location.href='add_marker.php';
  516. }
  517. function pagechange2(){
  518. window.location.href='editoffice.php';
  519. }
  520. function add_vehicle(){
  521. window.location.href='addvehicle.php';
  522. }
  523. function list_offices(){
  524. window.location.href='viewalllocations.php';
  525. }
  526. </script>
  527. <style type="text/css">
  528. div#popup {
  529. background:#EFEFEF;
  530. border:1px solid #999999;
  531. margin:0px;
  532. padding:7px;
  533. width:270px;
  534. }
  535. </style>
  536. </head>
  537. <body bgcolor="#ffffff" style="width:100%;height:100%; margin:0 0 0 0;overflow-x:auto; overflow-y:hidden" scroll="no" >
  538. <table align="center" width="100%" cellspacing="0" cellpadding="0" height="100%">
  539. <tr><td valign="top" style="width: 100; height: 30;"><input type="button" name="button1" value="Home" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="pagechange()" />&nbsp;
  540. <?
  541.     if($_SESSION['user']!='admin'){
  542.     ?>
  543. <input type="button" name="button2" value="Add Office" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" />
  544.     <?
  545.     }
  546.     else{
  547.     ?>
  548.     <input type="button" name="button2" value="Add Office" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="pagechange1()" />
  549.     <?
  550.     }
  551.     ?>
  552. &nbsp;
  553. <?
  554.     if($_SESSION['user']!='admin'){
  555.     ?>
  556. <input type="button" name="button2" value="Add vehicle" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF"/>
  557. <?
  558.     }
  559.     else{
  560.     ?>
  561.     <input type="button" name="button2" value="Add vehicle" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="add_vehicle()" />
  562.     <?
  563.     }
  564.     ?>
  565. &nbsp;&nbsp;
  566. <input type="button" name="button2" value="List Offices" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="list_offices()" />&nbsp;&nbsp;<input type="button" name="button2" value="List Vehicles" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="list_offices()" />&nbsp;&nbsp;
  567. <?
  568. if($_SESSION['user']!='admin' && $_SESSION['user']!='subadmin'){
  569. ?>
  570. <input type="button" name="button2" value="Edit Office" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF"/>
  571. <?
  572. }
  573. else{
  574. ?>
  575. <input type="button" name="button2" value="Edit Office" style="font-weight: bold; border: 3px ridge #E2E2E2; background-color: #808080; font-family:Arial; color:#FFFFFF" onclick="pagechange2()" />
  576. <?
  577. }
  578. ?>
  579. </td></tr>
  580. <tr><td valign="top" align="center"><table width="100%" height="565%" align="center">
  581. <tr><td><div id="map" style="position:absolute;top:26px; padding-bottom:30px; left:0px; width:100%; height:100%;"></div></td></tr>
  582.  <form name="f1" method="post" action="viewalllocations.php?lat1=<?=$_POST['lat1']?>&lng1=<?=$_POST['lng1']?>&user=<?=$_SESSION['user']?>">
  583.   <input type="hidden" name="lat1" id="lat1" value=""/>
  584.  
  585.     <input type="hidden" name="lng1" id="lng1" value=""/>
  586.  
  587.    <input type="hidden" name="vid" id="vid" value=""/>
  588.    <input type="hidden" name="location" id="location" value=""/>
  589.    <tr><td align="center">
  590.     <div id="sbutton" style="display:none; position:absolute;top:30px; padding-bottom:30px; left:0px; width:100%; height:100%;">
  591.  <input type="submit" name="submit" value="Save" style="background:#0099CC; width:70px; height:35px;" />
  592.  </div>
  593.  </td></tr>
  594. </form>
  595.  
  596.  </table>
  597. </td></tr>
  598. </table>
  599. </body>
  600. </html>
  601.  
  602.  


Thanks
Swetha
May 22 '09 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
Hi.

Check out the Microsoft support page for that error.
It explains why it happens and provides a few workarounds you can try.

What I would recommend you try:
  • Make sure your (X)HTML is valid. (See The W3C validation service)
  • Try to move all your <script> tags (if any) out of the <body> into the <header>.
  • Try to have your Javascript only execute after the page has loaded. (Using the onload event).
May 22 '09 #2

prabirchoudhury
100+
P: 162
try those steps for IE 7



Follow These Steps Exactly:



Open Internet Explorer.

Click on the menu Tools -> Internet Options.
Click on the tab Security.
Click on the icon Restricted Sites.
Click on the button Sites.
Under Add this website to the zone:
Type the text *.sitemeter.com (with asterisk and dot & without the quotes).
Click the Add button. Click Close. Click OK.


get more help frm here

May 22 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.