[jQuery] Re: Display ajax result in 2 divs

2008-04-10 Thread Hamish Campbell
Why don't you let jQuery handle the AJAX as well? The "." in your email probably contains some interesting code if you've created the call yourself: $.get('someurl.php', data, function(response) { $('.update_em').html(response).show(); }); http://docs.jquery.com/Ajax Ciao, Hamish On A

[jQuery] Re: Display ajax result in 2 divs

2008-04-10 Thread Web Specialist
Thanks upandhigh! Works like a charm with a class. Cheers Marco Antonio On Thu, Apr 10, 2008 at 9:48 AM, upandhigh <[EMAIL PROTECTED]> wrote: > > but better to put them into on class > > > > > $('.update_em').html(data.saida).show(); > > then you don't need container + you can put them into s

[jQuery] Re: Display ajax result in 2 divs

2008-04-10 Thread upandhigh
but better to put them into on class $('.update_em').html(data.saida).show(); then you don't need container + you can put them into separate parts on the page On Apr 10, 3:16 pm, "Web Specialist" <[EMAIL PROTECTED]> wrote: > Hi all. > > I have a response from Ajax call and I'll want to disp

[jQuery] Re: Display ajax result in 2 divs

2008-04-10 Thread upandhigh
why not to put both divs into one DIV container? $('#update_id div').html("test").show(); On Apr 10, 3:16 pm, "Web Specialist" <[EMAIL PROTECTED]> wrote: > Hi all. > > I have a response from Ajax call and I'll want to display that in 2 > divs(header and footer in my form). Now I'm u