• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

VBScript: onclick and onsubmit

Liviathan

Platinum Member
I have a form that has an include file full of vbscript functions.

On the click of the submit button I want to run a specific function on that file, how do i do that?


Thanks
 
Response.Write "<FORM action=inc/LogInFunctions.asp method=post id=frmLogIn name=frmLogIn LANGUAGE='VBScript' ""onSubmit=LogInUser"">"


Thats my code, and it completely ignores th call to LogInUSer
 
Is LoginUser on the server or on the client?

You can't make calls like that. onSubmit is only for triggering client-side scripts.

Server-side ASP scripts must be called via the VBScript on the server.

<%
LoginUser()
%>
 
Back
Top