/    Sign up×
Community /Pin to ProfileBookmark

JavaScript to stop the page doing anything further

Hi

I have a very strange problem that i need help with, i have a page that once you have finished entering details you are scrolled down by about a pge and can not see the top.

if you have entered somethign in correctly an error is displayed in the error summary at the top of the page.

the problem: when you click “proceed” (when you have entered incorrect information) the page just stays atthe bottom.

solution: I have added JavaScript that scrolls the page back up {page.scroll(0,0)} but there are “other things” that happen after the click (Auto complete extenders and the like that i can not adjust) this now means that the page flies upto the top and then back down again!! I have tried toggling page.maintainpositiononpostback to no luck.

I need some JAvaScript that will stop the page where it is, ie scroll to the top and stop. don;t do anything else – result being page is stuck to the top….

HELP! ?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@toicontienApr 30.2008 — If you have AJAX auto responders that are still pending when you scroll, then you need to scroll only after the AJAX auto responders have finished.
Copy linkTweet thisAlerts:
@PigFarmerauthorMay 01.2008 — Hi

does a standard AJAX auto responder have a "when finished" tag? ie that i can put in the HTML to do the scroll after it has finished like you say?

cheers
Copy linkTweet thisAlerts:
@toicontienMay 01.2008 — Many times it could be called a "callback" or "oncomplete" or "onfinish" function. What AJAX auto responder are you using?
×

Success!

Help @PigFarmer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...