The problem with this is I'm submitting from a drop-down menu which when a 
user is selecting the information is displayed in my iframe. I then have 2 
submit buttons "Add" and "Delete" which I need to pass the #User# to 
another template to delete or add a group.

<!--- START RETURN LIST OF ALL NT USER ACCOUNTS --->
<CFX_Users ACTION="USERS">
<CFIF IsDefined("Users")>
         <CFIF IsQuery(Users)>
                 <CFLOOP QUERY="Users">
                         <CFOUTPUT>
                                 <!---
                                 <td>#User#</td>
                                 <td>#FullName#</td>
                                 <td><small>#Description#</small></td>
                                 <td><small>#SID#</small></td>
                                 --->
                         </CFOUTPUT>
                 </CFLOOP>
         </CFIF>
</CFIF>
<!--- END RETURN LIST OF ALL NT USER ACCOUNTS --->


<form name="display">
<select name="gd" size="1" onChange="groupdisplay()" class="dirlinks">
         <option value="#" selected>Select...&nbsp;</option>
         <cfoutput query="Users" group="user">
         <option value="groups-action.cfm?MyGroups=#User#">#User#</option>
         </cfoutput>
</select>

<!--- Call in iframe for font display --->
<script type="text/javascript" 
src="<cfoutput>#rootjs#</cfoutput>groupdisplay.js">
</script>

<input type="button" name="submit" value="Add" class="navlinks">
<input type="button" name="submit" value="Delete" class="navlinks">
<input type="button" value="Close" class="navlinks" onClick="self.close()">

</form>


 >why not just submit to one page and include the add-action.cfm or
 >delete-action.cfm based on what the value of the submit button is?
 >
 ><form action="action.cfm" ...>
 >         ...
 >         <input type="submit" name="submit" value="Add">
 >         <input type="submit" name="submit" value="Delete">
 ></form>
 >
 >Then on your action page:
 >
 ><cfif form.submit eq "Add">
 >         <cfinclude template="add-action.cfm">
 ><cfelse>
 >         <cfinclude template="delete-action.cfm">
 ></cfif>
 >
 >Also, I try to steer clear of <cfform> ... it sometimes clashes with any
 >other javascript that I have on the page. Regular <form> tags seem to work
 >just dandy for me. But, that's just my opinion. I'm sure <cfform> has its
 >upsides.
 >
 >Cheers,
 >Tony
 >
 >-----Original Message-----
 >From: phumes1 [mailto:
 >Sent: Monday, April 01, 2002 11:00 AM
 >To: CF-Talk
 >Subject: Re: <CFFORM
 >
 >
 >Hi,
 >
 >This is an addition to my previous email. I'll try and explain it better.
 >
 >I have a drop-down menu which lists users. Whn auser is selected I have two
 >button on the page "Add" and "Delete" which when clicked the username gets
 >passed to either a add-action.cmf or delete-action.cfm template.
 >
 >Does this have to be done with Javascript? If so, how?
 >
 >Right now I just have my code between <CFFORM>...</CFFORM> tags.
 >
 >
 >
 >
 >
 >+---------------------------------------------------------------------------
 >--------+
 >
 >Philip Humeniuk
 >[EMAIL PROTECTED]
 >[EMAIL PROTECTED]
 >+---------------------------------------------------------------------------
 >---------+
 >
 >
 >
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to