SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 16th, 2005, 03:36 PM
MIDIman MIDIman is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 8 MIDIman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 53 sec
Reputation Power: 0
Form within a Form?

This has likely already been answered. I haven't quite seen this particular scenario, but don't hesitate to lead me to a solution.

I have a standard form and action cfm page. However, within the form, I'd like to have a small section in which when its individual submit button is pressed, certain fields are added to a cf list. In addition, I'd like the user to view that list in realtime as they press "ADD", say in something like a select field? Then, when the bottom-most Submit is pressed, all data will be sent to the database.

If the best method for this is to pass through the same action page each time the form within form submit is pressed, how can I pass the other fields that have already been filled out?

This is a great community - thanks all for your assistance. I've learned alot here!

Reply With Quote
  #2  
Old March 16th, 2005, 03:48 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,611 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 10 m 21 sec
Reputation Power: 53
You'd really need to do this with Javascript I think.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old March 17th, 2005, 07:08 AM
midimidi midimidi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 83 midimidi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 29 m
Reputation Power: 4
Thanks - I'm thinking about using something like innerHTML on a specifically formatted table cell or something. Trying to figure out how I can grab what is currently in the block, and adding a variable to it, before writing to it.

This would lose a method of removing an item (by selecting it) on the same page, but I can work around that later in a seperate process.

I tried some javascript, but its lengthy and (IMHO) difficult to understand. I'd like to have something simple.


Its funny - I can find tons of code about changing blocks in realtime on a webpage, but almost nothing about appending to it.

Reply With Quote
  #4  
Old March 17th, 2005, 07:52 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,611 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 10 m 21 sec
Reputation Power: 53
The only way to do things like this without submitting the form and making another request to the server is with Javascript. You could also have multiple separate forms on the page, each with their own submit button, and when the user submits each form, the same page is reloaded and the form submission is handled (ie adding things to a list or whatever). But this requires making another request and is not as immediate as Javascript.

Reply With Quote
  #5  
Old March 17th, 2005, 01:07 PM
midimidi midimidi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 83 midimidi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 29 m
Reputation Power: 4
Thanks as always kiteless. Moved to the javascript forum. I might be back when I need to physically combine the two correctly.

Reply With Quote
  #6  
Old March 20th, 2005, 11:35 AM
midimidi midimidi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 83 midimidi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 29 m
Reputation Power: 4
I'm back!! Got my solution on the Javascript forum using an onClick function. Still working on passing CF through it though.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Form within a Form?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway