yep its well formed, first thing I checked.

Perhaps returning a object would be better (see thoughts in previous email)

thx

On 9/18/06, Sam Sherlock <[EMAIL PROTECTED]> wrote:
would it help if I returned an object rather than a seris of HTML nodes?

eg the following
[title:'home_reviews', content:'<h2>New content</h2><p>content</p>', image:'', music:3]

if so what would be the syntax I would use to access the various parts of the object?


                $.get("./content/?"+htmlDoc,function(obj)    {
                    console.info('title: ' + obj.title);
                }

still looking for a workable solution.

thanks - S


On 9/18/06, Christof Donat < [EMAIL PROTECTED]> wrote:
Hi,

> > resolve div#music to #music... ?
>
> Err, no, that wouldn't be a good idea, in case someone actually *wants*
> to distinguish between elements here... (although I cannot think of a
> concrete example right now).

Well, it would be possible to use getElementByID('music') and then see if the
returned node is a div. It would deffinately be faster than using
getElementsByTagName('div') and search that list for the one with the
ID 'music'. I don't know what John did use.

Christof

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to