Skip to main content
Known Participant
January 26, 2009
Question

setting a variable without get or post

Hi,

I want to create and set a variable without get or post, (ajax I suppose then) so I can set a variable without posting my form.

How can I do this?
    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    Inspiring
    January 26, 2009
    What do you intend to do with the variable after you create it?
    Translate
    HulfyAuthor
    Known Participant
    January 27, 2009
    Hi,

    am creating a 5 step form with next and previous buttons. I found an example in CFWACK that does it the way I am at present. I have next and previous button and every step sends the form and sets a part of the form into session variables.

    I just thought it may be more economical to set these using CF AJAX features and only post the form after step 5.

    cheers,

    H.
    Translate
    Inspiring
    January 26, 2009
    Hulfy wrote:
    > Hi,
    >
    > I want to create and set a variable without get or post, (ajax I suppose then)
    > so I can set a variable without posting my form.
    >

    You can't do this without get or post. AJAX is still a post, it just
    does the post behind the scenes of the browser so that the user
    interface is not affected.

    But from the server's (aka ColdFusion's) viewpoint, it is just a post,
    AKA form variable, no different from any other HTTP post.

    There are good "Hello World." ColdFusion and AJAX tutorials all over the
    internet. Which one you use depends greatly on what version of
    ColdFusion you are using. CF8 has built in AJAX functionality that does
    allot of the ground work for you. Earlier versions of ColdFusion work
    with AJAX just fine. You just need to take care of more of the details
    yourself and|or use one of the community frameworks such as CFCAjax or
    the older CFAjax.
    Translate