CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Controling what displays after submitting a form

Print topic Send  topic

Author Message
dhodgdon

Posts: 80
Posted: 04/26/2005, 10:59 PM

When I click the button to add or submit information on a form, I want to go to the top of the form. I tried setting bookmarks but the browser just jumps to the top of the page. The Return Page value for the button is blank, the Return Page for the form is the page it is located on. I tried various placements of #bookmark in these fields with no success.

Can someone point me in the right direction?
_________________
Regards,
David Hodgdon
View profile  Send private message
Nicole

Posts: 586
Posted: 04/27/2005, 4:19 AM

Hello,
You can modify Redirect variable in After Update/Insert events and add a bookmark to it. Redirect contains a returns page name and parameters.

_________________
Regards,
Nicole
View profile  Send private message
dhodgdon

Posts: 80
Posted: 04/27/2005, 5:15 AM

Thanks Nicole,

Would the same hold true for the On Validate event because the same problem occurs there? This is what actually prompted the question because users were missing the error messages by not scrolling back down to the form and assumed the data was accepted. Normally, I redirect to a confirmation page when successful but this particular page allows the user to return back to the linked grid and edit other records.
_________________
Regards,
David Hodgdon
View profile  Send private message
dhodgdon

Posts: 80
Posted: 04/27/2005, 2:00 PM

Okay, I'm unsuccessful.

I found where the redirect URL is built in the main code file for the forms Operation Method. I can alter that code to go to a bookmark if the form does not contain errors and successfully inserts or updates..

I still can't find a way or make anything work that takes the page to the bookmark when the form contains errors.
_________________
Regards,
David Hodgdon
View profile  Send private message
Nicole

Posts: 586
Posted: 04/28/2005, 2:42 AM

I think you can add a bookmark via client side code. Create Insert/Update buttons onClick events and add bookmark to window.location.href (I haven’t tried this solution, it is only an idea)
_________________
Regards,
Nicole
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.