Flash-form generated form scope disappears after refreshing
So all you guys developing in MX7 have probably already run into this problem. After submitting a flash form the action page recognizes the form scope; however, if you decide to refresh the action page the form scope magically disappears. This happens whether you increase the timeout of the flash form or not.
I’ve been looking for an answer and yet have not found any… so if you come across one please comment back in this post.
Anyway, thus far I only have two awful solutions.
First: use get method because the URL does not disappear… if you have to use post you may loop through the form fields, generate a URL string, and cflocate.
Second: Post and add the ‘post-id’ in the URL. In the action page duplicate the form scope inside a temporary holder in the session scope; e.g. session.formholder.formid. In this action page you have three possible options to execute.
If the form scope is not empty, you duplicate it in the session.
If the form scope is empty and url post-id number is provided, you duplicate the session form-holder into the form scope.
If the url post-id is not passed, you clear the session form holder.
It is a horrible solution, but given the circumstances it was the quickest solution to implement.
http://www.robgonda.com/blog/trackback.cfm?83025B81-3048-7431-E412E9E8E4C3D2CC
There are no comments for this entry.
[Add Comment]