Skip to main content
Participating Frequently
March 19, 2010
Question

Upgrade from ColdFusion6 to Cold Fusion8 -- Required Code Changes

  • March 19, 2010
  • 1 reply
  • 521 views

Hi ,

We recently upgraded to CF8 from CF6. SOem of the functionalities are not working as expected.

For Eg: if we click on the button it shoudl tak eus  to other page ,but after upgrade its staying in the same page.

I suspect <cfform> tag method attribute. we are using method attribute with "Get" method. Not sure how to fix the issue.

Can any body help on that how can we find what are the required chanegs we need to make in the code so that it will compatiable with CF8?

Is there any way to run the whole code and see required changes? I know the code analyzer it is just fid the syntax errors. i feel that it didn't help me much.

Regards

sudha.

    This topic has been closed for replies.

    1 reply

    Fernis
    Inspiring
    March 19, 2010

    As a thumb rule, if a HTML form is meant to make any "changes" to any data, backend, etc., you should always use the POST method. Only in cases where the form post simply fetches a page without altering anything anywhere, GET can be justified.

    When using GET, form values may get transported into the URL scope.

    Debug the URL and FORM scope for the variables which dictate the action that happens.

    Another thing to check, if you still have problems when using POST instead of GET:

    What is the exact target page you're posting to, _with_ url parameters? Does it have url parameters?

    In addition, does the form have hidden fields which could have the same parameters?

    It's a typical mistake to accidentally have a page "page.cfm?area=3&action=get", having also a hidden input "get" with some other value, and posting the page to itself with all current url parameters. The url value of "action" may override the one coming from the form.

    I faintly remember the behaviour of ColdFusion changing at some point, when this happens.

    --

    -Fernis - fernis.net - ColdFusion Developer For Hire

    SudhaAuthor
    Participating Frequently
    March 19, 2010

    With Cold Fusion 6 we were using the CFFORM tag as below,

    <cfform name="AddEmp" action="" method="Get">

    After upgrading it to Cold Fusion8, method="Get" is not working . How can we fix it so that we can make it as compatiable with  Cold Fusion8?

    We have given a trial that attribute (method="Get" )it self is removed from the tag. It was working well.

    But not sure about the side impacts.Can any body suggest on this?

    Appreciate your earliest response

    Regards

    Sudha

    Inspiring
    March 19, 2010

    What do you mean by "not working"?  What is it doing instead of working?

    --

    Adam