Do you need to return false; to prevent further execution?  What's
triggering the ajax request?
James

On Tue, Aug 25, 2009 at 4:58 PM, Guyren G Howe <[email protected]> wrote:

>
> This gets run after an ajax call comes back:
>
>     $('firmware_chooser').addClassName('hidden');
>     var d = $('firmware_results');
>     d.update('<input name="device[firmware_id]" type="hidden"
> value="' + id + '"><a href="' + url + '">' + name + '</a>' +
>         ' [<a href="#" onclick="search_firmware_again()">Change</a>]');
>     d.removeClassName('hidden');
>     <%= visual_effect :highlight, 'firmware_results', :duration =>
> '0.5' %>
>
> The update happens fine, but although the thing I've just updated is
> visible at the end of this script, the window scrolls to the top
> afterward.
>
> I've tried adding a d.scrollTo() just before the visual_effect, but
> that doesn't help.
>
> I've googled a bit and not found a report of this behavior, let alone
> a fix. Any thoughts? (Safari 4.0.3 on Leopard).
>
> Regards,
>
> Guyren G Howe
> Relevant Logic LLC
>
> guyren-at-relevantlogic.com ~ http://relevantlogic.com ~ +1 512 784 3178
>
> Ruby/Rails,  REALbasic, PHP programming
> PostgreSQL, MySQL database design and consulting
> Technical writing and training
>
> Read my book, Real OOP with REALbasic: <
> http://relevantlogic.com/oop-book/about-the-oop-book.php
>  >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to