Join and Profile Edit don't return you to the top.

I just installed Mauricecano's

http://www.boonex.com/unity/extensions/entry/Join_Edit_page_popup_alert_on_missing_required_field_

mod (which should be integrated into Dolphin) but still have a problem with the Join and Profile Edit pages: if a user edits them and there are errors they don't return the user to the top of the page.  You click the "save" button and it looks like nothing has changed - you're in the same place and you may not be able to see any of the error indicators.  Needlessly confusing!

Is there a simple way to tweak the code to target the top of the page on "save"?

Quote · 5 Apr 2010

Hi Aleingang, you bring up a good point and I will look at making that change here in the next few days!

Quote · 5 Apr 2010

Thanks for your quick reply, and for the excellent popup alert mod!  Wondering if you saw the review/comment I posted on that mod's page?  I and at least one other person had no problems getting it to work on the Join page but can't get it to work on Profile Edit.

Any help with the Not-returning-users-to-the-top-of-the-page problem is greatly appreciated.  Your mod should be part of the standard Dolphin package - it's simple and smart and makes Dolphin much more user-friendly.

Quote · 6 Apr 2010

Bump!

Still looking for a solution to this problem.

Quote · 12 Apr 2010

Here you go

Add  self.scrollTo(0, 0);   on the line after the alert() function, it should look like this:

alert('Alert: There are errors in your profile entries, please correct the fields marked by a red ! next to it.');
self.scrollTo(0, 0);

Do that for both the pedit.js and the join.js, I also updated the mod so you can download that again as well.

Quote · 12 Apr 2010

Brilliant!  Works like a charm.  The problem I was having with the mod not working on the Profile Edit page has disappeared - maybe Safari was caching something and needed to be restarted.

Thanks, man!

Quote · 13 Apr 2010

Good news !! Thank's Mauricecano !

...
Quote · 13 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.