Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/12/2014, 11:17
diurno10
(Desactivado)
 
Fecha de Ingreso: abril-2013
Ubicación: rosario
Mensajes: 248
Antigüedad: 11 años
Puntos: 17
Respuesta: Llamar a una función - ReferenceError: Can't find variable

Pregunta, porque haces esto ? jQuery(function getAjaxDatat(id){
No podes hacerlo asi?

Código Javascript:
Ver original
  1. jQuery(function () {
  2.  
  3.     function getAjaxDatat(id){
  4.         jQuery.getJSON('data-temp.php', {id: id}, jQuery(function(chartData) {
  5.             Highcharts.setOptions({
  6.                 lang: {
  7.                 contextButtonTitle: 'Opciones',
  8.                 }
  9.             });
  10.         })
  11.     }  
  12.    
  13.  
  14.     getAjaxDatat(24);
  15.     jQuery('#data-temp').change(function(){
  16.         var val = jQuery('#data-temp').val();
  17.         getAjaxDatat(val);
  18.     });
  19.    
  20. });