Foros del Web » Programando para Internet » Javascript »

Object doesn’t support this property or method

Estas en el tema de Object doesn’t support this property or method en el foro de Javascript en Foros del Web. Buenas tardes colegas, Estoy teniendo este error en el explorer... Resulta que no tengo ni idea de que lo esta generando. el "detalle" del error ...
  #1 (permalink)  
Antiguo 03/06/2011, 14:25
Avatar de Heiroon  
Fecha de Ingreso: junio-2010
Ubicación: Caracas, Venezuela - Por ahora...
Mensajes: 495
Antigüedad: 13 años, 9 meses
Puntos: 63
Exclamación Object doesn’t support this property or method

Buenas tardes colegas,

Estoy teniendo este error en el explorer...

Resulta que no tengo ni idea de que lo esta generando.

el "detalle" del error es el siguiente:


Agente de usuario: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0; GTB7.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Fecha: Fri, 3 Jun 2011 20:17:15 UTC


Mensaje: El objeto no acepta esta propiedad o método
Línea: 33
Carácter: 3
Código: 0
URI: http://webserver2/~hpartidas/certifi...eh=04166228155


Mensaje: El objeto no acepta esta propiedad o método
Línea: 33
Carácter: 3
Código: 0
URI: http://webserver2/~hpartidas/certifi...eh=04166228155

esto es lo que tengo en seguimiento_independiente.php:

Código PHP:
Ver original
  1. <?php
  2. include_once('../../../includes/path_definitions.php');
  3. include_once(APP_SRC_ROOT_PATH.'includes/included_in_all.php');
  4.  
  5. if(empty($_REQUEST["cod_veh"])) die(_("Error: Faltan parámetros"));
  6. $cod_veh = $_REQUEST["cod_veh"];
  7. ?>
  8.  
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=<?php print APP_ENCODING; ?>" />
  12. <title><?php print APP_PAGE_TITLE; ?></title>
  13. <link href="../../css/Level1_Arial.css" rel="stylesheet" type="text/css"></link>
  14. <link href="../../../template/skins/default/historico.css" rel="stylesheet" type="text/css"/>
  15.  
  16. <script src="../../../js/externals/jquery/jquery-1.2.6.pack.js" type="text/javascript"></script>
  17. <script src="<?php print $sess->getData("MapURL");?>" type="text/javascript"></script>
  18. <script type="text/javascript">
  19.  
  20.     var _cod_veh = '<?php print $cod_veh;?>';
  21.     var _clock = 60;
  22.    
  23.     var init = function()
  24.     {
  25.         mapObj = new SMap(document.getElementById("MiLayer"));
  26.         var slider = mapObj.addControl(new Slider());
  27.         slider.setPosition("middle","right");
  28.         mapObj.ZoomAndGoTo(new SGeoPoint(0,0,1));
  29.  
  30.         refrescaReloj();
  31.         actualizaMapa();
  32.         iniciaClock();
  33.        
  34.     }
  35.  
  36.     var actualizaMapa = function()
  37.     {
  38.         mapObj.removeIconsOnLayer('layer_vehiculos');
  39.  
  40.         parent.ubicarVehiculo(function(json){
  41.             if(json.error)
  42.             {
  43.                 alert(json.error);
  44.             }
  45.             else
  46.             {
  47.                 if(json.x && json.y)
  48.                 {
  49.                     creaIcono(json.x, json.y , json.id, json.texto);
  50.                     actualizaBarraEstado(json.fecha, json.can_rep);
  51.                 }
  52.                 else
  53.                 {
  54.                     mapObj.ZoomAndGoTo(new SGeoPoint(-65.964588,7.1028366), 5);
  55.                     actualizaBarraEstado('<?php print _("Nunca");?>', 0);
  56.                 }
  57.             }
  58.         }, _cod_veh);
  59.        
  60.     }
  61.  
  62.     var creaIcono = function(x, y , id, texto)
  63.     {
  64.         if(!mapObj) return;
  65.        
  66.         mapObj.ZoomAndGoTo(new SGeoPoint(parseFloat(x), parseFloat(y)),17);
  67.            
  68.         var icon = new SIcon(new SGeoPoint(parseFloat(x), parseFloat(y)), new SSize(32, 32), '../../../media/ico/ico_veh.png', false);
  69.         icon.setDockAlignment("center");
  70.         icon.setTooltip(id);
  71.         icon.id = id;              
  72.  
  73.         mapObj.addIcon(icon, 'layer_vehiculos');
  74.        
  75.         SEvent.AddListener(icon, 'onclick', function(){icon.showInfoWindow(new SSize(300, 245), texto)});
  76.     }
  77.  
  78.     var iniciaClock = function()
  79.     {
  80.         var timer = new STimer(60000);
  81.         timer.startInterval(mapObj, function(){
  82.             actualizaMapa();
  83.             _clock = 61;
  84.         });
  85.     }
  86.  
  87.     var actualizaBarraEstado = function(fecha, reportes)
  88.     {
  89.         jQuery("#spa_ult_rep").text(fecha);
  90.         jQuery("#spa_can_rep").text(reportes);
  91.     }
  92.    
  93.     var refrescaReloj = function()
  94.     {
  95.         var cloT = new STimer(1000);
  96.         cloT.startInterval(mapObj,function(){
  97.             if(_clock > 0)
  98.             {  
  99.                 _clock--;
  100.                 jQuery("#clock").text(_clock);
  101.             }
  102.         });    
  103.     }
  104.  
  105.    
  106. </script>
  107. </head>
  108. <body onload ="init();">
  109. <div id="MiLayer" style="position:absolute; overflow:hidden; width:406px; height:331px; z-index:0; border: 1px solid #000000; left:0px; top: 0px; right: 0px;">
  110. <div id="div_clock"><span id="clock">60</span> <?php print _(" seg.");?></div>
  111. <div id="div_bar_seg" style=""><?php print _("Último Reporte:");?> <span id="spa_ult_rep"></span> &nbsp;&nbsp;&nbsp; - &nbsp;&nbsp;&nbsp; <?php print _("# Reportes:");?> <span id="spa_can_rep"></span></div>
  112. </div>
  113.  
  114. </body>
  115. </html>

Según lo que pude conseguir es que si una variable y un input se llaman igual ocurre esto, pero como podran ver no tengo ningun input en este modulo...

Alguna idea? ayudenme por favor! cualquier otro dato que necesiten con gusto se los publico.

Muchas gracias de antemano!
__________________
Gmail : [email protected]
Twitter: @heiroon

I'm back!

Etiquetas: explorer, metodo, objeto
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:28.