Copy link to clipboard
Copied
I am just now starting to explore cflayout and so I have a tab layout with a cfform in 1 tab area. It submits and comes back with the proper response. But then I want to be able to clear the results and see the form again. The only way I have found to do it is refreshing the whole page. Can I buy a clue?
Copy link to clipboard
Copied
Good thing I'm such an uber genius.
Okay, I'll post the solution I came up with (maybe not the best but it works) just in case somebody else has this problem (I am not alone!)
Since the Ajax form submit replaces cfform with the results from the action page, I just put a cfform button saying "new search". When clicked its action is the original form page. Actually, I simplified and made it all 1 page so it now checks the submit button name to see if it should do the search or show the form.
Works like a champ.
Just took realizing it was all client side (I'm new to Ajax)
Sometimes I impress even myself.