[jQuery] Re: Fwd: DOM traversing problem.

2007-08-07 Thread Dan Eastwell
Hi John, Thanks for looking into it, but I've gone with another direction now - essentially getting the sum back as a JSON parameter from the server, saving me having to derive it. Basically put, though the table shown represents a child - the id is repeated in every row within the table. I need

[jQuery] Re: Fwd: DOM traversing problem.

2007-08-07 Thread John Resig
Dan - Do you have a full page where this is running? Unfortunately not all of the HTML for this document is present, so I'm not sure if there's another issue at play here. If you could put the full HTML or a demo online, that'd be most helpful. --John On 8/7/07, Dan Eastwell <[EMAIL PROTECTED]>

[jQuery] Re: Fwd: DOM traversing problem.

2007-08-07 Thread Dan Eastwell
The structuring issue aside, and as I understand it (and without validation errors) in XHTML1.0 strict you can have any block level element in a list element. (This may well be changing in later HTML versions, AFAIK). That aside, do you have an answer for my DOM traversing issue using jquery? It's

[jQuery] Re: Fwd: DOM traversing problem.

2007-08-06 Thread Karl Rudd
Actually you can have anything inside an LI, I've used that structure many times. LIs are a kind of limited block level element, limited in the sense that their parent has to be an OL or a UL. DTs are inline elements, perhaps that's what you were thinking? Karl Rudd On 8/7/07, John Resig <[EMAI

[jQuery] Re: Fwd: DOM traversing problem.

2007-08-06 Thread John Resig
You can't have a table and h4 inside of an LI - they're both block-level elements, so browsers automatically push them outside of the LI (meaning that you can't find them. You'll have to use some other markup structure in order to handle that. --John On 8/6/07, Dan Eastwell <[EMAIL PROTECTED]> w