[thelist] Brain fart html w/asp (revisited)
Chris Blessing
webguy at mail.rit.edu
Fri Apr 26 11:19:18 CDT 2002
Rob, you're trying to call an ASP function on the client-side, and the
browser is expecting a Javascript function to be there, hence the object
expected error.
You can't cross server-side and client-side programming unfortunately. I'd
write more but I'm in a bit of a rush, hth!
Chris Blessing
webguy at mail.rit.edu
http://www.330i.net
> Hi
>
> This about calling ASP 2.0 functions from html forms...again.
>
> Here's what I have
>
> <%@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"
>
> What could possibly be wrong with this? missing anything?
>
> Thanks in advance,
>
> Rob
More information about the thelist
mailing list