[jQuery] Re: Load specific id on click

2008-06-25 Thread Ischa Gast
Damn, I thought it works on Firefox/Safari/Opera on the mac then it should also work in Internet Explorer, but is does not :( On Wed, Jun 25, 2008 at 11:56 AM, Doover <[EMAIL PROTECTED]> wrote: > > Thank you so much for this! :) > > On May 29, 11:48 pm, IschaGast <[EMAIL PROTECTED]> wrote: > > Af

[jQuery] Re: Load specific id on click

2008-06-25 Thread Doover
Thank you so much for this! :) On May 29, 11:48 pm, IschaGast <[EMAIL PROTECTED]> wrote: > After some searching I found the solution: > > $('#content_main div.weblog_archive li a').livequery('click', > function(event) { >         $('div.article_ajax').load($(this).attr("href") + ' div.article');

[jQuery] Re: Load specific id on click

2008-05-29 Thread IschaGast
After some searching I found the solution: $('#content_main div.weblog_archive li a').livequery('click', function(event) { $('div.article_ajax').load($(this).attr("href") + ' div.article'); event.preventDefault(); }); On May 28, 9:34 pm, IschaGast <[EMAIL PROTECTED]> wrote: > At

[jQuery] Re: Load specific id on click

2008-05-28 Thread IschaGast
At the moment this is my code: $('#content_main div.weblog_archive li a').click(function() { $('').insertAfter('div.article').load(this.href); $('div.weblog_articles_ajax div.article').livequery(function() { $(this).html(); }); return false }); You

[jQuery] Re: Load specific id on click

2008-05-28 Thread IschaGast
I tried something like this and that works: $('#content_main div.weblog_archive li a').click(function() { $('div.article').load("http://ischagast.nl/janhekmanschool/ nieuwsbrief/archief_maand/2008/05/ div.article"); return false }); But that url (ht

[jQuery] Re: Load specific id on click

2008-05-28 Thread Sid
Load the entire page and then parse it with $("#div_you_want").html(); This will return everything within div_you_want including HTML tags. Use .text() if you need only the text stripped of HTML. Note: Since ur loading the page dynamically, jQuery will not automatically update the DOM, so use