Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support > Long PostWrap page doesn't show top after submit


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: Long PostWrap page doesn't show top after submit

Newbie





Posts: 3
Registered: 1/20/2003
Status: Offline

  posted on 2/13/2003 at 03:02 PM

Hi folks,
This may have already been answered, but I couldn't figure out how to search or how to do it:

I have a survey on my site of 100+ questions that I am embedding using PostWrap. I have AutoResize off, and have the vsize set to 14500 (via phpMyAdmin) so I don't have 2 scroll bars.

The Submit button is at the bottom. When a user clicks on Submit, the survey processes, and prints out the results in the frame correctly. However, the frame is scrolled so far down that they don't realize the page has loaded, since the screen looks blank (we have even scrolled below the bottom of the PN left margin).

How can I get the window scrolled back to the top after submitting the form? I've looked for JavaScript help, but I can't seem to find anything which looks like what I need.

Can anyone here help?
TIA
Mike

 
Reply With Quote

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Offline

  posted on 2/15/2003 at 11:06 PM
Until I post an upgrade/bugfix soon, try the js, window.scroll(0,0) or window.scrollTo(0,0). I'll try and find the exact syntax.

-Shawn

 
Reply With Quote

Newbie




Posts: 3
Registered: 1/20/2003
Status: Offline

  posted on 2/17/2003 at 06:43 PM
I embedded this into my result frame:

quote:
<script language="JavaScript">parent.window.scrollTo(0,0);</script>


That popped me back to the top!
Thanks!
Mike

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 180

Powered by the AutoTheme HTML Theme System
Page created in 0.107082 Seconds