Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Derek
Can anyone help me with this? I have an onChange function that refreshes my coldfusion page and puts the new ID in the URL and then the SQL uses this ID to get certain information from the database. But when it refreshes with the new ID I lose any changed data in the form... any suggestions? My

Re: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Josh Nathanson
. -- Josh - Original Message - From: Derek [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, October 18, 2006 10:59 AM Subject: Form Fields - storing unsaved values with a Page refresh Can anyone help me with this? I have an onChange function that refreshes my

RE: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Ian Skinner
A couple of ideas: 1) Use Ajax, I can't help you here, but I'm pretty sure it could be used for this kind of thing. 2) Use the form.submit() function to submit the form, rather then self.location. Then your action logic will have access to all the data currently in the form. It could

RE: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Derek
and help. -Derek -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 1:08 PM To: CF-Talk Subject: RE: Form Fields - storing unsaved values with a Page refresh A couple of ideas: 1) Use Ajax, I can't help you here, but I'm pretty sure it could

RE: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Ian Skinner
Any ideas? I just have very broad ideas without knowing your requirements in more detail. In your filter function that is called from the select's onChange event, change the action property of the form to a page that handles the ID logic, restores the current state of the form, and returns

RE: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Derek
Ok, Thanks for all your help. I have it working now. Thank you. Have a great day -Derek -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 1:08 PM To: CF-Talk Subject: RE: Form Fields - storing unsaved values with a Page refresh A couple

RE: Form Fields - storing unsaved values with a Page refresh

2006-10-18 Thread Ian Skinner
Some code I played with demonstrating the idea. Index.cfm - cfsilent cfif isDefined(form.id) cfset ID_result = I did something with the ID /cfif cfparam name=form.text default= cfparam name=form.ID default= cfparam

Re: Form Fields - storing unsaved values.

2006-10-17 Thread Derek Law
I have a similar issue with a bit of twist. I have an onChange function that refreshes my coldfusion page and puts the new ID in the URL and then the SQL uses this ID to get certain information from the database. But when it refreshes with the new ID I lose any changed data in the form... any

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Andrew Peterson
Hi Ben. Thanks for your response. One question: What about just signaling the page to SUBMIT rather than REFRESH and set some sort of hidden field flag to tell the processing page NOT to process the form, but just to let it refresh with the same form data. This will allow the form to keep

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Teddy Payne
At the point that you click the link that opens the popup, pass the form fields to the spawned child window. Save the original form data within a hidden form on the popup. When you submit the popup, have the popup form submit back to the originating form. This will allow you to detect for the

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Andrew Peterson
At the point that you click the link that opens the popup, pass the form fields to the spawned child window. Can you tell me how you are doing this? What I mean to say is, how does the link recognize the form values? The only way I can get the form field values recognized is if I use input

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Teddy Payne
Well, the popup has a parent object. It has a reserved object just for the page that spawned it. It is called opener. So you could do, opener.forms[0].field.value from the pop up and then assisgn it to a local hidden form field. You can do most everything with the opener object that you could

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Andrew Peterson
Teddy Excellent. Thanks again. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year.

Re: Form Fields - storing unsaved values.

2006-10-13 Thread Dave Jones
Andrew, I had a similar situation. The way I did it is a) set up the parent form to pull the field values from session vars (I use a home-grown formBean); b) when the popup window is called, first use Ajax to pass the parent's field values to a routine on the server which stores then into

RE: Form Fields - storing unsaved values.

2006-10-13 Thread Ben Nadel
. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Dave Jones [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 12:59 PM To: CF-Talk Subject: Re: Form Fields - storing unsaved values. Andrew, I had a similar

RE: Form Fields - storing unsaved values.

2006-10-13 Thread Ben Nadel
I think you guys are making this way too complicated. Take a look at this: cfparam name=FORM.allow_refresh type=numeric default=0 / cfparam name=FORM.submitted type=numeric default=0 / cfparam name=FORM.name type=string default= / !--- BEGIN: PRE-PAGE PROCESSING. --- !--- Check to see if

Form Fields - storing unsaved values.

2006-10-12 Thread Peterson, Andrew S.
Got a form with a list of rows coming from a database. User enteres new data, then realizes he needs to add a row to this form. User click sa hyperlink to do just that - and a popup window opens for him to add a row. User closes the popup window after successful addition, and form must refresh

RE: Form Fields - storing unsaved values.

2006-10-12 Thread Ben Nadel
Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Peterson, Andrew S. [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 4:49 PM To: CF-Talk Subject: Form Fields - storing unsaved values. Got a form with a list of rows coming from a database