how to solve this problem

Reply

Join Date: Apr 2009
Posts: 7
Reputation: nagkar is an unknown quantity at this point 
Solved Threads: 0
nagkar nagkar is offline Offline
Newbie Poster

how to solve this problem

 
0
  #1
May 1st, 2009
Hi ...how to solve this problem........In a form there is a Cfbutton which is of submit type.when the user click this button i want a insertquery to be executed which collects datat from a dynamic table.I dont want to reload the whole page when the user clicks this button.



  1. <table border="2px">
  2. <tr>
  3. <td>product</td>
  4. <td>Lot</td>
  5. <td>d_amount</td>
  6. <td>d_unit</td>
  7.  
  8. </tr>
  9. <cfoutput query="qrecipes">
  10. <tr>
  11. <td>#qrecipes.ingredient#</td>
  12. <td><cfselect name="lot" id="lot" ><option value=1>xyz</option><option value=2>abc</option></cfselect></td>
  13. <td>#qrecipes.d_amount#</td>
  14. <td>#qrecipes.d_unit#</td>
  15.  
  16.  
  17. </tr>
  18. </cfoutput>
  19. </table>
  20.  
  21.  
  22. <cfinput type="submit" name="storebuild" value="sotrebuild">
  23. <cfinput type="submit" name="clear" value="clear">



when the user clicks the storebuild button i want to run a insert query to enter the data displayed in to another table.how do i need to approach thisproblem.
Last edited by peter_budo; May 7th, 2009 at 3:27 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: how to solve this problem

 
0
  #2
May 1st, 2009
AJAX (Asynchronous JavaScript And XML)
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 869 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ColdFusion
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC