Submitting only part of a Flash form's data - possible?
So, in this app that I'm building, it would be REALLY handy
to be able to process select portions of the Flash form. It's
essentially an app with a couple of smaller sub-apps contained
within; think of something like a CRM app. Is it possible to only
submit the data from, say, a cfgrid element?
Thanks
Pete
One of the best resources is asfusion, heres alink
introduction-to-flash-remoting
Check out the other examples they have as well.
Ken
Similar Messages
-
Flash form and Database integration using PHP
One of the simpleest ways to Flash forms and data components
to interact with a MySQL Database is with the use of PHP scripts.
These scripts can be the intermediary between the Flash form and
the MySQL Database. There are some
FREE Tutorials available at
http://www.interactivewebconcepts.com
I hope this helps.
MauriceI think i found your problem.
It's a Syntax Error here you should use . instead of ,...
[code]
Subject",$CompanyName
[/code]
this should work.
[code]
Subject".$CompanyName
[/code] -
Reset One field Only in Coldfusion Flash Form
I have a flash form with a fair amount date fields. I use the code
<cfinput type="datefield" name="DATE1" label="Diagnosis Date:" width="100" value="#now()#"/>
This is the master date field. It populates about 10 other date fields by using the following code for the other 10 fields.
<cfinput type="datefield" name="DATE2" label="Diagnosis Date:" width="100" bind={DATE1.txt}/>
There are certain cases where date fields 7-10 are not used. Unfortuantely, fields 7-10 in those cases are prepopulated because of the bind. I want to put a reset/clear button besides each of those date fields (7-10). Is there a way to code the reset/clear button to only clear the corresponding date field? Right now, I have the users choosing the same date as DATE1 to clear out the field. That is 2 clilcks. I would prefer the users just to click on a reset/clear button.
TIA!Put this in your pipe. Does it smoke?
<cfform format="flash">
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE1" label="Diagnosis Date 1:" width="100" value="#now()#"/>
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE2" label="Diagnosis Date 2:" width="100" bind="{DATE1.text}"/>
<cfinput type="button" name="date2button" onclick="{DATE2.text=''}" value="Reset Date 2">
</cfformgroup>
<cfformgroup type="horizontal">
<cfinput type="datefield" name="DATE3" label="Diagnosis Date 3:" width="100" bind="{DATE1.text}"/>
<cfinput type="button" name="date3button" onclick="{DATE3.text=''}" value="Reset Date 3">
</cfformgroup>
</cfform> -
I Need Dire Help Making a Flash Form
Hello, I need some serious help creating a Flash Form.
I Have used a template from another site with the following
input boxes:
Name: __________
Email: __________
Comments: ____________
However, i had the script working fine, along with its php
script,
when i was trying to add more "text" boxes, i must have
messed the script up somhow.
When I submit that form, the name is send and email, but the
email is blank.. ie, there is no "comments"
here is the code:
on submit button:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
sent email messege
onClipEvent(data){
// show welcome screen
_root.nextFrame();
and the php script (mailer.php)
php form email.pho
<?php
* PHP 4.1.0+ version of email script. For more
* information on the mail() function for PHP, see
http://www.php.net/manual/en/function.mail.php
// First, set up some variables to serve you in
// getting an email. This includes the email this is
// sent to (yours) and what the subject of this email
// should be. It's a good idea to choose your own
// subject instead of allowing the user to. This will
// help prevent spam filters from snatching this email
// out from under your nose when something unusual is put.
$sendTo = "[email protected]";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ".
$_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could
send
// email to a hotmail account. (hosting provider settings may
vary)
// technically bounced email is supposed to go to the
return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body
variable
$message = $_POST["message"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>
If anyone can see why the "comments" section is not being
sent?
Also: My original problem was how do you add more text boxes.
I want something like this:
Name:
Address:
Phone:
Mobile:
Email:
Website:
Comments:
Ive spent days and days trying to work out how to first make
a form that actually works, then add more text fields
Ive looked at many basic form tutorials, but they all seem to
only have 3 or 4 text fields.. Name, Email, Comments... etc
I haven't a clue how to edit the script both in action script
and php to add more fields easy.
I really need some help with this, its turning into a
nightmare for me.
I can provide someone with my .fla project file if they care
to take a look at what im doing wrong.
Thanks
Pan
ps. Please note: "$sendTo = "[email protected]";" =
this line i know i must put in my own email.This is all about timelines. It seems there is a movieclip
named 'form' (or possibly an actionscript object, can't tell). Any
variables created on that timeline are sent.
So you could have your new textfields on another timeline.
Or you could have textfields with no instance name in the
form timeline.
Those are the first two things to look at. Post the FLA and
we can tell you more specifically. -
Flash Forms Not Rendering in IE7, Flash 9
We're having a problem with flash forms in IE7 and Flash
Player 9 not rendering the entire form. The form works fine in
Firefox 2. It looks to be a problem with how the Flash player is
able to pull back data in IE7. Likely this pertains to how IE7
handles security of plug-ins.
Oddly, we've noticed that uninstalling the Flash 9 player and
then reinstalling results in the form rendering correctly the first
time, but on subsequent views the form no longer renders correctly.
Specifically, we're not seeing data that is being called via
Flash remoting in cfselect tags (state and country information).
And we're not seeing text rendered that is in cfformitem tags. Our
dev url is:
http://hopeequity.beaconfire.com/loggedout/index.cfm?event=StartInvesting_StartAGroupStep1
If anyone has an idea of why IE7 might not be able to render
the form correctly, or might have security-related issues with
remoting and Flash 9, please reply.I was granted access to the manuals on our prod server (the
site is set up where you have to log in to see the manuals). The
manuals are behaving differently on the prod server than in our dev
server. The following is happening on the prod server:
- the flash menus are appearing on our prod server in FireFox
only.
- I had reported in our dev area that when I right clicked on
the left hand side where the menus are to appear in IE that the
Flash menu displayed. This is not the case in our production area.
- I get the "This page contains both secure and nonsecure
items" when viewing the site on our prod server through IE
I've asked them what version of RoboHelp they are using and
no one seems to know. It seems they don't regenerate their help
files (manuals) very often. -
anyone, pls help - my ipad is not opening, only apple logo is flashing on and off... pls help
Have you tried rebooting your iPad?
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
If that does not work, you can try restoring your iPad iOS Software.
iTunes: Restoring iOS software - Support - Apple
Make sure that you read the article all the way through and pay attention to the last part that talks about using recovery mode. -
Host Header Flash Forms Problems
Hello,
I'm running CFMX 7.01 on IIS 6, Windows 2003 Server....
I've created an intranet application that uses several flash
forms. The site is located in the folder of
C:\Inetpub\wwwroot\CorpComWeb. This can be referenced from the
Default website by
http://sandy/corpcomweb/ OR
http://CorpComm (after adding an
internal DNS host header and then referencing it in Website -
Advanced - Host header value). This works great for every page
EXCEPT the two pages that contain CF Flash Forms. When I try to
access these pages using
http://CorpComm/flashformpage.cfm it spins into infinity (no
error just never loads). If I access the page by
http://sandy/corpcomweb/ the
page loads fine.
Any ideas as to why this would be?
Thanks in advance!Ok, stupid mistake on my part.
When creating the new site in IIS, I forgot to add a virtual
directory pointing to CFIDE... -
Hello. This is what I am trying to accomplish. I am making a
tabbed registration flash form and I would like the person
completing the form to see a total as he makes the selection for
what he will be attending. The way I approached the problem was to
bind an ActionScript function to the
GRANDTOTAL form field, but when the form finishes loading in
the browser, the
NaN error pops up. I tried to convert the field selections
explicitly to numbers to perform the addition, but it is obviously
not working. If anyone could shed some insight into this, that
would be great. Thank you in advance. The code for the tab that
handles the selection is below.
<!-- registration details tab -->
<cfformgroup type="page" label="Registration">
<cfformitem type="text">Your FULL NBBAN Registration
Includes: Admission to all Forums, Continental Breakfast,
Refreshment Breaks, Welcome Reception, Awards Dinner and
Luncheon.</cfformitem>
<cfformitem type="spacer" height="3" />
<cfformitem type="text">CONFERENCE REGISTRATION
FEES:</cfformitem>
<cfformgroup type="tile" height="650">
<cfformgroup type="horizontal">
<cfselect name="MemberQtyat250" size="1">
<option value=0>0</option>
<option value=250 selected>1</option>
<option value=500>2</option>
<option value=750>3</option>
<option value=1000>4</option>
<option value=1250>5</option>
</cfselect>
<cfformitem type="text">$250 per
MEMBER</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="NonMemberQtyat300" size="1">
<option value=0 selected>0</option>
<option value=300>1</option>
<option value=600>2</option>
<option value=900>3</option>
<option value=1200>4</option>
<option value=1500>5</option>
</cfselect>
<cfformitem type="text">$300 per
NON-MEMBER</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="GuestQtyat125" size="1">
<option value=0 selected>0</option>
<option value=125>1</option>
<option value=250>2</option>
<option value=375>3</option>
<option value=500>4</option>
<option value=625>5</option>
</cfselect>
<cfformitem type="text">$125 GUEST (accompanied by
MEMBER)</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="WelcomeReceptionQtyat75" size="1">
<option value=0 selected>0</option>
<option value=75>1</option>
<option value=150>2</option>
<option value=225>3</option>
<option value=300>4</option>
<option value=375>5</option>
</cfselect>
<cfformitem type="text">$75 WELCOME RECEPTION
ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="AwardsQtyat100" size="1">
<option value=0 selected>0</option>
<option value=100>1</option>
<option value=200>2</option>
<option value=300>3</option>
<option value=400>4</option>
<option value=500>5</option>
</cfselect>
<cfformitem type="text">$100 AWARDS AND RECOGNITION
CEREMONY ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="LuncheonQtyat75" size="1">
<option value=0 selected>0</option>
<option value=75>1</option>
<option value=150>2</option>
<option value=225>3</option>
<option value=300>4</option>
<option value=375>5</option>
</cfselect>
<cfformitem type="text">$75 LUNCHEON
ONLY</cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfselect name="KingTourQtyat20" size="1">
<option value=0>0</option>
<option value=20 selected>1</option>
<option value=40>2</option>
<option value=60>3</option>
<option value=80>4</option>
<option value=100>5</option>
</cfselect>
<cfformitem type="text">$20 THE KING CENTER
TOUR</cfformitem>
</cfformgroup>
<cfformitem type="script">
function subTotal() {
var memberQty = registration.MemberQtyat250;
var nonmemberQty = registration.NonMemberQtyat300;
var guestQty = registration.GuestQtyat125;
var receptionQty = registration.WelcomeReceptionQtyat75;
var awardsQty = registration.AwardsQtyat100;
var luncheonQty = registration.LuncheonQtyat75;
var tourQty = registration.KingTourQtyat20;
var result = trace(Number(memberQty)) +
trace(Number(nonmemberQty)) + trace(Number(guestQty)) +
trace(Number(receptionQty)) + trace(Number(awardsQty)) +
trace(Number(luncheonQty)) + trace(Number(tourQty));
alert(result);
</cfformitem>
<cfformgroup type="horizontal">
<cfinput type="text" name="GRANDTOTAL" label="Total: $"
bind="{subTotal()}" />
</cfformgroup>
</cfformgroup>
</cfformgroup>You need to store the information user have input before
somewhere. You can store it in local shared object, which is dubbed
as a "flash cookie" -- Flash MX. Then you will retrieve it at
execute an autofill. If you store the user's info in a remote
database -- you can loadVars from you server with the form
information.
Search for SharedObject in flash help -- it is pretty
straight forward and simple.
I forgot to mention that you will need to compare entry in
the form field with the stored info on each key stroke, naturally,
and display results in an additional text field, etc.
Hope it helps... -
Page displays only part of ivew.
Hi Gurus
We had created an iview which is displaying an Abap form, from
R/3 . we can see the same in preview of ivew.
But , as we add iview to page ,in preview(of page) we see only part of ivew i.e
form.But we need to display in full page.
We had checked in pagelayout.we have given the lay out as
Double-T(Top/Bottom-FullWidth;Middle-2equalWidth).
Please give me suggestions.
Thank you for reading.Hi,
To get it display in full page
Go to the iview proprerties(the iview which is assigned to that page).
Select 'Appearance - Size' from the drop down category
and set the height type to 'FULL_PAGE'. and Save.
This will solve your problem.
Raghu -
Hello,
I'm trying to create a page CFFORM flash page where the
cfgrid will display results base on a start and end date. The user
selects these 2 date. I am able to create this on 2 seperate pages,
but I would like it to be on 1 page via the flash remoting method.
Can some please help or point me in the right directions.
Thanks,Hi-
I copied your form code and submitted the variables back to
that page, and got no error, for what that's worth. My guess is
that the prob. might be in the page you're submitting to rather
than in the form itself? -
//Hello, I'm trying to use this tabbed flash form with
coldfusion. I keep getting an error that I don't understand, can
some one help?
This is the error that I get when I try to test the page in
my browser://
Error Diagnostic Information
Attribute set validation error in tag CFINPUT
The tag has an invalid attribute combination: the value of
the tag switch attribute 'TYPE' which is now 'SUBMIT' is invalid.
The valid attribute values are
* TEXT
* PASSWORD
* CHECKBOX
* RADIO
The error occurred while processing an element with a general
identifier of (CFINPUT), occupying document position (67:1) to
(67:60).
The specific sequence of files included or processed is:
/vservers/infadesign/htdocs/flash_form.cfm
Date/Time: Sun Aug 6 21:23:10 2006
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O;
en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Remote Address: 69.86.223.0
// here is the actual cf form code://
<cfform format="flash" skin="haloblue" width="500"
height="600" action="file:///Macintosh
HD/Users/infadesign/Desktop/F00B5 Folder/flash_form.cfm">
<!--- set the form to have tabs --->
<cfformgroup type="tabnavigator">
<!--- set the page value - give the tab a label --->
<cfformgroup type="page" label="Personal Details">
<!--- Set the form alignment --->
<cfformgroup type="horizontal">
<!--- Open the first tabs contents --->
<cfinput name="FirstName" type="text" label="First Name"
width="60" />
<cfinput name="LastName" type="text" label="Last Name"
width="60" />
<cfinput name="Gender" type="text" label="Gender"
width="60" />
<!--- close the first tabs contents --->
</cfformgroup>
<!--- close the first tab --->
</cfformgroup>
<!--- Second tab set --->
<cfformgroup type="page" label="Age">
<cfformgroup type="horizontal" label="Preferred
Partner">
<cfinput name="Age" type="radio" label="18-30"
value="18-30" />
<cfinput name="Age" type="radio" label="31-40"
value="31-40" />
<cfinput name="Age" type="radio" label="41 and over"
value="41 and over" />
<cfinput name="Age" type="radio" label="Just give me jojo"
value="just give me jojo" />
</cfformgroup>
</cfformgroup>
<!--- Third tab set --->
<cfformgroup type="page" label="Contact Details">
<cfformgroup type="horizontal">
<cfinput name="eMail" type="text" label="Email" width="60"
/>
<cfinput name="telephone" type="text" label="Telephone"
width="60" />
<cfinput name="FaxNumber" type="text" label="Fax"
width="60" />
</cfformgroup>
<!--- Begin Binding --->
</cfformgroup>
<cfformgroup type="page" label="Done">
<cfformgroup type="horizontal">
<cfformitem type="text" name="FirstName" bind="Name:
{FirstName.text}"> </cfformitem>
<cfformitem type="text" name="LastName"
bind="{LastName.text}" style="text-align:
left;"></cfformitem>
<cfformitem type="text" name="Gender" bind="Gender:
{Gender.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="Age" bind="Preferred
Partner: {Age.selectedData}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="eMail" bind="Email Address:
{eMail.text}"></cfformitem>
</cfformgroup>
<cfformgroup type="horizontal">
<cfformitem type="text" name="telephone" bind="Tel No:
{telephone.text}"></cfformitem>
<cfformitem type="text" name="FaxNumber" bind="Fax No:
{FaxNumber.text}"></cfformitem>
</cfformgroup>
<cfinput type="submit" name="submit" value="Send Details"
/>
</cfformgroup>
<!--- Close the tabnavigator --->
</cfformgroup>
</cfform>Hi-
I copied your form code and submitted the variables back to
that page, and got no error, for what that's worth. My guess is
that the prob. might be in the page you're submitting to rather
than in the form itself? -
I'm having some problems with my Rich Form using Flash Forms
built into ColdFusion8. When I add the href and ran the site, when
you click on the column and item under that column nothing happens.
What is missing here?
<cfform name="myForm" format="flash" width="400"
height="300" skin="haloorange">
<cfformgroup type="panel" label="Current Accounts">
<cfformgroup type="horizontal">
<cfinput type="text" name="forInput" width="120"
onchange="#actionFilter#" label="Filter by:">
<cfselect name="column" label="in:"
onchange="forInput.text=''" width="90">
<option value="Account_Type">Account
Type</option>
<option
value="ID_Company_Community">Community</option>
<option value="LastLogin">Last Login</option>
</cfselect>
</cfformgroup>
<cfgrid name= "data" query="memberList" height="200"
rowheaders="false" selectcolor="##FFFFCC">
<cfgridcolumn name="Account_Type" header="Account Type"
href="test.cfm">
<cfgridcolumn name="ID_Company_Community"
header="Community">
<cfgridcolumn name="LastLogin" header="Last Login"
mask="MMMMM-DD-YYYY">
</cfgrid>
</cfformgroup>
</cfform>
When you click on an item under that column shouldn't it take
you to test.cfm????
--------- UPDATE --------
I see that the href IS NOT supported in the FLASH format. Is
there way to accomplish the task without href? How can I make a
column a href and redirect the user to a details page for that
selected listing? Thanks
Thanks for your anticipated response.
Todd WarneHi-
I copied your form code and submitted the variables back to
that page, and got no error, for what that's worth. My guess is
that the prob. might be in the page you're submitting to rather
than in the form itself? -
I'm creating a Flash Form and I have a group of 4 checkboxes,
and the value part of the input statement is as follows:
<cfif
Isdefined('Form.whatever1')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever2')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever3')>1<cfelse>1</cfif>
<cfif
Isdefined('Form.whatever4')>1<cfelse>1</cfif>
But when I submit the record, all of the checkboxes are
recorded as "1", even if none of them or some of them are checked.
Has anyone developed a flash form with checkboxes and experienced
similar issues?
Thanks...Oh, forgot to mention that I used the same code in a
"regular" form, and it worked. Just curious as to if this is a
known Flash Form problem -
Cfselect, cfinvoke, cfgrid in flash forms
In an MX7.02 cfform format="flash"
I would like a user to select an option in a cfselect. (e.g.
name)
The selected value would be passed to a cfinvokeargument
the cfc returns the query results to a cfgrid
get agent names....
<CFINVOKE COMPONENT="agentQA"
METHOD="getAgents"
RETURNVARIABLE="aData">
populate cfselect....
<cfselect label="Agent" visable="yes" name="agent"
query="aData" value="message_author" display="message_author">
</cfselect>
query messages posted by the selected agent...
<CFINVOKE COMPONENT="agentQA"
METHOD="getquery"
RETURNVARIABLE="qData">
<cfinvokeargument name="agent" value="??????????????">
</cfinvoke>
don't know how to bind the selected agent name to the
argument????????
output only the selected agent's messages to messagesgrid
<cfgrid format="flash" width="100%" height="100%"
name="messagegrid" query="qData" rowheaders="false">
</cfgrid>
Any suggestions? I'm open to a different approach since I'm
just learning flash forms in CF.
Thanks,
DonUsing the
selected="[your value]" argument.
This can be a value from a query.
For instance, try the example in
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000331.htm
but add
selected="4" to the cfselect tag
i.e.:
<cfselect
name = "employeeid"
size = "1"
multiple="yes"
required = "No"
query = "GetAllEmployees"
display ="name"
value ="emp_id"
queryPosition="Below" width="100" selected="4">
4 is the emp_id value of Aaron Smith.
In your application, you would replace
selected="4" with
selected="[your database value]" -
Using <cfinput type="text" in a flash form. I need to be
able to wrap text in this control, as we have long descriptions of
items that need to be edited. Currently I can only get the
description on 1 line which is not too useful.You need to store the information user have input before
somewhere. You can store it in local shared object, which is dubbed
as a "flash cookie" -- Flash MX. Then you will retrieve it at
execute an autofill. If you store the user's info in a remote
database -- you can loadVars from you server with the form
information.
Search for SharedObject in flash help -- it is pretty
straight forward and simple.
I forgot to mention that you will need to compare entry in
the form field with the stored info on each key stroke, naturally,
and display results in an additional text field, etc.
Hope it helps...
Maybe you are looking for
-
the first boot of iphone 5 is not possible due to lack of battery charge , it happened after charging, is there s any issue of battery life
-
ATP check active when creating sales order - want to deactivate
Hello experts, at the time we created a sales order, the checking group for availability check in the master data of an article was "02" (Individual requirements). However, this was a master data error, as the correct setting for this article is "KP"
-
CS3 not opening on PowerMac G5
Before we left for the weekend everything was fine, now 2 computers have the same issue. CS3 on PowerPC G5 OS10.5.8 - Bridge loads fine, all other apps seem to load and operate normally. CS3 gets to the Blue Splash screen and then I get the spinning
-
Hi Experts, My requirement is as follows: I have a segment at output side.............. which 0 to unbounded...... It gets mapped from a field in input side which is also 0 to unbounded. The requirement is such that...... I need to concatenate all th
-
Camera raw does not open from LT3.2
When I try to edit a raw file from LT3 to CS5 the file opens in CS5 skipping Camera Raw. When I try touse control R nothing happens. Mike