Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Element#insert taking multiple contents
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ngan Pham  
View profile  
 More options Nov 5, 3:53 pm
From: Ngan Pham <nganp...@gmail.com>
Date: Thu, 5 Nov 2009 12:53:30 -0800
Local: Thurs, Nov 5 2009 3:53 pm
Subject: Element#insert taking multiple contents

Would it be reasonable to implement it so that Element.insert takes as many
content as you pass it?  This will exclude insertion points of course...

container.insert(part1);
container.insert(part2);
container.insert(part3);

would be:

container.insert(part1, part2, part3);

Thanks.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Радослав Станков  
View profile  
 More options Nov 6, 8:05 am
From: Радослав Станков <rstan...@gmail.com>
Date: Fri, 6 Nov 2009 05:05:53 -0800 (PST)
Local: Fri, Nov 6 2009 8:05 am
Subject: Re: Element#insert taking multiple contents
I had made a list of useful Element#insert goodies here -
http://gist.github.com/164751
There was a ticket for this
https://prototype.lighthouseapp.com/projects/8886/tickets/752-element...
but as far I understand major changes to Element.insert are planed for
2.0 versio, so for now I use this functionality as a plugin

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deadelus  
View profile  
 More options Nov 6, 2:54 am
From: Deadelus <johanm...@gmail.com>
Date: Thu, 5 Nov 2009 23:54:07 -0800 (PST)
Local: Fri, Nov 6 2009 2:54 am
Subject: Re: Element#insert taking multiple contents
Probably easier to implement using an Array:

container.insert({
 top: [part1, part2, part3],
 bottom: [part4, part5],
 after: "<p>Hello World</p>"

});

On Nov 5, 9:53 pm, Ngan Pham <nganp...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Rumble  
View profile  
 More options Nov 7, 6:22 pm
From: Mike Rumble <mike.rum...@gmail.com>
Date: Sat, 7 Nov 2009 15:22:22 -0800 (PST)
Local: Sat, Nov 7 2009 6:22 pm
Subject: Re: Element#insert taking multiple contents
Agreed. Have often thought that this would be a useful addition.

Element.insert(part1, part2, part3)

and

Element.insert({
  top : [part1, part2, part3]
);

should both be able to be implemented without too much hassle and
would provide some really valuable functionality - let's make it
happen!

Mike.

On Nov 6, 7:54 am, Deadelus <johanm...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google