Lead to a new page when the time is up

Hi guys,.
I managed to get the "Countdown" by using javascript.
I have 2 doubts
1. once the time, say 10 minutes more, I get a pop-up indicating that the time is up. When you press the OK button, what I really need, it's a page-re-direction.
2. the condition that the values that have been seized by the needs of users who will be sent in PDF format without storing in the database

Is it possible, please let me know.

If a question has the answer, it's also ok...

OK, I think that you are missing the call to the javascript timeout function. Replace the function "repeat" with the one below.

function redo() {
  secs--;
  if(secs == -1) {
    secs = 59;
     mins--;
  }

  document.cd.disp.value = dis(mins,secs); // setup additional displays here.
 if((mins == 0) && (secs == 0)) {
    if (window.confirm("Time is up. Click OK now, else you will be disqualified from the test.") ) {
      alert('OKayed');
      doSubmit('SUBMIT');
    }
    else {
       alert ('Cancelled');
       doSubmit('CANCEL');
    }
 } else {
  cd = setTimeout("redo()",1000);
  }

}

CITY

Tags: Database

Similar Questions

  • How to create a new page when the user activates a box?

    I guess this would be a checkbox.  I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given.  So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box.  Thank you.

    Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:

    _page2.addInstance(true);
    

    You can design page 2 with which opposes always desired.

    Hope that helps,

    Niall

  • How can I combine all pages of the site to a new page of the site?

    Hello

    I use Dreamweaver cs4 on a windows pc. I have 12 pages of my site with a spry vertical navigation bar. Whenever I create a new page I then add that to the spry navigation bar. All other pages do not show this new page in the navigation bar. Thus, the spry NAV. must be site wide update. Is it possible to update the spry navigation bar site wide in a few clicks? Is there an easy way of all the other page a link to this new page? I have a rendering template, but all pages on my site are now detached from this model. Whenever I saved the template in an html file to create a new page in the navigation bar was the word inside template, so I just deleted it out of the code. As you can probably I'm pretty new to dreamweaver so any help will be greatly appreciated to say the least. I checked everywhere wherever I can think of for the answer

    Thank you for taking the time to help, dluthier

    Is it possible to update the spry navigation bar site wide in a few clicks? Is there an easy way of all the other page a link to this new page?

    Yes, there are ways to have all the pages to be updated when you make changes to a navigation bar.  However, the way you describe the situation you currently do it all manually.

    The easiest way to update a navigation bar:

    1. the use of serverside includes: this is a basic tutorial explaining what is a SSI and how it's done.

    http://bignosebird.com/SSI.shtml

    2. the other is the use of models - that you tried.

    I have a rendering template, but all pages on my site are now detached from this model. Whenever I saved the template to a file html to create a new page in the navigation bar was the word inside template, so I just deleted it out of the code

    That's where you went wrong, you save the template with a new name, and save it as an html file.  You must use: Create New > model.  This way, you create a new page of the master model and save it in the root of your site - and this is what is called a "page of the child".

    Using DW templates:

    http://www.Adobe.com/devnet/Dreamweaver/templates.html

    The differences between the use of SSIs and DWTs (template file):

    With a SSI file, you make changes to the file and all the pages, the inclusion of which will update automatically and you need only download a SSI whenever you make a page.

    If you use a model, whenever you make a change, once again all children pages are updated, but you need to download * all * changed pages.

    I hope this helps.

    --

    Nadia

    Adobe® Expert community: Dreamweaver

    http://Twitter.com/nadiap

    --------------------------------------------------

    Unique templates CSS | Tutorials | SEO articles

    http://www.DreamweaverResources.com

    http://csstemplates.com.au/

  • Having a problem in DateFormat when the time zone is changed...

    Hi, the following code converts a Date string to a Date which I am able to successfully... The problem I am facing is when I put the Moble zone as the format of Casablance (GMT) and my Format for a Date string is "2009-09-27 03:02:00:00 of" "" then I am to get the hour of the date as "kills Sep 27 03:02:00 GMT 2009", but when the time zone is changed to Canberra, Sydney (+ 10), the Date is "Mon Sep 28 19:37:13 Australia/Sydney 2009"... which is not the correct date in strgin Format ' "» nicely in this matter helps no matter what time zone after the conversion, I should get the date given to a string date... help kindly with respect to thei...

    public static Date getDateTmeFrmStrgFormat(String strDate)
         {
    
             Date date;
             String month,day,year,hour,min,sec;
                         month = strDate.substring(0,strDate.indexOf("/"));
                if(month.length() < 2) month = "0" + month;
    
                strDate = strDate.substring(strDate.indexOf("/") + 1);
    
                day = strDate.substring(0,strDate.indexOf("/"));
                if(day.length() < 2) day = "0" + day;
    
                strDate = strDate.substring(strDate.indexOf("/") + 1);
    
                year = strDate.substring(0,strDate.indexOf(" "));
    
                strDate = strDate.substring(strDate.indexOf(" ") + 1);
    
                hour = strDate.substring(0,strDate.indexOf(":"));
                if(hour.length() < 2) hour = "0" + hour;
    
                strDate = strDate.substring(strDate.indexOf(":") + 1);
    
                 min = strDate.substring(0,strDate.indexOf(":"));
                if(min.length() < 2) min = "0" + min;
    
                strDate = strDate.substring(strDate.indexOf(":") + 1);
    
                sec = strDate;
                if(sec.length() < 2) sec = "0" + sec;
    
                //sec = "00";
                date = new Date (HttpDateParser.parse(year + "-" + month + "-" + day + " " + hour + ":" + min + ":" + sec));
                //date = new Date (HttpDateParser.parse(year + "-" + month + "-" + day + " " + hour + ":" + 00 + ":" + 00)); 
    
                return date;
            }
    

    Like this.  This code is NOT tested, it is presented only to explain the use of the calendar in this situation.

    public static Date getDateTmeFrmStrgFormat(String strDate)     {         String month,day,year,hour,min,sec;         month = strDate.substring(0,strDate.indexOf("/"));         strDate = strDate.substring(strDate.indexOf("/") + 1);         day = strDate.substring(0,strDate.indexOf("/"));         strDate = strDate.substring(strDate.indexOf("/") + 1);         year = strDate.substring(0,strDate.indexOf(" "));         strDate = strDate.substring(strDate.indexOf(" ") + 1);         hour = strDate.substring(0,strDate.indexOf(":"));         strDate = strDate.substring(strDate.indexOf(":") + 1);         min = strDate.substring(0,strDate.indexOf(":"));         strDate = strDate.substring(strDate.indexOf(":") + 1);         sec = strDate;         Calendar cl = Calendar.getInstance();         cl.set(Calendar.YEAR,|Integer.parseInt(year));         cl.set(Calendar.MONTH,|Integer.parseInt(month)-1);         cl.set(Calendar.DATE,|Integer.parseInt(day));         cl.set(Calendar.HOUR_OF_DAY,|Integer.parseInt(hour));         cl.set(Calendar.MINUTE,|Integer.parseInt(min));         cl.set(Calendar.SECOND,|Integer.parseInt(sec));         return cl.getTime();     }
    
  • Auto power of new page to the home page

    I use DW CS4 and have CS5 but have not yet used.  It is tedious when I create a new article to the page history, then he must go to the homepage and create the link and the order of the day for this new page.  Is it possible to create somehow DW so that when I post the new article or page history, the title and a few sentences and a link will be automatically added to the home page for this new page in the history?

    Thank you.

    It would be easy to do if your news page have been data-driven, which means that you have a database containing news items, and the news page simply creates a recordset to display news.  Then, you could do the homepage always draw on the latest issue of news from the database, display the first 150 words as a teaser and a link to the news page to learn more.  This would require access server database and scripts to accomplish.

    There is no way to accomplish such a thing in HTML pages, other than by your manual approach.

  • How can I add a contact to my new folder, when the add new contact button is missing?

    original title: adding new Contacts

    How can I add a contact to my new folder, when the add new contact button is missing?

    Hello

    see if that helps

    http://www.vista4beginners.com/missing-buttons-from-Windows-contacts-toolbar

    http://www.Vistax64.com/tutorials/186477-new-contact-new-contact-group-button-missing.html

  • mobile e-mail from the admin folders. page to a new page to the user.

    How can I move files mail of my admin page to a new page of the user, so that both users can access folders?

    Hello

    Who did you send provider?

    What is a mail on the Web, or you use any e-mail like outlook client?

    What do you mean by new user page? Referring to the new user account?

    If you are making reference to the new user account where you need access to these files and folders, you can try to move your folders in the Public folder.

    The Public folder is a convenient way to share files that are stored on your computer. You can share files in this folder with other people using the same computer and with people using other computers on the same network. Any file or folder you put in the folder Public is automatically shared with the people who have access to your Public folder.

    For more information about public folders, you can see the article below.

    Sharing files with the Public folder
    http://Windows.Microsoft.com/en-us/Windows-Vista/sharing-files-with-the-public-folder

    Let us know if this helps

    Concerning
    Anthony.

  • How to move to a new page on the click of a button?

    I use actionscript to develop a simple application and I'm new to application development. I don't know how to move to a new page on the click of a button. I need to go back to the old page as well. Kindly help me. The date deadline is almost.

    Welcome to the Forums Supprt.

    If you create your view that the enlargement of the Sprite class, you need to use addchild(), to remove the screen use removechild().

    // to add
    var sp : Sprite = new Sprite() ;
    addChild(sp) ;
    
    //to remove
    removeChild(sp) ; 
    
  • How to push a new page after the current pop page

    Hi all

    Is it possible for me to push a new page after the current page to burst?

    For example, main.qml I push page1.qml push page2.qml and pop page1.qml? (so the left in the stack are main.qml-> page2.qml)

    Can any ideas on how I do this?

    Thanks in advance.

    Of course! :-)

    You can use the NavigationPane remove() function...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__navigationpane.html#function...

  • BlackBerry Smartphones can visit the web page when the radio is off

    I installed NetworkAcc on my BlackBerry Storm 9530 with OS c. 5
    and now I can't use my web browser. I get the error message:
    "Cannot see the web page when the radio is off, please turn radio".
    on and try again. »

    I don't have any idea how to enable or disable the radio. What is the problem and
    How should I do?

    I'm not familiar with "NetworkAcc" but to turn on your wireless radio, you need to go to 'Manage connections' and check the Mobile network (and also wifi or bluetooth if you want to use wifi or bluetooth.)

  • Insert the new page to the Clipboard - landscape

    I would like to insert a new page in the Clipboard into an existing PDF.

    Through Page thumbnails-> insert Pages-> results of the Clipboard into a page portrait, not landscape.

    I looked everywhere, but couldn't find a way to insert a landscape page.

    Maybe it is not possible at all?

    Acrobat Pro XI

    SnagIt-04082013 073247.jpg

    Thank you.

    =

    All the methods of creating dynamic pages use the settings "create PDF from Web Page".

    Pages > insert more Options > create a PDF file of the Web Page > settings > Page Layout, change the choice and exit the dialog box.

  • Turn on the new machine when the old disk machine broke down?

    Turn on the new machine when the old disk machine broke down? What happens if I give you a demo on my laptop, that laptop goes down and I need to revisit my laptop back after a quick reinstall? What should I call? Or cela just re - turn on and off automatically a previous version?

    You will be prompted with a disabling dialog box when you try to do a third activation.

  • IE7 freezer when you navigate to a new page on the Satellite A215-S4697

    Hello

    I just bought an A215-S4697 three days ago. Love the computer so far, except for one question. Every so often, my internet explore freezes when navigating to a new page or by clicking on a link. Can I open another IE window when that happens, but I have to use Ctrl-Alt-Del to close the trial.

    If anyone has had a similar problem and know how to fix? I think maybe one of the programs of Toshiba is the cause, but that's just a guess.

    I read somewhere about software of fingerprint reader update which fixes a similar problem, but my machine doesn't have a fingerprint reader.

    Any help would be appreciated. Thank you.

    Hmmm, I also read on the issue of Internet Explorer and the software of fingerprint authentication.
    Found this
    http://support.toshiba-tro.de/KB0/TSB6701I80004R01.htm

    An update of the software of fingerprint authentication helped solve the freezing of EI.

    But as you say, this software is not installed on your Satellite.
    In your case, I recommend reinstall Internet Explorer on your computer. Maybe it helps.

    PS; Have you tried to use the internet browser Firefox?

  • Open a new window when the connection to another page in the application

    I have an Apex 4.2 existing application that uses buttons to direct users to other pages in the application

    Users want to be able to open a second (or possibly) 3rd window or perhaps a second tab

    Is there a way to code?

    Sure using good old Javascript.

    Set the URL, then type:

    JavaScript: window.open('f?p=APP_ALIAS:PAGE_ID:&SESSION.')

  • reveal the pages when the box is checked?

    Hello

    I'm used to Acrobat Pro but new to LiveCycle. I need to hide several pages on a form until a user selects a check box. IE / user clicks on ' [x] category 1 ' and the page that contains the category content appears. If the user disables the check box, the page is hidden. IE / user erases [] category 1 and the page with the content disappears from the screen of the user.

    \i think it is called "revealing the page", but I'm not sure. Can someone point me in the right direction please?

    Thank you!

    Well, since I answered my own question, I thought I'd put the answer here just in case someone else can use it.

    First of all, some grumbling on LiveCycle: (you have to put up with this because this product is horrible and I had to pay a fortune to use...)

    • At that time, why pc only? I need only this one tiny but crucial function but was forced to borrow a pc and then buy a pc only (+ $ 300) software that I will use no doubt once again. All this should be feasible in Acrobat Pro with some scripts. (If your Google skills are best mine and you will find an answer, then please share it here and save the lives of others, the pain and the cost...)
    • Why is there a contempt of all feeling accepted, standard shortcuts - keyboard, mouse, and other methods of investment? Where is the ability to drag the guides of the leaders? Why can't hold the SHIFT key CTRL when dragging a form object to keep things lined up? BTW, ALT is how this copy - drag should be done - not CTRL. Where are the guides? Why, when I target an object in the generator of Actions I must scroll manually or collapse laboriously each page in the menu tree to obtain further to the bottom of the list? What a waste of my precious time and now unprofitable on this project.
    • I spent nice hours of creation of documents of approved customer in InDesign, only to discover that LiveCycle could not import my work in a way that preserves my layout, causing me to have to rebuild all my form elements. We are talking here of 9 documents and nearly 150 pages of provision of pain-staking, which had to be redone. And don't tell me that I should have used LiveCycle first. It should have been much more homogeneous than it was.

    Seriously, this product is expensive, not exhaustive, no standard compliant, similar to the use of Windows 95 in ways that no sane person should have to endure, but only pay for and put up with in 2014. Yes, Adobe high priests, I have in vain talk, knowing that this will fall indifferent, one ear deaf.

    OK - so here's the answer to my question. In summary, the steps to hide/reveal pages based on the user checking or unchecking a box are:

    1. Create the box by dragging the library of objects "Checkbox. Enter the question text and make sure that data binding name is unique for each instance. Let's say that all the elements of the box are on page 2 of the document. When the user selects the first box, three page turns. So, for this box, name it something like "CheckBox_Page3". Others would be called "CheckBox_Page4", "CheckBox_Page5" and so on.
    2. Select the first checkbox (let's stick with CheckBox_Page3 as our example.) and then right-click, choose Actions => add an Action (or Action change if there is an action already). The Action Builder dialog opens.
    3. I'm going to need two actions for each check box. One who says, 'If this box is cleared, then the page is hidden' and the other who said: "If this box is checked, then the page is visible." The Condition value: 'When the CheckBox_Page3 box is deselected' and the result of: show or hide a [HIDDEN] object. Then scroll down and select Page 3 in the left column.
    4. Set the action of the second so that the Condition is: "When the CheckBox_Page3 checkbox is selected" and the result of: "show or hide an object [VISIBLE]. Then scroll down again to select the Page 3.
    5. Browse all your boxes until all pages are put in place with a hidden/unchecked and checked/visible configuration.
    6. The last thing to do is to select all of the pages that will be hidden/shown in the left column. When this list is selected, visit the subform tab. Presence of the article and choose from the list: "Hidden (exclude from layout)." Now, the document will open with the appropriate, pages hidden from view, until the user selects the corresponding check box.

    Save OFTEN. Test carefully and on multiple platforms. Good luck.

    -Pete

Maybe you are looking for