Professional Web Applications Themes

Pass URL Parameter from html form to flash form - Coldfusion Flash Integration

In CF, I have a link to a form to update a students attendance; takeattendancehv1.cfm?StudentID=#allstudents.Stude ntID# . I'm using a flash form in takeattendancehv1.cfm to populate the studentID. On the flash form, the studentID appears on the form, but when I submit the form, I get this error: Element STUDENTID is undefined in URL . Here is my studentID form field in my flash form: <cfinput name= "studentID" maxlength = "10" size = "10" value="#attendance.StudentId#" message = "Student ID" validate="integer"> I'm pretty new at creating flash forms, but would like to know the best practice for populating a URL parameter ...

  1. #1

    Default Pass URL Parameter from html form to flash form

    In CF, I have a link to a form to update a students attendance;
    takeattendancehv1.cfm?StudentID=#allstudents.Stude ntID# . I'm using a flash
    form in takeattendancehv1.cfm to populate the studentID. On the flash form, the
    studentID appears on the form, but when I submit the form, I get this error:
    Element STUDENTID is undefined in URL . Here is my studentID form field in my
    flash form: <cfinput name= "studentID"
    maxlength = "10"
    size = "10"
    value="#attendance.StudentId#"
    message = "Student ID"
    validate="integer">

    I'm pretty new at creating flash forms, but would like to know the best
    practice for populating a URL parameter from one page to another when using
    Flash. Can someone lead me in the right direction.
    Thank you.

    keann Guest

  2. #2

    Default Re: Pass URL Parameter from html form to flash form

    Check your cfform method, if you have it set as post, the result will be
    returned in the form.scope.

    if you're debugging, try doing a cfdump on the form and url scopes, you'll see
    where your data is.

    One suggestion is to stick with one scope and convert as necessary. So if the
    navigation link to bring up the form is a link, then in the code;

    <cfparam name="url.studentID" default="">
    <cfparam name="form.studentID" default="#url.studentID#">

    <cfform name="myForm" method="post" ....

    <cfinput type="hidden" name="StudentID" value="#form.studentID#"....

    Then check the form scope in the template that handles the form submission.

    c_wigginton Guest

Similar Threads

  1. flash form fails to pass to cf page
    By braulio! in forum Coldfusion Flash Integration
    Replies: 2
    Last Post: January 30th, 10:44 PM
  2. Cannot pass form field variable from Flash form to CFC
    By modernkaos in forum Coldfusion Flash Integration
    Replies: 2
    Last Post: November 6th, 03:28 AM
  3. Converting a HTML form to a Flash one
    By Black People Online in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: May 12th, 01:28 AM
  4. how do I pass the FLASH version of the form variable tothe query in CF 7.0
    By SharedDynamics in forum Coldfusion - Advanced Techniques
    Replies: 3
    Last Post: March 10th, 09:13 PM
  5. GET VARIABLE FORM HTML TO FLASH
    By PEL in forum Macromedia Flash
    Replies: 1
    Last Post: November 19th, 01:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139