Hi, I have a flash form with a cfgrid that is populated by a cfquery on
page 

load. How do I check for the value and display a flash alert if the
value of email address is blank?

 

 

Here's my code snippet:

<cfsavecontent variable="onchange">

<cfoutput>

                        ///HOW DO I REFERENCE THE EMAIL FIELD VALUE FROM
GRID ?alert(GridForm.user_email[1].text);                            In
javascript, we would do something like
if(document.formName.user_email.value=="")

 

</cfoutput>

</cfsavecontent>

 

 

<cfform name="GridForm"

   action="test2.cfm" format="flash" timeout="200">

 

   <cfgrid name="employee_grid"

      height=425

      width=500

      vspace=10

      selectmode="edit"

      query="empdata"

      insert="Yes"

      delete="Yes" onchange="#onchange#">

      

 

      <cfgridcolumn name="user_last_name"

         header="Last Name"

         width=100

         headeralign="center"

         headerbold="Yes" >

 

      <cfgridcolumn name="user_first_name"

         header="First Name" 

         width=100

         headeralign="center"

         headerbold="Yes">

                         

             <cfgridcolumn name="user_email" 

         header="Email"

         width=120

         headeralign="center"

         headerbold="Yes">

 

   </cfgrid>

   <br>

   <cfinput type="Submit" name="test" value="Submit">

</cfform>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224920
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to