On Dec 7, 2010, at 10:59 AM, Luke wrote:

Hm ok, hoped there would be a way I could generate a DOM object that
consists of just the HTML (without wrapper) and before I insert it.


There's no need for this, since inserting a string and inserting an object have the same effect as long as you're using the Element.insert() method.

But you may be doing too many steps here. What does your Ajax method return to you? What are the transformations you are performing on it? You may be able to do this in fewer stages than you think. Can you post a cut-down example of the code returned through Ajax and the code after you've massaged it but before you've inserted it in your page?

I suspect you could do all of the work using string methods, and then using that same string insert the modified HTML into your page.

Another approach would be to insert the original HTML using insert(), then obtain or maintain a handle on the inserted code such that you could manipulate it in situ. It would probably happen so quickly that nobody would see the modifications take place.

Walter

--
You received this message because you are subscribed to the Google Groups "Prototype 
& script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to