Sorry Tobie but first:
As you can see at: http://prototypejs.org/api/insertion
As of Prototype 1.6, the complete Insertion class has been deprecated
in favor of Element#insert.
And second:
I ask for insert the response between Element 2 and Element 3 not at
finish or beginning of the list
But thanks for your try!
On 13 nov, 10:44, Tobie Langel <[EMAIL PROTECTED]> wrote:
> new Ajax.Updater('/foo.html', { insertion: 'top' });
>
> On Nov 13, 5:44 am, Garito <[EMAIL PROTECTED]> wrote:
>
> > Sorry I don't explain myself properly
>
> > I would like to implement this insertion in an Ajax.Updater call and
> > when I go to the api documentation it sends me to Element.insert (this
> > is why I as for it)
>
> > How can I insert the element within an Ajax.Updater call?
>
> > Thanks and sorry!
>
> > On 12 nov, 22:57, kangax <[EMAIL PROTECTED]> wrote:>
> > $$('div.Element')[1].insert({
> > > after: new Element('div', {className: 'Element'}).update('Element
> > > 6')
>
> > > })
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---