[Prototype-core] Re: Problem with Element.insert

2007-12-20 Thread Tobie Langel
It's working fine for me here, btw. I suspect your element doesn't yet exist in the DOM. Best, Tobie On Dec 20, 5:15 pm, AlcoholicMogli86 <[EMAIL PROTECTED]> wrote: > Hi symfony, > > I think it wouldn´t works because it´s wrong i think. > You want to insert it, but on which place? > > Try Inse

[Prototype-core] Re: Problem with Element.insert

2007-12-20 Thread Tobie Langel
Hi AlcoholicMogli86, Symfony's right, the Insertion class has been deprecated. Best, Tobie On Dec 20, 5:15 pm, AlcoholicMogli86 <[EMAIL PROTECTED]> wrote: > Hi symfony, > > I think it wouldn´t works because it´s wrong i think. > You want to insert it, but on which place? > > Try Insertion.Afte

[Prototype-core] Re: Problem with Element.insert

2007-12-20 Thread AlcoholicMogli86
Hi symfony, I think it wouldn´t works because it´s wrong i think. You want to insert it, but on which place? Try Insertion.After('blabla', 'div id="test" class="testclass">testdiv'); /* Insertion.Before Insertion.Top Insertion.Bottom works too.. */ //--- //<--- if you impl. a js fuc

[Prototype-core] Re: Problem with Element.insert

2007-11-26 Thread symfony
That's the complete errormsg-output of firebug: t has no properties insert(div#panel_menu_left_cat_tree_hd.hd, Object)prototype.js (line 1647) _methodized()prototype.js (line 247) initResizer(undefined)panel.js (line 342) initialize("panel_menu_left")panel.js (line 226) klass()prototype.js (line

[Prototype-core] Re: Problem with Element.insert

2007-11-26 Thread Mislav Marohnić
Then, it might be a bug, and your report might be valuable to us. I don't see any mis-use in your code. You should create a minimal document where this fails and create a ticket on Trac. http://prototypejs.org/contribute Thanks On Nov 26, 2007 9:49 PM, symfony <[EMAIL PROTECTED]> wrote: > > Sor

[Prototype-core] Re: Problem with Element.insert

2007-11-26 Thread symfony
Sorry, for posting in this group, i didn't thought of 'ror_spinoffs'. The code above, was actually wrong. I tried something like this: var resizer = $(element).insert({top: ''}); But the error is the same.. kind regards Mislav Marohnić schrieb: > On Nov 26, 2007 9:22 PM, symfony <[EMAIL PROTECTED

[Prototype-core] Re: Problem with Element.insert

2007-11-26 Thread Mislav Marohnić
On Nov 26, 2007 9:22 PM, symfony <[EMAIL PROTECTED]> wrote: > > Hello, > I've got a problem using Element.insert(' class="testclass">testdiv'); Hi, The first argument to Element.insert should be the element that is the reference of insertion. Try doing this: Element.insert(document.body, 'te