What do you mean... show me an example please.... thanks
This is being done in classic ASP with VB Script
Peter
Main Topics
Browse All TopicsHere's the first page: untitled-1.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
The Session variable "MyVar" contains: <%=Session("MyVar")%>
<p>Update it to <input type=text ID="txtSession" size=50 value="<%=Date()%>">
<p>
<input type="button" value="Set Session var via XMLHTTP" onClick="SetSessionXMLHTTP
</p>
<p><a href="untitled-1.asp?rando
<script language="VBScript">
sub SetSessionXMLHTTP
sValue = trim(document.getElementBy
set obj = CreateObject("Microsoft.XM
obj.Open "GET", "untitled-2.asp?SessionVar
obj.Send
end sub
</script>
</body>
</html>
and here's untitled-2.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
Session("myVar") = Request.QueryString("Sessi
%>
PROBLEM:
The session variable is not getting set and comes back with nothing...
REASON FOR DOING THIS:
I need to RESET a sesion variable on the fly...
HELP????
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
here is examples of server side xmlhttp http://4guysfromrolla.com/
I'm not posting a form at all. There's NO form tag on the first page. The code is self-explanatory above. Simply cut and paste it into two pages. untitled-1.asp and untitled-2.asp.
All I'm doing is changing the Session variable on the fly.
The code makes you refresh the page to see the change to the session variable. I don't want that. I want the session variable to change without having to refresh the page. Make sense? Is that doable?
It's Friday, so my fuse may be a bit short. You should use JavaScript, not VBScript.
Try this:
http://www.w3schools.com/p
http://www.jibbering.com/2
The links I sent were examples of Javascript, right before last post. I'm afraid the code I have, which uses similar code from the example links, is confidential and I cannot post it.
These links should give you what you need:
http://www.w3schools.com/p
http://www.jibbering.com/2
And, this should give full working example:
http://www.w3schools.com/p
Business Accounts
Answer for Membership
by: golfDoctorPosted on 2009-09-04 at 07:39:11ID: 25260130
you are using client side XMLHTTP. Use server side when you post the form, and it should be fine