If you don't return false on a <a href="#" ... /> it is going to go to #, which is the top of the page. Try adding return false; to the bottom of your click handler.
On Tue, Aug 25, 2009 at 5:09 PM, Guyren G Howe <[email protected]> wrote: > > On Aug 25, 2009, at 17:01 , James Miller wrote: > > > Do you need to return false; to prevent further execution? What's > > triggering the ajax request? > > That doesn't help. > > Actually, I described this a bit wrong. I've done an ajax request and > displayed a set of options for the user. This is called by the user > clicking on one of those options. The ajax update that preceded it > actually works fine. > > > Does the action that triggers the ajax call happen to be a link with > > an anchor? <a href="#" ... /> ... that can cause your problem > > Yes. Do you know a solution? > > 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 -~----------~----~----~----~------~----~------~--~---
