OnChange="submit();" in flash form
Hi, I am using a form to sort a query on my page, however I
am updating all of my forms to flash now, and can't seem to get the
onChange="submit();" to work on a cfselect tag. It doesn't
throw an error, th epage just doesn't load.
Is this an acceptable event still in a flash form? many
thanks
Hi, I am using a form to sort a query on my page, however I
am updating all of my forms to flash now, and can't seem to get the
onChange="submit();" to work on a cfselect tag. It doesn't
throw an error, th epage just doesn't load.
Is this an acceptable event still in a flash form? many
thanks
Similar Messages
-
Using onchange="submit();" in flash forms
Hi I am trying to use the onchange="submit();" function in my
flash form, on a cfselect tag, as I use this in my html forms to
sort the data. Does anybody know if this function should work in
flash forms please? as when I put in the form does not load up
Many thanks in advanceThat worked spot on, thank you very much
-
Blank screen after resubmit flash form IE6
Have done a flash form. When i submit the flash form for the
first time it works done the job. I'll try another select on my
drop list and submit again, then i get a blank screen on IE6. With
Firefox it works, i don't get a blank page.
IE6, Codfusion entreprise 8.01 developper edition
Any Ideas ?No,
RMA means you call MSI or Local Dealer and return mainboard for repair/replacement............
Windows Bios Update
Will watch for replies.....
Del -
OK, I need help. I've just started using flash forms, and I
love them. But, I have a problem. In this example I have cfinput
boxes a, b, and c. After the user adds data to a and b, I use
javascript to subtract b from a and insert the value into c, using
onchange="subtractme();" in the b tag. Problem is, the form never
loads. What am I doing wrong?
<script language="javascript">
function subtractMe1() {
document.cool.c.value=Math.round(document.cool.a.value -
document.cool.b.value);
</script>
<cfform name="cool" format="flash">
<cfinput type="text" name="a" width="60" >
<cfinput type="text" name="b" width="60"
onChange="subtractMe1();">
<cfinput type="text" name="c" width="60">
</cfform>On Linux or Unix, you may need to create a symlink to cfide
directory as CFIDE (case sensitive) in your web directory. Have
your host issue the following command.
ln -s /path/to/web/dir/cfide CFIDE
Additionally, Firefox 1.5 loads Rich Flash forms fine on my
OSX running Panther 10.3.9.
Rock.
-S -
Flash Forms not finding page elements on submit
I have a flash form that performs perfectly from my computer
and from several users computers. But there are several other users
that get an error message saying that one of the form elements does
not exist when they submit the form. Removing the 'offending'
element just changes which element becomes the new 'offender'. I
have tried adjusting the timeout for the cfform (I currently have
timeout="200"). The form has approximately 70 fields and one image
upload spread over 4-5 tabs. Consistently, the ones that have no
problem, never have a problem and the ones that have a problem
always have a problem. When I reproduce the error by remoting into
my office computer, I also notice that not all of the elements are
well formed. For instance, a textarea that was supposed to be in
html was rendered as pure text. Has anyone had a similar issue or
have a solution?yes but still no luck. When you go here do you see my flash
form load in Safari? I'm using Safari for Windows not mac.
http://www.jimmyharrell.com/contact.cfm -
OnChange="submit();"
Hi, I am using a form to sort a query on my page, however I
am updating all of my forms to flash now, and can't seem to get the
onChange="submit();" to work on a cfselect tag. It doesn't
throw an error, th epage just doesn't load.
Is this an acceptable event still in a flash form? many
thanksThat worked spot on, thank you very much
-
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 form error, can't use the same name more than once? need workaround
I've always written my forms to have multiple buttons, one
for updating and one for deleting. so in html I would do this:
<input type=submit name=action value=Update>
<input type=submit name=action value=Delete>
so I'm trying the same thing with flash forms in cold fusion:
<cfinput label="Update" name="action" type="submit"
value="Update">
<cfinput label="Delete" name="action" type="submit"
value="Delete">
but now I get this message:
2 Errors found.
Error /index.cfm:334
id 'action' was already defined on line 333
Error /index.cfm:335
id 'action' was already defined on line 333
Is there a way to make this work or do I have to either
create a special action_delete or a new form? I'd like to keep the
logic the way I like.
Any suggestions?
Thanks,
JohnI was hoping to do logic like this
<cfparam name="action" default="list">
<cfif action equal "list">
<cfelseif action equal "update">
<cfelseif action equal "detail">
<cfelseif action equal "delete">
</cfif>
So I just converted everything to html and things work the
way I like. thanks anyway. The forms don't really buy me anything. -
International characters in flash forms
Hello. Is there any way to put international (here: polish)
characters into flash forms (like text input)? Thanks in
advance.PIT_PIT wrote:
> Hello. Is there any way to put international (here:
polish) characters into
> flash forms (like text input)? Thanks in advance.
yes:
http://www.sustainablegis.com/projects/flashforms/unicode.cfm
<cfprocessingdirective pageencoding="utf-8">
<cfquery name="getU" datasource="unicodeLab">
SELECT uniText, uniLanguage
FROM unicodeTest
WHERE uniLanguage='russian'
</cfquery>
<cfsavecontent variable="inputStyle">
borderStyle:none;
disabledColor:#2e8b57;
fontSize:11;
backgroundColor:#EFF7DF;
fontFamily:'Arial Unicode MS',Arial,Helvetica,sans-serif;
</cfsavecontent>
<cfparam name="form.unicodeTxt"
default="#getU.uniText#">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>flash and unicode</title>
</head>
<body>
<cfform action="unicode.cfm" method="POST"
format="Flash">
<cfformgroup type="HORIZONTAL">
<cfinput type="Text" name="unicodeTxt" width="120"
required="No" visible="Yes"
enabled="Yes" size="20" maxlength="20" style="#inputStyle#"
value="#form.unicodeTxt#" label="unicode text:">
<cfinput type="Submit" name="go" value="submit"
visible="Yes" enabled="Yes">
</cfformgroup>
</cfform>
</body>
</html> -
I have a tabular form in which I want a select list to auto submit. I have tried using OnChange but can't seem to get it to work.
What would I need to change on this select list to get it to auto submit the tabular form for me?
Thanks!
Edited to add -- I have added this code to the element attributes of the field and it does submit but the LOV then returns blank.
onchange="doSubmit('SAVE')"
Edited by: mtuser on Nov 19, 2009 3:11 PMHi
How did you get it to work? I kind of have a similar issue. Thanks.
Suni -
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
PeteOne of the best resources is asfusion, heres alink
introduction-to-flash-remoting
Check out the other examples they have as well.
Ken -
Using cfselect onBlur to reload page using a Flash form
I am having trouble trying to get <cfselect onBlur=""> to work inside of a <cfform format="flash"> using Flash. As soon as I put any value into the quotation marks, the Flash form no longer displays.
The current code I have using your syntax is the following:
<cfset thisPage = "http://#cgi.server_name#">
<cfif len(trim(cgi.server_port))>
<cfset thisPage ="#thisPage#:#cgi.server_port##cgi.script_name#?#cgi.query_string#">
<cfelse>
<cfset thispage ="#thisPage##cgi.script_name#?#cgi.query_string#">
</cfif>
<cfform name="fQuiz" preloader="false" format="flash" height="750" preservedata="yes">
<cfselect query="qDescriptionsByInteraction" name="description" id="s3" display="MEDIABITNAME" value="MEDIABITID" width="200" label="Description (video):" onChange="getURL('#thispage#')"></cfselect>
</cfform> -
//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? -
Just upgraded from CF MX 6 to MX 7. Trying out flash forms,
but they are not working.
I tried out a simple First Name, Last name, Submit form
setting the form to flash. When viewing the page in Safari, Firefox
on a Mac and IE in Windows the page is blank. If I set take out the
flash tag and just leave it as a CFForm it shows perfectly in all
browsers. All browsers are able to view flash and shockwave files.
Not sure what is going on.
Any ideas?
Thanks.I am having the exact same issue. I have tried tutorial code
from several sites. I have added a name to my form. I checked to
make sure my CFIDE directory is mapped in my CFADMIN. I don't know
what else to try. Right now I have the exact same code for testing
as mishuno has. If i remove the type attribute I see a form. If I
add back in "format="flash"" I don;t see anything on the screen but
I do see flash code in the page source. HELP!!!!
<CFFORM width="500" name="testForm">
<cfinput type="text" name= "firstname" label="First
Name">
<cfinput type="text" name="lastname" label="Last Name">
<cfinput type="submit" name="submit" value="save">
</CFFORM>
I think I found the issue just now but I am not sure how to
change it. Although I have a CFIDE mapping ( /CFIDE set to:
C:\Inetpub\wwwroot\CFIDE ) set up in my CFadmin, my application.log
is showing the following error:
quote:
File not found: /CFIDE/scripts/cfformhistory.cfm The specific
sequence of files included or processed is:
C:\Data\users\dev.myservername.com\CFIDE\scripts\cfformhistory.cfm
So the flash is looking in the wrong place for the form
related files (which are in my CFIDE folder in the correct
location)
Anybody know what I need to change on my server??
-Phil
Maybe you are looking for
-
What Function/Features you want to have in next Sun Studio release?
Hello, My name is Ngoc Nguyen, from Sun Studio product team. We just shipped Sun Studio 12 ML release (for C, C++, Fortran compiler) past few weeks. We start working on the next release. This is the right time for the community to tell us what featur
-
Error while applying Patch 4960210
Hi, I am trying to integrate oracle apps with Oracle EBS 12R and following Doc Id:376811.1 from metalink. I have successfully installed patch 5983637, but when I try to install patch 4960210 on it, even though I stopped all the services on app server
-
How do I change default printer settings in Lion?
I just got a new MacBook Pro and after installing the correct drivers and setting up my printer, it now prints 2-sided by default. How do I change this default setting? I'm using a MacBook Pro, OS X 10.7.4, printing over AirPort to a KonicaMinolta o
-
IIsProxy version for windows authentication
We are in the process of installing windows authentication to our EP 6.0 portal. We are running on SP 11 J2EE with portal SP 11 patch 3. The first question I have in document Using Header variables or Integrated Windows Authentication section Ins
-
is there any package in java which has some function that convert a enter key in to hindi font i.e. n==न thanks in advance With regards Hemjyo