Hey guys

I have a bunch of element fragments (ie this might be a div, with children
of an image, another div) etc which aren't attached to the document yet..
and can't seem to call the dom manipulation methods on them:

down('img.icon') returns undefined but if I look at the innerHTML of the
element, there is clearly an image there with that class.

Is this is a known limitation and what options do I have?

Everything is encapsulated in functions, so I know I need an image tag
there, but I dont know the source until the callee performs some further
ifs, however I need the element for this ifs, it's sorta a catch 22.. so I
generate the dom fragment and then want to set the image src later- except I
cant get a reference until its attached...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to