Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] question


  • From: javascript@xxxxxxxxxx (Peter Brunone)
  • Subject: [Javascript] question
  • Date: Mon, 27 Jan 2003 09:03:22 -0600

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@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
|Behalf Of khalid shadeed
|Sent: Monday, January 27, 2003 8:35 AM
|To: javascript@xxxxxxxxxx
|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