Skip to main content
Participant
November 3, 2008
Question

Applet Issue after Updating to CF8 from 6.1

  • November 3, 2008
  • 1 reply
  • 200 views
I have a cfapplet (properly registered), inside a cfform. When the page loads, the applet loads correctly. The user can manually add data to the applet, and when saved, the page proceeds to the action page pulls the new/changed data using the Applets output method, parses the data and modifies the database.

At least that's what it is suppose to do. It works fine is 6.1, but in 8 the applet returns an empty string on the action page. Before going to the action page, there is javascript validation that is done to make sure the user correctly entered data, and that works fine, so the applets output method is working correctly. It's just when the cfform passes data to the action page, it loses the applet data.

Has anyone had any issues with applets after updating to CF8? Were there any changes to cfform, cfapplet, or to how applets are executed in CF8? Does anyone have a link or could email me the copytext applet, so I can have something simple to test? Does anyone have any ideas?

Thanks a million!

Steve
    This topic has been closed for replies.

    1 reply

    sjpearsonAuthor
    Participant
    November 4, 2008
    Any ideas anyone?
    sjpearsonAuthor
    Participant
    November 7, 2008
    Well we solved the problem, and I figured I'd come back and post what we found.

    We were viewing the source of the page to see the difference between what 6.1 generates and 8, and found a noticeable difference.

    Both 6.1 and 8 create a hidden input type for our applet, but the function that sets that input to the return value of the applet is absent/different in 8.1.

    In the attached code below is the input type, then the CF6.1 function, then the CF8 function. The CF8 function never actually gets the return value. To get around this problem, we manually assigned the return value to the hidden input type on our submit buttons onClick event using the first line of the 6.1 function.