Since _javascript_ is clientside and ColdFusion is serverside, you need to either call a new page, or do a request under the covers via something like Ajax.  I just recently wrote a piece of code using AjaxCFC that set and killed a user's cookie through ColdFusion based on a checkbox on a page using AjaxCFC.  AjaxCFC is really straight forward and this took no time at all to implement.

~Dave

On 7/19/06, Ray Hughes <[EMAIL PROTECTED]> wrote:
Hi All,

I could use some help in engineering a way to set a session variable via a
_javascript_ function.

Example:
**********************
<script>
        function GetReal()
      {
        Do Something;
        Do Something;
        Do Something;
        Do Something;
        Do Something;
        Set session.var1 = '1';                         <!---  Numeric --->
        Set session.var2 = "myString";  <!---  String --->
        document.myDocument.submit();
      }
</script>
**********************

I have a need to set and reset these session variables based on the user
chocies.
Further be able to go back and reuse them.

Anyone have any thoughts.

Regards
Ray

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


_______________________________________________
Reply to DFWCFUG:
  [email protected]
Subscribe/Unsubscribe:
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
    http://www.mail-archive.com/list%40list.dfwcfug.org/
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.HostMySite.com
   www.teksystems.com/



--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz
_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to