[Javascript] question

Peter Brunone peter at brunone.com
Mon Jan 27 09:03:22 CST 2003


Marhaba Khalid,

	Are you talking about a server-side VBScript function (ASP) or a
client-side VBScript function?  If it's server-side ASP, then you just need
to write it into the javascript when the page loads, like this:

<script language="javascript">

function checkPasswordChange() {
// This is just whatever function you use for checking.
	var dateDifference = <%=dateDifferenceFromDatabase%>;
	}

</script>

	Just use the inline ASP tags to write the value directly into the
javascript function, as shown above.

Cheers,

Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of khalid shadeed
|Sent: Monday, January 27, 2003 8:35 AM
|To: javascript at LaTech.edu
|Subject: [Javascript] question
|
|
|Hi
|I have question for you, if you can answer it for me, any help will be
|appreciated.
|
|I have function on vbscript calling the database and get date difference
|between two dates for any user, creation date for password and expiration
|date for password. That function taking parameter the userId, and I have
|javascript function suppose to get that value as number and test to see if
|the user has to change the password. Prompt the user message
|telling him/her
|that they have to change the password
|The Problem I have is, i do not know how I can pass the result
|from vbscript
|function to JavaScript function.
|Thanks in advance and i hope to hear from you soon.
|
|Regards
|
|Khalid Shadeed




More information about the Javascript mailing list