Link to home
Start Free TrialLog in
Avatar of RealtyBidIT
RealtyBidITFlag for United States of America

asked on

How do I keep from getting the Form data expired, please reload message?

I have read all the post but non have fixed my issue.  I appear to get this error when a user is on server 1, request a page that is served from server 2 and that page is a flash form.  It is the first time the page is requested, so the user is not clicking the back button.  I have the timeout attrib. set and I don't have dynamic fields being built.
Avatar of 73Spyder
73Spyder

Clustered servers?  Are they sharing session scope?

Can you post the code of the receving page.  You may just need to some extra form handling on the 2nd page.
Avatar of RealtyBidIT

ASKER

I am using CFMX7 Std Ed, so I am not clustered. Although they are behind a load balancer.  The servers are sharing session data via CFID:CFTOKEN and storing session data in db.  That is working beautifully.  Here is the content of one of the pages in question:

<cfform wmode="transparent" timeout="600" width="#pagewidth#" format="flash" height="415"  skin="haloblue" style="background-color:##D4DADF;color:##274460;margin-top:0;margin-bottom:0" target="RegistrationFrame"   action="#actionpage#" method="POST" onload="#hideLoader#" name="Seller_Reg" preloader="false">

<cfformgroup  id="accordion1" onChange="for(var i=accordion1.selectedIndex+1; i<4 ; i++){accordion1.getHeaderAt(i).enabled=false;}"  type="accordion" style=" background-color:##ffffff;margin-top:0;margin-bottom:0" label="Registration" height="400">

      <cfformgroup    type="page" label="1-Account Information" width="600" >
            <cfformitem type="html">
            <font color="#274460">To become a Seller and list properties on this site, please complete the information below. All fields designated with an <font color="#CC0000">*</font> MUST be completed in order for this form to be processed properly.</font>
            </cfformitem>
            
            <cfinput label="Your Name" type="Text"  name="contact_name" value="#contact_name#" size="30" required="Yes" message="You must enter your name." style="width:315;" tabindex="1">
            
            <cfinput label="Email Address" type="Text" size="30" name="email_address" value="#email#"  required="Yes"  message="Please enter a valid e-mail address." validate="email" tabindex="10">
            
            <cfinput label="Confirm Email" required="Yes" type="Text" name="verify_email" value="#email#" size="30"  message="Please confirm your e-mail address."  validate="email"  style="width:315;" tabindex="30">

            <cfselect onChange="if(seller_type_id.value==2){mx.validators.Validator.disable( this, 'Seller_Reg.managing_broker_name');}else{mx.validators.Validator.enable( this, 'Seller_Reg.managing_broker_name');}" label="Seller Type" width="200" query="GetSellerTypes" name="seller_type_id" display="SELLER_TYPE_DESC" value="SELLER_TYPE_ID" size="1" selected="#seller_type_id#" style="width:100;" tabindex="40">
                              <option value='0' <cfif seller_type_id is '0'>selected</cfif>>Select Seller Type </option>
            </cfselect>
                              
            <cfinput label="Company Name" type="Text"  name="company_name" value="#company#" size="30" required="Yes" message="Please enter your firm/company name." style="width:315;" tabindex="50">
                  <cfinput label="Managing Broker Name" type="Text"  name="managing_broker_name" value="#mbn#" size="30" required="No"  message="Please enter the name of your managing broker." style="width:315;" tabindex="60">
                  <cfinput type="button" value="Continue" name="Next" align="right"  onClick='#checkFieldSet("contact_name,email_address,seller_type_id,verify_email,company_name","Seller_Reg",compare)#' tabindex="70" onkeyup='#checkFieldSet("contact_name,email_address,seller_type_id,verify_email,company_name","Seller_Reg",compare)#'>

      </cfformgroup>
      <cfformgroup type="page" label="2- Contact Information" height="440">
            
            <cfinput label="Address" type="Text" name="address" value="#address#" size="30" required="Yes" Message="You must enter your address." style="width:245;" tabindex="100">
            
            <cfformgroup   type="horizontal" label="City/State/Zip">                  
                  <cfinput type="Text" name="city" value="#city#" size="20" required="Yes" Message="You must enter your city." tabindex="110">
                  <cfselect width="140"  required="yes" message="Please select a state." query="GetStates" name="state" display="STATE_NAME" value="STATE_CODE" size="1" selected="#state#" style="width:140;" tabindex="120">
                              
                  </cfselect>
                  <cfinput type="Text" name="Postal_code" value="#zip#" size="10" validate="zipcode" required="Yes" Message="You must enter a valid zip code." style="width:60;" tabindex="130">
            </cfformgroup>
      
            <cfinput label="Phone No." type="Text" name="phone" value="<cfif Len(phone) GT 3>#phone#</cfif>" mask="999-999-9999"  validate="telephone" required="Yes" size="15" Message="You must enter a valid phone number."  tabindex="140">
            <cfinput label="Extension" type="Text" name="extension" value="#ext#"  validate="integer" required="No" size="15" Message="You must enter a valid phone number extension as a number only." tabindex="145">
             
            <cfinput label="Cell Phone" type="Text" name="cell_phone" value="#cell#" mask="999-999-9999" size="15"  required="No" validate="telephone" Message="You must enter a valid cell phone number."  tabindex="150">
            
            
            <cfinput label="Fax"  type="Text" name="fax" value="#fax#"  validate="telephone" mask="999-999-9999" size="15" required="No" Message="You must enter a valid fax number"  tabindex="160">
                  <cfinput type="button" value="Back" name="back1" align="right"  onClick="accordion1.selectedIndex=accordion1.selectedIndex-1" tabindex="170" >
                  
            
            <cfformgroup height="25"  style="margin-top:0;margin-bottom:0" type="horizontal">      
                        <cfinput name="button" onClick='#checkFieldSet("address,city,state,Postal_code,phone","Seller_Reg",submitReg)#' onKeyUp='#checkFieldSet("address,city,state,Postal_Code,phone","Seller_Reg",submitReg)#'  type="button" style="width:135;" value="#submittext#" tabindex="190">
                        <cfinput name="Reset" type="reset" style="width:80;" value="Reset Form" tabindex="200">
            </cfformgroup>                              
      </cfformgroup>                              
</cfformgroup>                              
</cfform>

Where are the values in the cfinput coming from ( a query, form, session) I can't tell.  There is no scope.
Query
What is the value of the variable that you are putting into the onLoad attribute of the CFFORM
OnLoad calls a function, hideLoader, to hide a Loading, Loading, Loading graphic.
Let me mention, that we just moved to a multi server config and this did not happen when we were just on a single webserver, so I am 99.9876% sure it has something to do with jumping from one server to the other between pages.  I do not believe that my load balancer is set to sticky session however...
sorry for the endless questions but when the server tries to load this page you get the error?  or is it on the submission of this page?

and:

<cfinput name="button" onClick='#checkFieldSet("address,city,state,Postal_code,phone","Seller_Reg",submitReg)#' onKeyUp='#checkFieldSet("address,city,state,Postal_Code,phone","Seller_Reg",submitReg)#'  type="button" style="width:135;" value="#submittext#" tabindex="190">

In this code segment why are is the whole JS here in #'s ?
The error is sparatic at best, but happens when the page is loaded not when it is submitted.  The js code here validated that data and required fields before allowing the user to move to the next accordian and or tab in the form.  No worries on the endless questions, if you can help me solve this, I will answer and answer and answer...
I've looked and looked and I don't see anything that jumps out at me that would be causing this.
Here is a link to the page live.  Maybe if you see it, it will trigger something...

http://www.realtybid.com/seller/register.cfm

Thanks for your efforts anyway, I really do appreciate it.
I went to the link and after refreshing a few times I see the error, then it would not go away.

Are you clearing the form each time, or doing some sort of purging to ensure a clean load each time?

Yep. I am using this code:

<cfheader name="Cache-Control" value="no-cache">
<cfheader name="Pragma" value="no-cache">

I would for for kicks try putting a cfflush after those cfheaders.

Hey, at this point I will stand on my head and cross my lips if that would help.. I will let you know.
No luck.. Same results.
Ok... I did some testing.  I run firefox with flashblock and when I don't let the loading movie play I don't get the error.  Try removing it completely and then test it.  It may have to do with the rendering time of the 2 falsh objects.


We tried this and to no avail.  We also, just created a simple flash form with 1 input field, all static, nothing dynamic at all.  Played with turning on and off the preloader with nothing else but a simple flash form and we are still getting the message.  
Well....I'm out of ideas.  Sorry I was not able to assist.  Good luck.
I have opened a case with Adobe.  Thanks for your help, I greatly appreciate it.
ASKER CERTIFIED SOLUTION
Avatar of RealtyBidIT
RealtyBidIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Anytime.  Glad you figured it out.