jquery rocks! and http://visualjquery.com is my main reference!

your quotes are a bit off... but mine are too sometimes!

On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Like this:
>
> $('#el1').empty().append($("#for-el1, xml));
>
> I guess. If thats it then wow I'm really impressed by the expressive power
> of jQuery :)
>
> --Jacob
>
> > switch it around using append & do an empty before it!
> >
> > On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> Thats' 99% of the solution, I hope. But... appendTo replaces or adds? I
> >> want to *remove* the old contents.
> >>
> >> --Jacob
> >>
> >> > I'd say the code would be like
> >> > $("#for-el1",xml).appendTo("#el1");
> >> >
> >> >
> >> > On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> >> OK here's the point: suppose I want to return in one ajax call
> >> several
> >> >> values to be displayed in different dom elements. I'd return an XML
> >> >> value
> >> >> with <for-el1>...</for-el1><for-el2>...</for-el2> and so on. Then
> >> I'll
> >> >> use
> >> >> $("for-el1", xml) and so on to get each piece and stick it into the
> >> >> corresponding element.
> >> >>
> >> >> So how would I do it? Since the xml-tree value of the elipsis is
> >> exactly
> >> >> the dom elements I want to add, how do I replace the current contents
> >> of
> >> >> el1 with that? I'm sure its simple but I'm missing a clue on how to
> >> :)
> >> >>
> >> >> --Jacob
> >> >>
> >> >> > yeah... but what's the point? debugging? some folks (not me) use
> >> html
> >> >> > without trying to deal with it as xml, and just use some regexs and
> >> >> > other methods to insert directly into the current dom (page)
> >> >> >
> >> >> > the beauty of the full ajax deal is to take what you need from the
> >> xml
> >> >> > and slip it just where you want it!
> >> >> > I've gone thru hoops to get back my html as full xml (xhtml) and
> >> >> > played with it in the xml manner.
> >> >> >
> >> >> >
> >> >> > On 11/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> >> >> OK so can it be converted back into a string somehow (w/o knowing
> >> the
> >> >> >> structure) and inserted inside a div for generating HTML display?
> >> >> >>
> >> >> >> --Jacob
> >> >> >>
> >> >> >> > Success's parameter on an xml ajax call is not a string. it's a
> >> >> fully
> >> >> >> > parsed out representation of the  xml. Normally people call the
> >> >> >> > parameter 'xml' not 'msg'.
> >> >> >> >
> >> >> >> > You deal with it differently... if you get pieces of the xml
> >> with
> >> >> >> > standard jquery notation (plus you pass the xml, as in:
> >> >> >> >
> >> >> >> > $("somenode",xml).text() would give you the text from somenode
> >> >> >> >
> >> >> >> > the complete: callback gives you the whole http request so you
> >> can
> >> >> get
> >> >> >> > whatever you want!
> >> >> >> >
> >> >> >> > On 11/3/06, Olaf Bosch <[EMAIL PROTECTED]> wrote:
> >> >> >> >> How I can let the grabbeing xml in browser explain?
> >> >> >> >> With the .html give me *[object XMLDocument]*
> >> >> >> >>
> >> >> >> >> The Function are:
> >> >> >> >>
> >> >> >> >> $.ajax({
> >> >> >> >>    type: "GET",
> >> >> >> >>    url: "url.xml",
> >> >> >> >>    dataType: "xml",
> >> >> >> >>    success: function(msg){
> >> >> >> >>                 $("#content").html(msg);
> >> >> >> >>                 }
> >> >> >> >>    });
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Viele Grüße, Olaf
> >> >> >> >>
> >> >> >> >> -------------------------------
> >> >> >> >> [EMAIL PROTECTED]
> >> >> >> >> http://olaf-bosch.de
> >> >> >> >> www.akitafreund.de
> >> >> >> >> -------------------------------
> >> >> >> >>
> >> >> >> >> _______________________________________________
> >> >> >> >> jQuery mailing list
> >> >> >> >> discuss@jquery.com
> >> >> >> >> http://jquery.com/discuss/
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> >> >> >> > _______________________________________________
> >> >> >> > jQuery mailing list
> >> >> >> > discuss@jquery.com
> >> >> >> > http://jquery.com/discuss/
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> _______________________________________________
> >> >> >> jQuery mailing list
> >> >> >> discuss@jquery.com
> >> >> >> http://jquery.com/discuss/
> >> >> >>
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> >> >> > _______________________________________________
> >> >> > jQuery mailing list
> >> >> > discuss@jquery.com
> >> >> > http://jquery.com/discuss/
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> jQuery mailing list
> >> >> discuss@jquery.com
> >> >> http://jquery.com/discuss/
> >> >>
> >> >
> >> >
> >> > --
> >> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> >> > _______________________________________________
> >> > jQuery mailing list
> >> > discuss@jquery.com
> >> > http://jquery.com/discuss/
> >> >
> >>
> >>
> >>
> >> _______________________________________________
> >> jQuery mailing list
> >> discuss@jquery.com
> >> http://jquery.com/discuss/
> >>
> >
> >
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> > _______________________________________________
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to