[Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-08 Thread Luke
sert it, and then search for it. > > > On Dec 7, 5:10 pm, Rick.Wellman wrote: > >> Is it just me,... I don't understand what you're even asking/trying   > >> to accomplish? > >> What kind of "DOM" object are you hoping to create?  Call it a  

Re: [Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Walter Lee Davis
s terse but I truly do not understand your question/goal. -----Original Message----- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptaculous@googlegroups.com ] On Behalf Of Luke Sent: Tuesday, December 07, 2010 9:59 AM To: Prototype & script.aculo.us Subject: [Proto-Sc

[Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Luke
.   > > Apologies if this seems terse but I truly do not understand your > question/goal. > > > > -Original Message- > From: prototype-scriptaculous@googlegroups.com > [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Luke > Sent: Tuesday, December 07, 2010

RE: [Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Rick . Wellman
terse but I truly do not understand your question/goal. -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Luke Sent: Tuesday, December 07, 2010 9:59 AM To: Prototype & script.aculo.us Subject: [Proto-Scripty

Re: [Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Walter Lee Davis
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'r

[Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Luke
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. On Dec 7, 4:52 pm, Walter Lee Davis wrote: > That's because I called innerHTML on it at the end, and that returns a   > string. If you then want to create a new

Re: [Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Walter Lee Davis
That's because I called innerHTML on it at the end, and that returns a string. If you then want to create a new element out of that, you could try inserting it into your page somewhere with $('someElementOnYourPage').insert({after: foo}); Of you could just leave the innerHTML part off the en

[Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Luke
Hmm, damn. the returned value is still a string :( On Dec 7, 9:16 am, Luke wrote: > Thanks Walter! > > On Dec 6, 6:28 pm, Walter Lee Davis wrote: > > > > > On Dec 6, 2010, at 12:12 PM, Walter Lee Davis wrote: > > > > It's OT for this list, but have a look at Prototype.js. You can   > > > create

[Proto-Scripty] Re: How to create a new DOM-element from a string?

2010-12-07 Thread Luke
Thanks Walter! On Dec 6, 6:28 pm, Walter Lee Davis wrote: > On Dec 6, 2010, at 12:12 PM, Walter Lee Davis wrote: > > > It's OT for this list, but have a look at Prototype.js. You can   > > create a new DOM element in memory, and do all the things you want   > > to it without ever showing it to th