Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Annoying Error

Status
Not open for further replies.

amorous

Programmer
Sep 5, 2003
1,008
US
Hi Guys,

I have a form on the ASP page and whenever i fill the form and click submit, i get a message box that says:

****
A Runtime Error has occurred. DO you wish to debug?
Line: 17
Error: Object expected
****

When i click NO for the above question, my form gets submitted without any errors. When i click YES for debugging, new microsoft editor is opened and it points to this below line which i guess has no errors.

<form method=&quot;POST&quot; action=&quot;ISrexsolution.asp&quot; name=&quot;FrontPage_Form1&quot; onsubmit=&quot;return FrontPage_Form1_Validator(this)&quot;>

Any ideas or suggestion on how to get rid of this annoying message box??

Thanks in advance.

VJ

 
try this on your browser (if you're using explorer)

Tools - Internet Options - Advanced - and under Browsing uncheck the option Disable a notification about every script error close your browser and try it again
 
Hi,

That option is already unchecked. Any other suggestions.

Thanks a lot.

VJ
 
Not from this Non-FrontPage user. Sorry
 
Hello dupati1,

In the well-delineated situation you describe, there must be a reason. What does it look like the FrontPage_Form1_Validator()?

regards - tsuji
 
Thanks Guys,

I got my problem solved.

VJ
 
Change this :

<form method="POST" action="ISrexsolution.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)">

to

<form method="POST" action="ISrexsolution.asp" name="FrontPage_Form1">

-VJ
 
So you're not validating your form now? That doesn't seem like much of a solution........

-kaht

banghead.gif
 
Works for me...

I am validating using code...

-VJ
 
more than likely the validation code had an error, more than likely a form element was renamed or removed, and it was still checking for it.

second note, i've done web development for quite some time, and in testing, you get used to the "errors on page, do you wish to keep running scripts on this page" error, and clicking yes, after installing visual studio or other development application that wonderful box changes, and you get stuck with cancel or debug in MS interdev ( yay *gag* ) if anyone would like to know HOW to return your spiffy browser page error to it's prior state ( and not the ruddy debugger ) see : thread333-859488
 
Thanks for that crosslink Drexor, I have vs6, vs.net and several other on here, I love staring at assembly code breakdowns of my web pages when I accidentally hit the wrong button :p

-T

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top