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

user message after POST

Engaged ,
Sep 04, 2013 Sep 04, 2013

Copy link to clipboard

Copied

I have a POST form and action to itself lie following:

<cfform  name="Indexform" method="post" action="index.cfm">

I want to give user complete message when POST complete and show error message if there is any.

I want to use on Button click, but it seems that it is too early.

It should handle by server side, since it needs get back from server for POST.

<td><input name="Submit" type="submit" id="Submit" value="Submit" onClick="PostMessage()"/></td>

I would like to use

  ColdFusion.CreateMessage or CFMessagebox to show user message.

  Are there any condition I can check using CFIF to generate this user message?

  Your help and information is great appreciated,

Regards,

Iccsi,

Views

427

Translate

Translate

Report

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
Engaged ,
Sep 04, 2013 Sep 04, 2013

Copy link to clipboard

Copied

LATEST

I tried to use onSuccess event on cfform, but it does not trigger the onSuccess event, even I have the code in div tag.

It looks like the only solutoin to use jQuery.ajax to do thise, since it has success call back function to call javascript.

Any informaiton and help is great appreciated,

Regards,

Iccsi,

Votes

Translate

Translate

Report

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
Documentation