Skip to main content
April 20, 2011
Question

Question about action from a button

  • April 20, 2011
  • 1 reply
  • 924 views

I have an html form (didn't see the need for CFFORM in this instance) and I have a button that is to call

a method.  I am not sure whether to do it from either javascript or cfscript or even a cffunction.  The

issue is (this client/server thing is a serious pain to an old embedded systems developer) that

I have declared and set a session variable (a list).  So, the thing is I have to loop through this

list and send the values to another form for processing.

Question is, should I do this in javascript (which doesn't really like session variables), cfscript,

or a cffunction?  I know server side constructs are more costly and all, but in looking at it,

javascript will be a bear to use with all the stuff on the server side.

So, help, please?   Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    April 20, 2011

    It depends on where the method is written and what you want the user to experience while it is running and after it is finished.

    April 20, 2011

    OK, here's the thing.  I need a way to access the session variable.  That's it.  I want the easiest way.  The development system I

    am using does not have jQuery on it.  I would have to install it on there and update install docs if it is necessary.  If I can do it

    easily enough without using it then my job is easier.  If I must use Ajax and such, then I have to install it, etc.  I'd like to know

    the best way and some tips on how to do this.  Thanks!

    Inspiring
    April 21, 2011

    You can access session variables with Cold Fusion.