you could use a counter like so
*******************************
Dim objFile
dim iCounter
iCounter=0
For Each objFile in objFolder.Files
'Print out the name
If InStr(1, objFile, strSearch, 1) Then
iCounter=iCounter+1
Response.Write "<L1><A...
You can do that but you need to use remote scripting or create a web service and use the webservice behavior(webservice.htc is available for download on the microsoft site)
Here are some links that may help...
use the datediff function
Returns the number of intervals between two dates.
DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])
The DateDiff function syntax has these parts:
Arguments
interval
Required. String expression that is the interval you want to use to calculate...
Since you have a reference to the object passed into the function, you can get any value associated with the object.
You can get its name(part detail) in your function as so:
<script language="javascript">
function showInfo (blah){
//var indVal = document.forms.value...
You could use ado and mdx (Multidimensional Expressions)
use this link for an into to mdx (use topcount function for your needs)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolap/html/intromdx.asp?frame=true
and here is a link showing vb and ado...
You are passing this.name to the function.
Pass this (i.e. onClick="showInfo(this);")
this passes a reference to the checkbox object.
You can then check the value to see if it is checked:
blah.checked
use this code for testing
<TD><INPUT TYPE="checkbox"...
First == means they are the same So this statement
document.form1.pwd.value == document.form1.pwd2.value
says that if pwd=pwd2 then execute the code with in the block.
I assumed that you do want them to be not equal to execute the code in the block since you have the alert
alert('The passwords...
try this for your function
function ValidateForm(){
if (document.form1.pwd.value != document.form1.pwd2.value)
{
alert('The passwords did not match');
document.form1.pwd.value = "";
document.form1.pwd2.value = "";
document.form1.pwd.focus()...
I changed this
for (m = temp.options.length - 1; m > 0; m--) temp.options[m] = null;
to
this
for (m = temp.options.length - 1; m >= 0; m--) temp.options[m] = null;
the select starts at 0.
I also put fixed width for the table to prevent jumping around.
try this:
<HTML>
<HEAD>
</HEAD>
<BODY>...
I don't know if you uncommented the option explicit.
But when I did I found 2 more error.
Try this now
<%@ Language=VBScript %>
<% option explicit %>
<html>
<head>
<title>Calendar</title>
</head>
<body>
<%
'Get month name
function GetMonthName(iMonth)
Select Case iMonth
Case 1...
try this
cookie1 = "Your browser settings are set to reject cookies. You can either
lower your settings by choosing Medium in the Internet Options located in
the Tools Menu or you can visit <a
href='www.abc.com/agentlogin.asp'>www.abc.com/agentlogin.asp</a> to login without using...
You could try something like this
dim sDate
sDate="12/29/2003 - 01/05/2003"
dim arrDate
arrDate=split(sDate," - ")
sdate1=cdate(arrDate(0))
sDate2=cdate(arrDate(1))
if (year(sDate1) <> year(sDate2) ) then
msgbox "Year has changed"
else
msgbox "Year has not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.