[Seaside] dynamic selection - liveCallback question

Jason Rogers jacaetevha at gmail.com
Mon Jul 4 01:45:03 CEST 2005


Actually, you only get a DOM if the response was sent back with a
content-type header of "text/xml" or "application/xml" (the flat XML
will be in the responseText as well).  Otherwise, you will only get a
responseText.

On 7/2/05, Ramon Leon <ramonleon at cox.net> wrote:
> Avi Bryant wrote:
> > On Jul 2, 2005, at 4:15 PM, Michel Bany wrote:
> >
> >>
> >> I  did the tweaking of the javascript, and it seems to work just fine.
> >> The result is interesting when you see many different areas of a  page
> >> being updated with just
> >> a single key stroke. It also solves the problem where too much html
> >> is replaced with the
> >> current version of the javascript.
> >>
> >> The tweaking was not small since it needs an XML parser to properly
> >> extract all the pieces
> >> individually in all possible situations.
> >> I selected the XML parser from David A. Lindquist that I found at
> >> http://www.gazingus.org/html/XML_Parser_in_JavaScript.html
> >> with a couple of slight changes.
> >
> >
> > Doesn't XmlHttpRequest support viewing the response as an XML DOM
> > rather than as text?  Is there any need for a separate parser?
> >
> > Avi
> > _______________________________________________
> 
> Yes, all major browsers have a client side DOM, there is no need to
> write one in javascript.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
> 


-- 
Jason Rogers

"I am crucified with Christ: nevertheless I live; yet not I,
but Christ liveth in me: and the life which I now live in 
the flesh I live by the faith of the Son of God, who loved 
me, and gave himself for me."
    Galatians 2:20


More information about the Seaside mailing list