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" 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED] > 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
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to