Hi Sanford,
I like that it works fine with responseElements[0] including style-
Orders. You are right that the docs says this is an array containing
all elements of the remote response. But it seems that the first
element has all information i need. With responseHTML - the content of
the remote response i do not get any or a wrong result.

Ryan Florence is using responseElements[0] for a simuliar need in his
class LasyPagination.js provided on forge.



On 27 Jul., 21:30, Sanford Whiteman <[email protected]>
wrote:
> > i reached a result with
> > responseElements[0].inject($('work'),'bottom');
>
> I  don't know why you'd end up using responseElements. As Ryan pointed
> out,  that's  just a flattened list of els. I don't think I've had any
> occasion to inject that form (though it's good for data parsing).
>
> > Question: Why are the style-Orders (style="background-color:blue;") in
> > your example arent executed?
>
> A bug in 1.2, not present in 1.3. Not all browsers are affected (IE is
> not).
>
> What happens is the responseTree is seen by the browser as generic DOM
> elements    (Element),    not    specifically    HTML   DOM   elements
> (HTMLDIVElement).  So  the  style  attribute  is  preserved, but isn't
> treated  as  an inline CSS style, just a generic attribute. This leads
> to  strange  CSS  problems,  since  the  els  can be styled using type
> selectors but not using typical CSS-related attributes (class, style).
>
> -- S.

Reply via email to