Posts

Showing posts from December, 2011

code similar to cflocation which gives a pop up message

<html> <head> <script type="text/javascript"> var t = 1000; function display() { var msg = confirm("activity is successful without attachment"); if (msg) location.href="http://shemy-coldfusion.blogspot.in"; else location.href="http://www.google.com"; } </script> </head> <body onLoad="javascript:setTimeout('display()', t);"> </body> </html>

Progress Bar in coldfusion

<html>     <head>         <script>             function init()                 {                      ColdFusion.ProgressBar.start("pb")                }         </script>     </head>     <body>         <h2>Processing....</h2>         <cfprogressbar name="pb" duration="5000" interval="20" width="300" />         <cfset ajaxOnLoad("init")>     </body> </html>

Code to find the number of functions in the current coldfusion version

<cfset fList = GetFunctionList () > <cfoutput> # StructCount ( fList ) # functions </cfoutput>< br > <cfloop collection = "#fList#" item = "key" >       <cfoutput> #key# < br ></cfoutput> </cfloop>