Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2003, 09:29 PM
Authorized User
 
Join Date: Sep 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default done, but with errors on page

i have a yellow triangle sign with an ! mark inside, "done but with errors" on page at the bottom of the ie browser.

i think its the "submit button" that's causing the problem. i'm using an image for it.

thanks
 
Old September 9th, 2003, 04:58 PM
Registered User
 
Join Date: Aug 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bjtindle
Default

I'm only a beginner myself - but I can tell you that the warning sign is for JavaScript errors and not for ASP. So the error lies with your JavasCript. (Apologies if I'm stating the obvious).

 
Old September 9th, 2003, 05:46 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You should use form1.action instead of this.form, as form1 is the name of the form. Just do it as you did with the reset button.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old September 10th, 2003, 06:17 PM
Authorized User
 
Join Date: Sep 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to TnTandyO Send a message via Yahoo to TnTandyO
Default

I don't know how much this will help but you can double click on the triangle and a error message will pop with the option to show details. Never helps me much but never hurts to try.

:)
Tandy
 
Old September 11th, 2003, 03:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I think you are doing it difficult for yourself! Couldn't you just do like this...

Code:
<FORM name="form1" method="post" onSubmit="submit_if_validate('form1'); return;">
...
<INPUT type="image" src="btn_submit.gif" name="submitbtn">
...
</FORM>
...? and then have a JavaScript that submits if the validate function passes!? Something like...

Code:
function submit_if_validate(someForm)
{
   if(validate()) document[someForm].submit();
}

function validate()
{
   // some validation code that returns true if it passes and false otherwise.
}
The code is not tested but it should work. I have done something similar myself ;) This way it should be less error-prone.

Jacob.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Login Page errors - Please Solve and Help zirconiumks Beginning PHP 2 October 5th, 2008 07:14 PM
Couple Errors on AddEditArticles page pinch BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 13 December 14th, 2007 04:01 AM
Page 154 Code Errors sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 14th, 2006 08:50 AM
blank page when errors occur harpua Beginning PHP 1 July 7th, 2005 03:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.