Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-29-2008, 08:53 PM   PM User | #1
Arragon
New Coder

 
Join Date: Jan 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Arragon is an unknown quantity at this point
[prototype 1.6] - insertion syntax

Perhaps it is a caffeine deficiency but I am choking on something that ought to be simple.

I am trying to insert an element into the dom after a specific div and I am having trouble with the syntax.

The documentation does not have any sample code:
http://prototypejs.org/api/element/insert
and everything I have tried that looks right just appends the element into the div.

Can anyone show me an example of the correct syntax for insert, position:after?

Thanks
Arragon is offline   Reply With Quote
Old 03-29-2008, 09:56 PM   PM User | #2
Arragon
New Coder

 
Join Date: Jan 2007
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Arragon is an unknown quantity at this point
Never mind, I got it.

my_div.insert({'after':my_element});
Arragon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:08 AM.


Advertisement
Log in to turn off these ads.