Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Cookie in OnChange Event

Status
Not open for further replies.

rtshort

IS-IT--Management
Feb 28, 2001
878
US
Pretty much says it all. How, if possible, do you set the value of a cookie in the OnChange event of a Combo Box? Rob
Just my $.02.
 
What is a Combo Box?
If you are talking about a <SELECT> menu then you can do that in Javascript. Use document.cookie in an event handler script.

<SELECT ... onchange=&quot;bakeACookie()&quot;>
. . .
</SELECT>

<SCRIPT>
function bakeACookie (){
//Define cookie ingredients.
document.cookie = &quot;cookie ingredients&quot;;
}
</SCRIPT>
 
Hey rac, you are in the wrong forum... try the baking forum. [thumbsup2] www.vzio.com
ASP WEB DEVELOPMENT



 
I'm using Visual Interdev and the ComboBox from the ActiveX controls. I'm trying to use VBScript. Can it be done with VBS? Thanks for the reply. Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top