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
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
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
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
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
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
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