Form submit not behaving as expected


i have form has submit button.  action page action.cfm.  action.cfm executes cfscript restart cfusion server instance.  while restart code working, problem have @ end of action.cfm when cflocation initial form page.  problem when click submitt button second time not work.  if click submit button thrid time work.  pattern emerges every other click works after first click.

 

i have looked @ page caching , other things have found on net though problem, think boils down understanding of fundamentals not needs form submissions.  have tired self submitting form, had no luck either.  again, bad open best practice , ease of use suggestions.

 

any appreciated.  in advance.

 

the code below in file named restartit.cfm

 

<cfform name="myform" action="http://123.456.789.123:8301/restart.cfm" method="post"> <cfinput type ="button" onclick="document.myform.submit();" name="fbutton" value="restart"> </cfform> 


here restart.cfm

 

 <cfscript>       //relevant code here  </cfscript>  <cflocation url="http://123.456.789.123:8301/restartit.cfm" addtoken="no">  


recap:

 

goto restartit.cfm , see button.  click button restart.cfm run , cflocation restartit.cfm.  time when clicking on button, not restart server.  click again, , restart server.

 

fyi, not restarting server hosinting page.  different server instance killing different server.

one last thing:

 

cf 8 update 1

iis 6



More discussions in ColdFusion Rich Forms


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい