Hi all. I have specific situation that I want to made element to be edited in place (i mean I want to wrapped that element Ajax.InPlaceElenment) but i want that inplaceeditor be triggered not clicked in that element but in the other element. e.g. there are two divs and first I want to be inplaced editor but this inplaced editor should be trigerred when i clicked in second divs. How to do it nice? Thanks or any help Gregor ---------------------------------------------------- Juwenalia.wp.pl 2006 - NAJWIĘKSZE KONCERTY w całej Polsce! Zobacz gdzie trzeba być i warto się bawić! Kliknij po szczegóły: http://klik.wp.pl/?adr=www.juwenalia.wp.pl&sid=748
The inPlaceEditor has an externalControl option if I remember. Set this to the id of the item that will trigger the editor. Deco On May 8, 2006, at 6:55 AM, Grzesiek Slusarek wrote:> Hi all. I have specific situation that I want to made element to be > edited in place (i mean I want to wrapped that element > Ajax.InPlaceElenment) but i want that inplaceeditor be triggered > not clicked in that element but in the other element. e.g. there > are two divs and first I want to be inplaced editor but this > inplaced editor should be trigerred when i clicked in second divs. > How to do it nice? > Thanks or any help > Gregor > > ---------------------------------------------------- > Juwenalia.wp.pl 2006 - NAJWIĘKSZE KONCERTY w całej Polsce! > Zobacz gdzie trzeba być i warto się bawić! Kliknij po szczegóły: > http://klik.wp.pl/?adr=www.juwenalia.wp.pl&sid=748 > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Deco write: " The inPlaceEditor has an externalControl option if I remember. Set this to the id of the item that will trigger the editor. Deco " Ok i found in documentation but how to do this, when i have to use this in event procedure?? i have div that when i clicked on i want to trigger the editor. in function that is called when onclick happen i did like this: function eventProcedure(event) { id = this.id.substring(1); new Ajax.InPlaceEditor(''a''+id, ''/demoajaxreturn.html'',{externalControl: id}); } but this only does that element ''a''+id is made inplaceEditor and clicking him trigger editor. And I want that function eventProcedure trigger editor, how to do it? Thank for any help Gregor ---------------------------------------------------- GUNS N''ROSES z charyzmatycznym wokalistą Axl''em na jedynym koncercie w Warszawie! Bilety: wwW.odyssey.pl wwW.ticketpro.pl http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fguns2.html&sid=747