Thanks, Jon.
I''ve got a solution, but I''ve got an issue occurring with
Firefox.
I decided rather than having a toolbar on InPlaceEditor I would use
onmouseover and onmouseout to expose a hidden toobar that has an edit button
and delete button. Here is how I am doing it:
<div class="container"
onmouseover="Element.show(''toolbar'')"
onmouseout="
Element.hide(''toolbar'')">Text would go here.
<div id="toolbar" style="display:none;">
<%= link_to_remote("delete",
:url => { :action => ''delete_answer''},
:update => "container") %>
</div>
</div>
This works fine in IE. In Firefox, if I mouseover the div it exposes the
toolbar. When I move my mouse up and past the div it hides the div. Perfect.
However, if I move my mouse over to expose it and then down, the div never
gets hidden.
Has anyone seen this and can recommend a workaround?
Thanks,
Steve
On 10/31/05, Jon Tirsen <jon-fQK1VBTDpnXQT0dZR+AlfA@public.gmane.org>
wrote:>
> This is not currently supported in the InPlaceEditor although it is
> definitely possible to support. Either have a stab at it yourself or
> create an issue for it in the issue tracker
> http://dev.rubyonrails.com. This sounds fun so I might have a look at
> it later myself. (Unfortunately no guarantees on when though.)
>
> On 11/1/05, Steve Odom
<steve.odom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > on mouseover when using inplaceeditor it highlights in yellow. Great.
> > However, I want to also show a tooltip inside this div on mouseover.
> >
> > Specifically, when a user is over editable text, besides the yellow
> > background, I want to display next to it a "delete" link.
One of the
> things
> > I''ve tried is this:
> >
> > <script language="JavaScript">
> > new Ajax.InPlaceEditor(''answer_<%=
answer[''id''] %>_view'',
> > ''update_answer'',
> >
> >
{rows:2,cols:40,loadTextURL:"getAnswer"},onMouseover:"Element.show
> (''delete'')";);
> > </script>
> >
> > I''m am a newbie a javascript, so examples are appreciated.
> > Thanks,
> >
> > Steve
> >
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
> >
> >
> >
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs