Dan,

Yes, I am trying to pass all values from a multi-select box. In my case, I
have a simple text box which people type into, and when they click "Add" it
gets added to the multi select box. Here is my code.

<table width="100%" border="0" class="wizard-desc">
<tr>
 <td width="50%" valign="top">Email<br><input type="text"
name="email"><br><input onclick="addEmail(NotifyRecipients, email.value,
email.value);return false;" type="button" name="add" value=" Add "></td>
 <td width="50%">
  Existing Email Addresses<br>
  <select name="NotifyRecipients" size="5">
   <cfif Session.Wizard.Queue.getNotificationRecipients() NEQ "">
    <cfloop list="#Session.Wizard.Queue.getNotificationRecipients()#"
index="a">
     <option value="#a#">#a#</option>
    </cfloop>
   </cfif>
  </select><br>
  <input onclick="removeEmail(NotifyRecipients);return false;" type="button"
name="remove" value=" Remove ">
 </td>
</tr>
</table>

So when people enter things into the 'email' field and click Add, the entry
gets added to the multi select box. When I click 'Save' on my form, the
entries are passed to the action page just fine. The problem is the NEXT
time I visit this page. For example, lets say I have 2 pre-existing emails.
The loop above creates the <option>'s for those emails. But as soon as I
submit the form, the entries I added via my loop are NOT passed to the
action page. Here is my qForms javascript:

<SCRIPT LANGUAGE="JavaScript">
<!--//
objForm = new qForm("wizard");
objForm.NotifyRecipients.makeContainer();
//-->
</SCRIPT>

Any help would be appreciated. Thanks!

Cedric

-----------------------------------------
Subject: QForms and Containers
From: "Dan O'Keefe" <[EMAIL PROTECTED]>
Date: Fri, 5 Sep 2003 06:39:46 -0400
Thread:
http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=26889&forumid=4#135504

Are you trying to pass all values in a multi select box? I have a page
similar to this, and when I click on the submit button, I see all of my
values get highlighted and then the page posts. That is what the:

objForm.fieldname.makeContainer();

method performs.

Dan
=================== Previous Message Below ===================


-----Original Message-----
From: Cedric Villat [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:05 PM
To: CF-Talk
Subject: QForms and Containers


Well, that didn't help much, hah. My problem is that I only have 1
select box, not 2. And on my end over here, if I simply add items to my
select box through CF by looping through and adding <option>'s those
items I added through CF doesn't seem to get passed to the server. They
appear in the select box, but do not get passed. I have no idea what the
problem is, but I guess I'll play around more.

Cedric

>I didn't include the external js cuz I figured you didn't need it.
>We'll see if js can get thru now :-)
>
>Put this in your HEAD area:
>
><!--// load the qForm JavaScript API //-->
><SCRIPT SRC="../lib/qforms.js"></SCRIPT>
><SCRIPT LANGUAGE="JavaScript">
><!--//
>// set the path to the qForms directory
>qFormAPI.setLibraryPath("../lib/");
>// this loads all the default libraries
>qFormAPI.include("*");
>//-->
></SCRIPT>
>
>Wrap the code I posted already in a form post.  My example was named
>"EditSignup" and you must use the name attribute in your form
>statement.  Like this:
>
><form
> action="foo.cfm?woo=hoo"
> method="post"
> name="EditSignup">
>
>Put the following after the /form tag.
>
><SCRIPT LANGUAGE="JavaScript">
><!--//
>objForm = new qForm("EditSignup"); objForm.States.makeContainer();
>objForm.States.dummyContainer = true;
>objForm.ChosenStates.makeContainer();
>//-->
></SCRIPT>
>
>Good luck,
>
>
>--
>-------------------------------------------

>Matt Robertson,     [EMAIL PROTECTED]

>MSB Designs, Inc. http://mysecretbase.com
>-------------------------------------------
>
--


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to