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

 Go to top of form when validation errors occur

Print topic Send  topic

Author Message
dhodgdon

Posts: 80
Posted: 05/20/2005, 11:14 AM

When there are validation errors displayed for a form, I want to have the page return to the top of the form rather than to the top of the page.

I have tried putting a bookmark at the top of the form but I can't find a way to jump to that bookmark when validation errors are found after clicking on insert or update buttons.

My form is deep into the page because of the grid above it and users are "assuming" that their input has been recorded because the page returns to the top of the page and they don't see the errors displayed at the top of the form.
_________________
Regards,
David Hodgdon
View profile  Send private message
Nicole

Posts: 586
Posted: 05/23/2005, 2:01 AM

David,
I found that you can add a bookmar to HTML form Action, but it requires asp code modification, e.g.:
  
HTMLFormAction = FileName & "?" & CCAddParam(Request.ServerVariables("QUERY_STRING"), "ccsForm", "categories1" & IIf(EditMode, ":Edit", "")) & "#BookMarkName"  

_________________
Regards,
Nicole
View profile  Send private message
dhodgdon

Posts: 80
Posted: 05/23/2005, 6:31 PM

Thanks Nicole,

It works perfect.
_________________
Regards,
David Hodgdon
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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