Groups | Blog | Home
all groups > coldfusion flash integration > april 2007 >

coldfusion flash integration : cfselect options missing in IE



shaun_o
4/10/2007 1:26:30 PM
As of recently, all flash form cfselect boxes are not returning any values. I
am able to dump the query for query driven cfselect boxes and there are
numerous rows. I also have hard-coded cfselect boxes that are not returning any
values. Everything displays fine in Safari and Firefox, but Opera and IE are
not displaying the options. Please help me out here, I have few hairs left as
I'm pulling them all out...Here is the syntax:

<cfform action="#request.self#?fa=listBoatOptions"
method="post"
format="flash"
height="200"
width="350"
skin="haloblue"
preloader="true"
wmode="transparent"
style="backgroundAlpha: 0;">

<cfselect name="boatproduct_id" label="Boat Type:" size="1">
<CFLOOP query="getBoat">
<option value="#getBoat.boat_id#,#getBoat.product_id#">
#getBoat.boat_name#
</option>
</CFLOOP>
</cfselect>

</cfform>

##########################
Here is another example:

<cfform action="#request.self#?fa=mailDealer"
format="flash"
height="325"
width="350"
method="post"
name="contactform"
skin="haloblue"
preloader="false"
wmode="transparent"
style="backgroundAlpha: 0;">
<cfformitem type="html">
[B]SEND MESSAGE OR COMMENT[/B]
</cfformitem>
<cfformgroup type="vertical">
<cfformgroup type="tile">
<CFSELECT NAME="target_email" SIZE="1" label="Send To:">
<OPTION VALUE="northamerican.sales@test.com">North American Sales</OPTION>
<OPTION VALUE="international.sales@test.com">International Sales</OPTION>
<OPTION VALUE="human.resources@test.com">Human Resources</OPTION>
<OPTION VALUE="northamerican.sales@test.com">Other</OPTION>
</CFSELECT>
</cfformgroup>

<cfif ParameterExists(session.email) AND session.email NEQ "">
<cfinput name="email" value="#session.email#" SIZE="20" label="Your E-mail"
validate="email">
<cfelse>
<cfinput name="email" label="Your E-mail">
</cfif>
</cfformgroup>
<cfformgroup type="panel" label="Please Type Your Message:">
<cftextarea name="emailMsg" cols="30" rows="7"
class="input_textbox_10"></cftextarea>
</cfformgroup>
<cfinput type="submit" name="submitbutton" value="Send Question/Comment"
class="input_button">

</cfform>
The ScareCrow
4/11/2007 3:39:40 AM
I would suggest that the first example does not work as your using cfloop with no cfoutput.

The second example works as posted on my system (did remove the form action)

gyannuzzi
4/11/2007 8:35:08 PM
I have seen before where having a url parameter in your form action causes
problems with form method = post submits.
The first response to your thread also indicates this may be the problem (they
removed the form action).
Try placing your url parameter as a hidden parameter in your form instead, and
make sure the form action has no parameters in the url. That might do it.
shaun_o
4/12/2007 12:00:00 AM
Thanks for all of your help. I seemed to have resolved the issue. I was using
the ieupdate.js script which sets the outerHTML of an object tag through
JAVASCRIPT to de-Activate the IE ActiveX control. It seems that an error is
thrown when the script attempts to do the same for a flash form. I have since
set an if statement in the javascript that if the object id contains the word
form to skip deactivating the activeX control.

This allows the script to function. The catch is that I cannot include the
word form in any embedded objects other than flash forms. I hope that this van
be of use to others. Thanks to all of those that replied!

-Shaun
AddThis Social Bookmark Button