[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread kingunderscore
Hmm ok. So i what i am getting from this is that i can refer to elements inside of the response object. $('#cold room').html($('house.of_bricks', piggies).html()); So in my case if i call my file and build 3 different divs inside of the html output I can then take the innerHTML from each of the

Re: [jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread Michel Belleville
Well obvisouly you've got it all now. Always a pleasure ^^ Michel Belleville 2009/12/9 kingunderscore brad.kings...@gmail.com Hmm ok. So i what i am getting from this is that i can refer to elements inside of the response object. $('#cold room').html($('house.of_bricks',

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread kingunderscore
ok i'm failing, even the piggies aren't helping. ok this is the structure of what is coming back from my call. div id=top ... /div div id=middle . /div div id=bottom . /div so this is what i am doing... success: function(htmlReturn){ mainData = $j('#top',

Re: [jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread Michel Belleville
Are you returning precisely this : div id=top.../div div id=middle.../div div id=bottom.../div Or is there a wrapper around these divs like : html body div id=top.../div div id=middle.../div div id=bottom.../div /body /html Because I think I remember jQuery doesn't like to fumble around raw xml

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread T.J. Simmons
It needs a root element, that's what I just ran into an issue with (I'm trying something very similar). However, for some reason IE returns null when you try to get the information inside of the tag, but Firefox (and Chrome and Safari) return the correct information. Have you seen that before?

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread kingunderscore
No i haven't seen that yet that i can remember, but i have ran into a lot of issues with IE before it is hard to keep track of them. I found a way around it where i pull everything into a div with a display of none, then i pull the .html() from that and then wipe it out again after i get what i

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread T.J. Simmons
I found a way around it where i pull everything into a div with a display of none, then i pull the .html() from that and then wipe it out again after i get what i need. Yep, just did that myself and it works fine. That's a cheap way of doing things though.. death to IE, I say. Oh well. On

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread kingunderscore
Yeah these things happen oh well. T.J. I will let you know if i find a more graceful way around it. Thanks for the help! Michel Belleville And in reference to your question earlier Michel through firebug i am not getting an HTML wrapper. It is just the divs and their content. On Dec 9, 3:56 

[jQuery] Re: Multiple responses from a single Ajax call

2009-12-09 Thread T.J. Simmons
I'll do the same. Thanks! T.J. On Dec 9, 4:45 pm, kingunderscore brad.kings...@gmail.com wrote: Yeah these things happen oh well. T.J. I will let you know if i find a more graceful way around it. Thanks for the help! Michel Belleville And in reference to your question earlier Michel