Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CODE for loading a new URL after 10 seconds (using dreamweaver)

    Hello,

    I'm using dreamweaver and I'm looking for a script code for after sending a form (after submitting it), after 10 seconds the page jumps to an new URL.

    Can you give me a hand on this???


  • #2
    Regular Coder
    Join Date
    Sep 2004
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts
    do u have PHP at ur disposal... i can help u with that with the sleep command
    IF I DID GOOD THROW ME A REP POINT

  • #3
    New Coder
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry i dont....

    I sorted this code out:

    it works fine with a simple page, but how can I change it that it happends after a form is validated and sbmitted?

    Code:
    <html>
    <head>
    <script type="text/javascript">
    <!--
    function delayer(){
        window.location = "../javascriptredirect.php"
    }
    //-->
    </script>
    </head>
    <body onLoad="setTimeout('delayer()', 5000)">
    insted of doing this in the body, where do I have to put it, to happend this after a form is validated and submitted? This is what I have right now about the form:
    Code:
    <form action="mailto:press@avilajet.com" 
    method="post" name="form1" 
    onSubmit="MM_validateForm('Apelido/Nome','','R','Tel Trabalho','','R','Telem&oacute;vel','','R','E-mail','','R','Morada','','R','localidade1','','R','Titulo meio','','R','Morada meio','','R','localidade2','','R');
    return document.MM_returnValue">
    thanks


  •  

    Posting Permissions

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