CFFORM   problem

In my CFFORM I first call my javascript then some cfinput
fields are required. In test my codes behaves what it supposed to
be. CF server creates its javascripts for those required fields and
replace the USER DEFINED JAVASCRIPT on my onsubmit with coldfusion
generated function or scripts then at the of those scripts it calls
my USER DEFINED JAVASCRIPT , which is how supposed to work. But
when I deploy it to production the CFFORM return my user defined
javascript to be called under onsubmit instead of
_CF_checkMyForm(_CF_this) since I those required fields. I noticed
in the source code it creates these functions
_CF_checkMyForm(_CF_this) and the validations for the required
fields. Only the "onsubmit" hasn't give the right command...
instead of onsubmit = _CF_checkMyForm(_CF_this) it calls the user
defined one.

Verify your CFIDE virtual directory in production is
configured correctly. There's a .js file in cifde/scripts that
needs to get called.

Similar Messages

  • CFFORM Problems

    We just upgraded to cfmx7. We are having a problem with
    CFFORM and text fields. When I have a form with a text field I am
    finding that if Ipopulate the field with a large amout of text it
    will not submit. For example
    ---------------Cold Fusion Code ----------------
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="ItemName#ID#" value="#ItemName#"
    size="8" class="W80"></td>
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="VariationRules#ID#"
    value="#VariationRules#" size="8" class="W80"></td>
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="UserInput#ID#"
    value="#UserInput#" size="8" class="W80"></td>
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="Weight#ID#" value="#Weight#"
    size="3" class="W3"></td>
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="Qty#ID#" value="#Qty#" size="3"
    class="W30" required="yes" message="You must specify a valid value
    for 'Qty'" validate="integer" maxlength="7"></td>
    <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput name="Price#ID#"
    value="#Trim("#NumberFormat(Price, "#CurrencyList.mask#")#")#"
    size="5" class="W45" required="yes" message="You must enter a valid
    numeric value for 'Price'" validate="float"></td>
    This code was inside of a cfloop processing 1 - 3 records in
    a resultset. With one record the submit worked fine. When the query
    returns two records the submit does not work. I later found that
    with one record if I populate one or more of the fields with a
    large amout of text that the submit fails. On multiple records if I
    clear the text fields the submit works as well.
    Any ideas this was working code in CFMX 6.1 and is now broken
    in 7.02 . It does not seem to be related to a form validation
    problem since I have tested without the calls to
    _CF_checkOrderForm(_CF_this) -->>OrderForm is the name of the
    Form - BTW - I am testing with IE6 FireFox seems to work OK.

    What do you mean by "it will not submit"
    Are you getting an error?
    If you are getting an error, what is the exact error?
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "WaveRunr" <[email protected]> wrote in
    message news:[email protected]...
    > We just upgraded to cfmx7. We are having a problem with
    CFFORM and text fields.
    > When I have a form with a text field I am finding that
    if Ipopulate the field
    > with a large amout of text it will not submit. For
    example
    >
    > ---------------Cold Fusion Code ----------------
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="ItemName#ID#" value="#ItemName#" size="8"
    class="W80"></td>
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="VariationRules#ID#" value="#VariationRules#"
    size="8" class="W80"></td>
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="UserInput#ID#" value="#UserInput#" size="8"
    class="W80"></td>
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="Weight#ID#" value="#Weight#" size="3"
    class="W3"></td>
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="Qty#ID#" value="#Qty#" size="3" class="W30"
    required="yes" message="You
    > must specify a valid value for 'Qty'" validate="integer"
    maxlength="7"></td>
    > <td bgColor="#StoreOptions.admincolor2#"
    valign="top"><cfinput
    > name="Price#ID#" value="#Trim("#NumberFormat(Price,
    "#CurrencyList.mask#")#")#"
    > size="5" class="W45" required="yes" message="You must
    enter a valid numeric
    > value for 'Price'" validate="float"></td>
    > ----------------------------------
    >
    > This code was inside of a cfloop processing 1 - 3
    records in a resultset. With
    > one record the submit worked fine. When the query
    returns two records the
    > submit does not work. I later found that with one record
    if I populate one or
    > more of the fields with a large amout of text that the
    submit fails. On
    > multiple records if I clear the text fields the submit
    works as well.
    >
    > Any ideas this was working code in CFMX 6.1 and is now
    broken in 7.02 . It
    > does not seem to be related to a form validation problem
    since I have tested
    > without the calls to _CF_checkOrderForm(_CF_this)
    -->>OrderForm is the name of
    > the Form
    >
    >
    >

  • ColdFusion10 Multi-instance cfform problems

    Hello,
    I am working with a client on an issue regarding cfform ( flash ) on a coldfusion10 server with multiple instances. We have multiple instances setup as a cluster. We then replicate all sandbox security settings to both instances. However, one instance loads a test flash form, while the other produces an 'RSL Load Failed!' error.
    Running the same test on a site that doesn't have a sandbox setup, the form works just fine on that instance. This leads me to believe there is a problem with permissions due to sandbox security on this instance. Anyone know what specific folders/settings should be enabled to allow cfform ( flash ) to operate properly?
    Thanks in advance. If more info is required, let me know.

    If I remember correctly, cfform is not one of the tags excluded in sandboxing. So, my guess is that this problem is caused by something other than the cfform per se.
    I would think immediately of access to the CFIDE directory. For that is where ColdFusion's script and flash configuration files are stored. This brings me to the idea that the issue might be caused by one of the new changes in functionality in ColdFusion 10, namely, a logged-in user may have no more than one active session.

  • CFFORM/CFINPUT Type = File Problem

    Hello everyone-
    I'm trying to use a CFINPUT/FILE field in a CFFORM:
    <CFINPUT TYPE="file" NAME="scanArticleLocation"
    class="sans9">
    Clicking on the Browse button appears to populate the text
    input box with a valid path, but when the field
    "scanArticleLocation" is passed on by the form, I get this:
    <INPUT TYPE="hidden" NAME="ScanArticleLocation"
    VALUE="C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp12527.t mp">
    Wether I click on the form's "Browse" button to specify the
    file's path, or manually enter it, the result is the same (only the
    .tmp file name changes). Anyone ever come across this one?
    Thanks in advance...
    - Tom Tedeschi

    It appears that the problem was in the CFFORM tag itself. I
    originally had specified that it be multi-part:
    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm"
    enctype="multipart/form-data" METHOD="POST">
    When I removed the enctype parameter, it worked fine:
    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm"
    METHOD="POST">
    - TRT

  • Problem with cfform

    is there anything wrong in this code.
    <body>
    <cfform name="RunningForm" method="post"
    action="AddEntry-cfform.cfm">
    <table>
    <tr>
    <td>Date:</td>
    <td><cfinput type="text" name="date"
    size="20"></td>
    </tr>
    <tr>
    <td>Distance:</td>
    <td><cfinput type="text" name="distance"
    size="20"></td>
    </tr>
    <tr>
    <td>Time:</td>
    <td><cfinput type="text" name="time"
    size="20"></td>
    </tr>
    <tr>
    <td>Comments:</td>
    <td><cftextarea rows="3" cols="40"
    name="comments"></cftextarea></td>
    </tr>
    <tr>
    <td colspan="2" align="right">
    <cfinput name="Add Entry" value="Add Entry"
    type="submit">
    </td>
    </tr>
    </table>
    </cfform>
    </body>
    on execution, getting error msg
    Attribute validation error for tag CFINPUT.
    The value of the attribute TYPE, which is currently "button",
    must be one of the values: RADIO,CHECKBOX,PASSWORD,TEXT.
    The error occurred in
    /home/httpd/html/testing_subhash/form.cfm: line 29
    27 : <tr>
    28 : <td colspan="2" align="right">
    29 : <cfinput name="Add Entry" value="Add Entry"
    type="button" />
    30 : </td>
    31 : </tr>

    which version of CF are you using?
    submit & button (as well as file, image, reset and
    hidden) types were
    added in CFMX7 only...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Problem with CFFORM type="flash"

    I don't like to have "the question mark" at the end of the
    URL in the new page because I can't open extension with .xls
    Any idee ?
    <CFOUTPUT>
    <cfset rootDir =
    ExpandPath("./download/documentation")>
    <cfset repbase = "download/documentation">
    <cfdirectory action="list" directory="#rootDir#"
    recurse="yes" name="myDir">
    <cfform format="flash" skin="haloblue">
    <cftree width="400" height="600" name = "myDirTree"
    vscroll="yes" hscroll="yes" enabled="yes" visible="yes"
    highlighthref="yes" appendkey="No" required="no" completepath="no"
    >
    <cfloop query="myDir">
    <cfswitch expression="#myDir.Type#">
    <cfcase value="Dir">
    <cfset img = "folder">
    </cfcase>
    <cfcase value="File">
    <cfset img = "document">
    </cfcase>
    </cfswitch>
    <cfset wholePath = myDir.Directory & "/" &
    myDir.Name>
    <cfset treeVal =Right(wholePath,len(wholePath) -
    len(rootDir))>
    <cfset parVal =
    ListDeleteAt(treeVal,ListLen(treeVal,"/"),"/")>
    <CFSET TYPFIC = #right(myDir.Name, 3)#>
    <CFSET LIENFIC = "">
    <CFIF #TYPFIC# EQ "pdf" OR #TYPFIC# EQ "exe" OR #TYPFIC#
    EQ "xls" OR #TYPFIC# EQ "doc" OR #TYPFIC# EQ "jpg">
    <CFSET LIENFIC = #repbase# & #treeVal#>
    </CFIF>
    <cftreeitem value="#treeVal#" display="#myDir.Name#"
    parent = "#parVal#" expand="no" img="#img#" href="#LIENFIC#"
    target="_blank">
    </cfloop>
    </cftree>
    </cfform>
    </CFOUTPUT>

    agh... for some reason the the character are being turned
    into html equivalant on the board. WTF?

  • CFFORM regex Problem

    I'm trying to restrict a form value to something like mm/dd
    as follows:
    <cfinput type="text" name="AnStartDate#i#"
    id="AnStartDate#i#" validate="regular_expression"
    pattern="^[0-1]?[0-9]/[0-3]?[0-9]*$" size="4" maxlength="5"
    validateat="onSubmit" message="Please enter all annual start dates
    as mm/dd" />
    The form loops to give a total of 5 rows of text entries.
    When the page loads, Firefox's Javascript console shows the
    following error:
    Error: syntax error
    Source File:
    http://localhost/mti/orders/refurb/edit_duty.cfm?type=Argos%2FGPS%20Solar%20PTTs&prodID=79
    Line: 196, Column: 92
    Source Code:
    if (!_CF_checkregex(_CF_this['AnStartDate1'].value,
    /^[0-1]?[0-9]/[0-3]?[0-9]*$/, true))
    with the arrow indicating the error is right before the
    "true" at the end of the statement.
    Since this is in the JS generated by CF, is there a problem
    in the regular expression? I want the initial digit of the month or
    day to be optional, so users can type, "6/4" rather than "06/04"
    but it needs to be no more that 5 characters, and look like a date
    without a year. Right now, because of the error, anything is
    accepted.

    You need to escape your "/".
    ^[0-1]?[0-9]\/[0-3]?[0-9]*$
    Just an FYI, the only thing this is validating is that you
    have 1 or 2 digits who's value is lte 19 followed by a "/" followed
    by one or 2 digits who's value is lte 39. The values 19/39 or 00/00
    would pass the test despite the fact they're far from being a valid
    date.

  • CFFORM and CFUPDATE Problems

    have built a flash form that pulls information dynamically
    from a mysql db. everything but the edit feature is working. When
    the form is submitted, it is sent to submit.cfm. For some reason,
    errors appear as:
    The given fieldname "DBDATA.FIRSTNAME" could not be found in
    the table "table".
    Below is a STRIPPED down version of what we have. Is there
    something im doing wrong?
    --SUBMIT.CFM--
    <cfupdate dataSource = "datasource"
    tableName = "table"
    formFields = "firstname,lastname">
    --FORM.CFM--
    <cfquery name="dbdata" datasource="datasource">
    SELECT * FROM table
    </cfquery>
    <cfform format="flash" action="submit.cfm">
    <cfformgroup type="vbox"><cfformgroup type="panel"
    label="Information">
    <cfgrid name="dbdata" query="dbdata"
    rowheaders="false">
    <cfgridcolumn name="firstname" header="First Name" />
    <cfgridcolumn name="lastname" header="Last Name" />
    </cfgrid>
    </cfformgroup>
    <cfformgroup type="panel" label="Edit">
    <cfinput type="text" name="firstname" label="First
    Name:"bind="{dbdata.selectedItem.firstname}" />
    <cfinput type="text" name="lastname" label="Last
    Name:"bind="{dbdata.selectedItem.lastname}" />
    <cfinput type="submit" name="submit" value="Apply changes"
    />
    </cfformgroup>
    </cfformgroup>
    </cfform>

    If the intent is to prevent multiple form submissions, there
    are a couple of other ways to do it. Neither is perfect, but both
    require a deliberate effort to submit the form more than once.
    1. Use an intermediate page. On this page, validate the form
    inputs, convert the form variables to session variables and
    javascript.window.location to the real page.
    2. At the top of the form action page, display some html
    content and cfflush it. Then process your form.

  • Active Content for cfform in Flash format

    I have use <cfform> to generate flash forms. When the
    pages display these forms they are locked with the "Click to
    activate this control" message. Because these forms are dynamic and
    genrated in-line, I am unsure how to cause the form to display
    unlocked. Any suggestions? Thanks.

    This is because of microsoft having to change the way IE
    interacts with the object.
    There is a hot fix or you can apply updater 2 for cf. This
    will resolve the problem.
    Ken

  • Cfform format="flash" not loading

    The Problem: When I load a file that contains ANY cfform tag
    with format="flash", all I get is a partially rendered object with
    a spinning clock for a pointer.
    Your initial reaction is probably "oh, thats just bad
    code"... but, read on.. the plot thickens...
    I have 2 domains... Domain.A is hosted out of the root of my
    folder (i.e. /hosting)... a second domain, Domain.B is hosted out
    of a subfolder of the root (i.e. /hosting/DomainB)...
    I have a stripped down page with a cfform format="flash"
    located at /hosting/DomainB called test.cfm.
    If I open a browser and go to www.domainB.com/test.cfm - the
    file will NOT compile or load all the way
    If I open another browser and go to
    www.domainA.com/domainb/test.cfom - the file loads correctly.
    Exact same file, referenced by 2 different domain paths, with
    2 different results.
    I have copied this file to various other folders in my main
    domain, and it works fine. I have also copied this file to other
    servers and it runs fine. I have created new files and placed them
    in DomainB's folder and they ALL exhibt the same problems - they
    will only compile so far and then I get a spinning clock for all
    eternity.
    I'm at a total loss on this one and would appreciate ANY
    thoughts...
    Thanks all!

    Wolvie....I sure hope you found an answer to your problem and
    if you'd post it, i'd be most appreciated.
    I have the exact same issue on cfform with flash rendering...
    incident and incident has been post with goddaddy and finally
    got someone to toss me a tidbit of info.
    since i host domains in subfolders as you do i experience the
    same works/doesnt work scenario.
    I am told the key to this solution is in the Application.cfm
    file. (not confirmed)
    Now...exactly WHAT is to be declared, i dunno.
    however, the acid test is to provide a full path to your
    failing cfm. if it works doing that. then its some sort of pointer
    to the IDE folder in issue (i am told) (again not figured out...im
    just sharing at this time)
    when i provided the full path ie:
    www.mySite.com/subfoldername/myForm.cfm the failing page rendered
    correctly. (and finally without that GD spinning clock ^^)
    so i feel i'm on the right road here.

  • Onload and Tabbing focus problem

    I was asked by some of my users to set focus to the username
    field on the login page when it loads. I began by adding to the
    body tag and cfform tags OnLoad function. This allowed the page to
    load and set up the user to just start typing without clicking in
    the field. The problem is with trying to tab to the next field. The
    only way I can even start tabbing to other fields is to click in
    one and then depress the tab key. However, this only tabs over to
    the other two fields while leaving out one of the fields.
    I would like the page to load so that the user can start
    typing and then by pressing tab he can move on to the next field. I
    don't know why this code doesn't work. It is kind of frustrating.
    Does anybody know of a fix to this problem?
    Thank you for your time!

    Use a tabindex attribute in your form fields:
    http://www.htmlgoodies.com/tutorials/forms/article.php/3479201
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    http://www.tom-muck.com/
    Cartweaver Development Team
    http://www.cartweaver.com
    Extending Knowledge Daily
    http://www.communitymx.com/
    "jedale" <[email protected]> wrote in
    message
    news:[email protected]...
    I was asked by some of my users to set focus to the username
    field on the
    login
    page when it loads. I began by adding to the body tag and
    cfform tags
    OnLoad
    function. This allowed the page to load and set up the user
    to just start
    typing without clicking in the field. The problem is with
    trying to tab to
    the
    next field. The only way I can even start tabbing to other
    fields is to
    click
    in one and then depress the tab key. However, this only tabs
    over to the
    other
    two fields while leaving out one of the fields.
    I would like the page to load so that the user can start
    typing and then by
    pressing tab he can move on to the next field. I don't know
    why this code
    doesn't work. It is kind of frustrating. Does anybody know of
    a fix to this
    problem?
    Thank you for your time!
    <body onLoad="self.focus();document.login.focus()"
    bgcolor="#F2F9FF">
    <center>
    <cfform format="flash" name="login" action="login.cfm"
    method="post"
    width="100%" height="100%" preservedata="true"
    preloader="yes"
    timeout="3600"
    wmode="transparent" style="font-size:12px; font-weight:bold;
    background-color:##F2F9FF; themeColor:##003366"
    onload="name.setFocus();">
    <cfformitem type="script">
    function Tabit(){
    if(Key.getCode() == Key.TAB){
    password.setFocus()
    </cfformitem>
    <cfformgroup type="vbox"
    style="horizontalAlign:'center';" id="mainbox">
    <cfformgroup type="panel" id="loginPanel"
    style="headerHeight:0;panelBorderStyle:'roundCorners';
    shadowDistance:1;
    background-color:##80A8D5; marginTop:0;" width="320"
    height="80">
    <cfformitem type="spacer" height="2" />
    <cfinput width="200" maxlength="30" type="text"
    name="name" label="Name"
    style="font:Arial, Helvetica, sans-serif; font-size:12px;
    font-weight:normal"
    onKeyDown="Tabit();">
    <cfinput width="200" maxlength="30" type="password"
    name="password"
    label="Password" style="font:Arial, Helvetica, sans-serif;
    font-size:12px;font-weight:normal" >
    </cfformgroup>
    <cfformgroup type="vbox">
    <cfformgroup type="horizontal"
    style="horizontalAlign:'center';">
    <cfinput type="button" name="logInButton" value="Log In"
    onClick="alert('Submitted form');">
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    </cfform>
    </center>
    </body>

  • Flash CFFORM only displays with HTTPS

    I have a VERY basic test cfform in Flash mode that displays
    fine from the production server, but fails to show when called from
    my local development server. [code copied below]
    Eventually I called it via HTTPS and it works - but all I get
    is a blank page when running through HTTP. It works fine through
    both HTTP and HTTPS when running on the production server.
    I've been running Flash content for a while without issues -
    but this is my first attempt at using CFFORM in Flash Mode.
    The fact my local browsers (IE7, IE6, Firefox latest,
    Netscape latest) all get the same results, suggest its my local
    CFMX8 or IIS setup that's the problem.
    I've tried:
    Checking the CFIDE/Scripts is accessible through the browser
    - *.js file do download.
    Re-installed the connectors.
    Made sure the 'file exists' checkbox is NOT ticked in IIS for
    *.CFSWF.
    Re-installed CFMX8 (several times now!)
    Removed IIS and reinstalled.
    I'm running Win 2003 and CFMX8 - both with latest updates.
    Been struggling for 4 days on this one - does anyone have any
    experience with this - any help would be appreciated!!
    Thanks
    Peter
    ++++++++++++++++++++++++++++++++++++++
    <cfoutput>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <HEAD>
    <TITLE>Search Form</TITLE>
    <META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
    </HEAD>
    <BODY bgcolor="ffffff" leftmargin="0" topmargin="0"
    marginheight="0" marginwidth="0">
    <table border="1">
    <tr>
    <td align="center">
    <cfform format="flash" height="350" width="800"
    preservedata="yes" accessible="yes">
    Login : <cfinput name="login" >
    Password :<cfinput name="password" type="password" >
    <cfinput type="submit" name="submit_btn"
    value="Submit">
    </cfform>
    </td></tr></table>
    </BODY></HTML>
    </cfoutput>
    +++++++++++++++++++++++++++++++

    post a link to your website.,

  • Need popup window from cfform to go to PayPal using their button

    I have a cfform page (ColdFusion 8) that is embedded in an iframe in my standard html webpage. (Embedded so that I still have the same outer "envelope" as the rest of the pages; nav bars, etc.) I have the form post back to itself in order to check for injection problems, validation beyond basic form validation, etc, then insert form entries into a database. I am trying to then pass the visitor on to PayPal for them to make the payment. This could be either by way of a popup window or a redirect. The problem is that if I just put the PayPal button in my .cfm page it doesn't work. Also, it seems I need to get it out of the iframe context. Of course it would be nice to go the other way (which I have also tried) and have the potential donor first go to PayPal, enter their info, and then have them redirected back to my page. I realize I could then get some of the info I need from them (name, email, etc) in the PayPal IPN return, but there are 2 problems with this. 1) I have to rely on them clicking the "go back to ....." link in PayPal and 2) I still need other info that PayPal doesn;t pick up, like what department category they want their donation to go to, etc. which I can get up front from them if I go the first route mentioned.
    I have looked into cfhttp and cflocation tags. I don't seem to be finding any clearcut answers!
    Thanks for any help in advance!

    This link may help.
    http://www.danvega.org/blog/index.cfm/2008/3/4/ColdFusion-8-Grid-Context-Menu-Part-II

  • Ext Window in a CFFORM tag

    Guys,
    I have a problem with the ext window and I dont know how I resolve this.
    How put a ext window inside a cfform tag?
    Example:
    <ext:window id="settings" title="..:: Upload ::.." width="500" height="200" iconCls="settings" modal="true" resizable="true" closeAction="hide" source="http://localhost:8500/upload.cfm">
    How I call the ext window in a cfform tag in the event onSubmit?
    tks
    [ ]'s
    Fabiano Magno Pechibella

    Ok.. so I see you've got a div setup with the ID="infochange". Keep that div but remove the SCRIPT you have in that div.
    Maker sure that div#infochange has no content-- simply use <div id="infochange"></div>. We'll be inserting our data into it.
    Take the javascript I worked up at http://jsfiddle.net/XMx5P/2/ and include it on our page at http://nzusa.businesscatalyst.com/find_a_nutrition_zone_location You don't need to include it in the template code since we only need it on this page. So, open up that page in BC's admin or in Dreamweaver or a text editor and insert my code into a script tag. ie: <script type="text/javascript">paste javascript code here</script>. You should ideally include it towards the end of your html document.
    It was hard to test if it actually works since I can't do cross-domain ajax scripting on jsfiddle.net but after a quick check it looks like it will probably work.  Let me know how you make out.
    Side note: You are using multiple identical ID's in your markup.  Particularly where you create the wood buttons.  You use id="woodcontainer" in multiple places and that is a no-no.  If you want to have multiple HTML objects to be styled similarly, you should use classes instead so change id="woodcontainer" to class="woodcontainer" in your HTML markup for those buttons and then in /styles.css file, change #woodcontainer to .woodcontainer.  You already have a class for these elements as "flip", "flip1", "flip2", etc. So just addend the class "woodcontainer" into your markup. ie: <div class="flip1 woodcontainer">  You should only have one instance of an ID on a page. If you use the same ID in multiple places it can break javascript and your page definitely won't validate.

  • Form reset problem

    Hi all,
    I have a cfform containing 3 related cfselects (i.e. bind
    parameters connecting them), and it all works fine. However, I just
    noticed one problem: the form contains a Reset button to clear all
    of the form fields, which it does, but when the first cfselect is
    reset to it's first option, the bindings are not re-triggered so
    the other two cfselects do not contain the correct options. I tried
    adding an onreset="document.myform.firstselectid.onchange();" to
    the cfform tag, but that didn't work (throws a js error). BTW, I'm
    testing all of this in IE7 since that's what my client uses.
    Anyone know how I can get the bindings to update when the
    form is reset?
    Thanks,
    Russ

    Clearly I have not explained the problem well enough, since
    the fact that I'm binding to cfcs has nothing to do with the
    problem. Here's a simplified version of the relevant code:
    <cfselect name="Type" id="Type"
    bind="cfc:MyCFC.GetTypes()" bindonload="yes" />
    <cfselect name="Manu" id="Manu"
    bind="cfc:MyCFC.GetManus({Type})" />
    <cfselect name="Model" id="Model"
    bind="cfc:MyCFC.GetModels({Type@none},{Manu})" />
    When the user selects a Type from the first list, the Manu
    list uses it's binding to get the associated manufacturers and then
    the Model list uses it's binding to get the models for that type
    and manufacturer. It works just fine (has for a long time).
    The cfform has a reset button (<input name="Reset"
    type="reset" value="Clear Form">), and when you click it to
    reset the form, it does just that, setting each cfselect to it's
    first option. However, the fact that the Type cfselect got reset to
    it's first option does not cause the Manu and then Models cfselects
    to refresh from their bindings like they would if the user had
    selected the first Type option. That is the problem.
    I had hoped that simply following the reset with a js call to
    document.myform.Type.onchange(); would initiate the refresh, but
    document.myform.Type.onchange turns out to be null, so no go.
    I'm aware of an undocumented js function
    ColdFusion.Bind.assignValue that I've seen used for refreshing a
    cfselect that binds to a js function, but I have not seen any use
    of it when binding to a cfc.
    Your thoughts?
    Thanks,
    Russ

Maybe you are looking for

  • IPod not recognised by my computer

    My iPod when connected to the computer is shown as Removable disk and if i try to access that, i get the message 'Please insert disc'. when the play button is pressed the green and amber light blinks alternatively and stops, after which there is no r

  • Convert color images to black&white bitmaps

    Hi, I have black&white scans of public domain books (image format). I use an OCR software to convert them to indexable PDFs (image+text format). However, the OCRed PDFs are insanely big: a 27 MB scanned PDF leads to an indexable PDF of 728 MB! And un

  • Finder with Wacom intuos/graphire (a very persistant bug)

    Since a long time now, in Panther and now Tiger there is a bug with Wacom intuos to use the spring loaded fonction of the right column in Finder Windows. With a mouse it's working, with a tablet it's not working. I have send many time this bug to Wac

  • Unsynced items availble when iTunes is open?

    Supposedly this is true. But the only items that are available are the items that were in iTunes the last time I synced it. Is there a setting or something that controls this? Or some way of making syncing not take 5+ hours?

  • How do you alias the results of a case statement

    I am trying to create a derived table and I get the error "each calculated column must have an explicit name" I added the as shiptype to the end of the line and that did not work. Any thoughts? shiptype = case when araddr.invno is not null then 'ADDR