After clicking on start, value is lost.
What do I do, so that the page has to be reloaded manually?
& lt; Button onclick = "start ()" & gt; Start & lt; / Button & gt;
Start: This is called when the user starts on the setup screen
start the function (reuse) {reuse = (typeof reuse = == 'undefined')? True False; // User input number is readoff question = $ ("# zodiac"). Val (); Time = $ ("# time"). Val (); ShowError = $ ("# showError"). Prop ("check"); ShowCorrect = $ ("# showCorrect"). Prop ("check"); Fullscreen = $ ("#screen"). Prop ("check"); // Current index is the index of current query in the list whereas quiz current index = -1; // Reset correct question correct = 0; Var pred = {place: 1, time: 2, other: 3}; Var _numberOfQuestions = 0; If (reuse) {_data = filteredData; } And {_data = data; } // Filtered according to the screen of the data setup, after filtering it is a new list of questions after filtering [=]; ("($ (" ($ ("$ Ddcl-d1-i" + + ['pad']) PROP ("check"). (If ($ ("#ddcl-d2-i" pred [entry [Pred ']] .prop ("check") {_numberOfQuestions ++; entry [' a '] = _show (entry [' a ']); filtered data push (entry);}} if (_numberOfQuestions $ ("#quotions" ); Hide ($.); $ ("#include");; secondsSlite = time * number; question; doTimer (); Next question (); if (fullscreen end screen; Screening.) {Screenfull.request (document.getElementById ('Container'))}}
I call start
with javascript.
I try to add autopostback = "false"
, but the result remains the same.
You can add the type attribute to the button because they automatically submit forms.
& lt; Button type = "button" onclick = "start ()" & gt; Start & lt; / Button & gt;
No comments:
Post a Comment