[thelist] Brain fart html w/asp (revisited)
Jay Blanchard
jay.blanchard at niicommunications.com
Fri Apr 26 11:21:01 CDT 2002
[snip]
<%@LANGUAGE="VBSCRIPT"%>
<%
sub saveArticle()
dim stuff, stuff_1, stuff_2
'rest is commented out
end sub
%>
...
<form>
<input type="button" name="Save" value="Save and Exit"
onClick="saveArticle()">
</form
When I try to click on the button in the web browser, IE5(? matters not)
throws an error:
"Object expected"
[/snip]
Since ASP is processed server-side you cannot call an ASP function from an
onclick event. You would have to have your form action set to foo.asp (where
saveArticle() is), and pass variables to foo.asp for the function.
HTH!
Jay
More information about the thelist
mailing list