www.webdeveloper.com
Results 1 to 3 of 3

Thread: ColdFusion Help

  1. #1
    Join Date
    Oct 2004
    Location
    New York City
    Posts
    4

    ColdFusion Help

    I need to delay the page for 5 seconds before it redirects using

    <cflocation url="index.cfm">

    Does anyone know how I might do that?

    Can I use javascript?

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    It can be done with an HTML meta element.
    Code:
    <meta http-equiv="refresh" content="5;url=http://some_url/page.cfm" />
    Simply alter the URL and place that code in your head section.

    Regards.

  3. #3
    Join Date
    Oct 2006
    Posts
    1
    If you're using MX, you can now use the following lines of code for a 5 second delay:

    <cfobject type="JAVA" name="obj" class="java.lang.Thread" action="CREATE">
    <cfset obj.sleep(5000)>


    -GoatTuber
    www.violentreaction.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles