[jQuery] Re: how change external html AFTER load using $.load

2008-10-22 Thread Jonathan Sharp, Out West Media
Hi gtso86, Do you have a URL of the page in question? It may be that you need to call your $('#rapida ul a')... code after $.load() is finished loading the content. You could do this by using the callback argument: $.load(url, [data], function() { $('#rapida ul a')... }); Cheers,

[jQuery] Re: how change external html AFTER load using $.load

2008-10-22 Thread gtso86
I create a simple test like my problem... because my real problem hosted on blocked domain for external visits. http://www.gabrieltadeu.com/teste/testes.html this example above have the same problem. i need the function $('#rapida ul a').click(function () { var url =

[jQuery] Re: how change external html AFTER load using $.load

2008-10-22 Thread Jonathan Sharp, Out West Media
Erik is correct that liveQuery will work, but you can also just change where you bind the click event. What you want to do is: function listar(id,tipo,busca){ $('#lista' + tipo + busca).remove(); $('#link' + tipo).after('ul id=lista' + tipo + busca + '/ul');