Almacenamiento Almacenamiento
unread,Oct 13, 2011, 11:06:48 AM10/13/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jque...@googlegroups.com, jquery-e...@googlegroups.com
Estoy intentando ejecutar una funcion sencilla para hacer luego un script mas complejo, pero necesito hacer uso del setInterval() para que se ejecute cada cierto tiempo, incrementando una variable.
Lo estoy haciendo en un CMS Drupal, por ese motivo lo cierro entre funciones y el noConflict().
Codigo:
jQuery.noConflict();
(function($){
$(document).ready(function(){
function test(){
alert('we');
}
setInterval("test()", 500);
});
})(jQuery);
El problema es que no sucede nada..
Pero si pongo simplemente
function test(){
alert('we');
}
setInterval("test()", 500);
Si me tira la alerta a cada rato en el navegador, pero no me sirve porque no puedo acceder al DOM con jquery $()
Alguien me puede dar una mano porfavor :)
Gracias, saludos!