Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cfform in a tabbed layout ... see form again

Contributor ,
Sep 01, 2009 Sep 01, 2009

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?

1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 02, 2009 Sep 02, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources