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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hi, a couple of things are drivi

Status
Not open for further replies.

jacobus

Programmer
Apr 16, 2001
15
NL
hi,

a couple of things are driving me nuts!!

I'm working on a labtop with Windows 2000 & SP3 (iis 5.0)
and am trying to validate a form using :
"myForm_onSubmit=false" in a "sub myForm_onSubmit" routine.

I used it before with a server and it worked fine.
However, now the form submits regardless.

I tried the "document.myForm.submit" in a different sub
and also "myForm.action="

Are there things that won't work on a PWS?

On a older computer without SP3 installed I get the
"Object does'nt support this method or property".

Am I just having a bad day or can anyone shed some light.

thanks
jacobus








 
This will be a browser issue, not an IIS issue, IIS only handles what is sent to the browser, if the browser chooses to submit or not is left entirely to the client side code being run by the browser.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
if your looking to get a return value from your routine.. change your SUB to a FUNCTION. Some people get confused over SUB's and FUNCTION's.. I will attempt to illustrate the difference below..

<%
' This is how a function will work..
' pretty much the same as a SUB however a function ALWAYS
' has a return value..
Function DoMath(x,y)
total = x + y
DoMath = total
' The return value is set by assigning something
' to the Function name (DoMath in this case)
end Function
%>

<%=DoMath(2,2)%>

The resulting output is:

4

You can also assign the return values to a variable as well.


<%
' As a SUB

SUB DoMath(x,y)
total = x + y
end Sub

%>

<%
DoMath(2,2)
response.write total
%>

The resulting output is the same (below), however, you have to display it using the variable that was assigned in the SUB itself. You CANNOT place a value into a variable with the same name as the SUB routine.

--- Result ----

4
 
hi Gorkem,

jeez I feel stupid ...
I checkred the old asp-files and indeed it wasn't
&quot;sub myForm_onSubmit&quot; but &quot;function myForm_onSubmit&quot;.

Thanks man.
The headache is already clearing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top