Online Quiz

Hello,
Ive made an online quiz. There is a timer to time out the questiona and go to the next question after 30secs, but it does not go to the next question automatically. The code is here:
<%@ Import Namespace="System.Xml" %>
<script language="VB" runat="server">
'Relative file path to XML data
Dim strXmlFilePath as String = Server.MapPath("quiz.xml")
Dim xDoc as XmlDocument = New XmlDocument()
Dim intTotalQuestion as Integer
Dim intQuestionNo as Integer = 1
Dim intScore as Integer = 0
Dim arrAnswerHistory as new ArrayList()
Sub Page_Load(src as Object, e as EventArgs)
          'Load xml data
          xDoc.Load(strXmlFilePath)
          'Start a new quiz?
          If Not Page.IsPostBack Then
                    'Yes! Count total question
                    intTotalQuestion = xDoc.SelectNodes("/quiz/mchoice").Count
                    'Record start time
                    ViewState("StartTime") = DateTime.Now
                    ShowQuestion(intQuestionNo)
          End If
End Sub
Sub btnSubmit_Click(src as Object, e as EventArgs)
          'Retrieve essential variables from state bag
          intTotalQuestion = ViewState("TotalQuestion")
          intQuestionNo = ViewState("QuestionNo")
          intScore = ViewState("Score")
          arrAnswerHistory = ViewState("AnswerHistory")
          'Correct answer?
          If rblAnswer.SelectedItem.Value = ViewState("CorrectAnswer") Then
                    intScore += 1
                    arrAnswerHistory.Add(0)
          Else
                    arrAnswerHistory.Add(rblAnswer.SelectedItem.Value)
          End If
          'End of quiz?
          If intQuestionNo=intTotalQuestion Then
                    'Yes! Show the result...
                    QuizScreen.Visible = False
                    ResultScreen.Visible = True
                    'Render result screen
                    ShowResult()
          Else
                    'Not yet! Show another question...
                    QuizScreen.Visible = True
                    ResultScreen.Visible = False
                    intQuestionNo += 1
                    'Render next question
                    ShowQuestion(intQuestionNo)
          End If
End Sub
Sub ShowQuestion(intQuestionNo as Integer)
          Dim xNodeList as XmlNodeList
          Dim xNodeAttr as Object
          Dim strXPath as String
          Dim i as Integer
          Dim tsTimeSpent as TimeSpan
          strXPath = "/quiz/mchoice[" & intQuestionNo.ToString() & "]"
          'Extract question
          lblQuestion.Text = intQuestionNo.ToString() & ". " & xDoc.SelectSingleNode(strXPath & "/question").InnerXml
          'Extract answers
          xNodeList = xDoc.SelectNodes(strXPath & "/answer")
          'Clear previous listitems
          rblAnswer.Items.Clear
          For i = 0 to xNodeList.Count-1
                    'Add item to radiobuttonlist
                    rblAnswer.Items.Add(new ListItem(xNodeList.Item(i).InnerText, i+1))
                    'Extract correct answer
                    xNodeAttr = xNodeList.Item(i).Attributes.ItemOf("correct")
                    If not xNodeAttr is Nothing Then
                              If xNodeAttr.Value = "yes" Then
                                        ViewState("CorrectAnswer") = i+1
                              End If
                    End If
          Next
          'Output Total Question
          lblTotalQuestion.Text = intTotalQuestion
          'Output Time Spent
          tsTimeSpent = DateTime.Now.Subtract(ViewState("StartTime"))
          lblTimeSpent.Text = tsTimeSpent.Minutes.ToString() & ":" & tsTimeSpent.Seconds.ToString()
          'Store essential data to viewstate
          ViewState("TotalQuestion") = intTotalQuestion
          ViewState("Score") = intScore
          ViewState("QuestionNo") = intQuestionNo
          ViewState("AnswerHistory") = arrAnswerHistory
End Sub
Sub ShowResult()
          Dim strResult as String
          Dim intCompetency as Integer
          Dim i as Integer
          Dim strXPath as String
          Dim tsTimeSpent as TimeSpan
          tsTimeSpent = DateTime.Now.Subtract(ViewState("StartTime"))
          strResult  = "<center>"
          strResult += "<h3>Quiz Result</h3>"
          strResult += "<p>Points: " & intScore.ToString() & " of " & intTotalQuestion.ToString()
          strResult += "<p>Your Competency: " & Int(intScore/intTotalQuestion*100).ToString() & "%"
          strResult += "</center>"
          strResult += "<h3>Quiz Breakdown:</h3>"
          For i = 1 to intTotalQuestion
                    strXPath = "/quiz/mchoice[" & i.ToString() & "]"
                    strResult += "<b>" & i.ToString() & ". " & xDoc.SelectNodes(strXPath & "/question").Item(0).InnerXml & "</b><br>"
                    If arrAnswerHistory.Item(i-1)=0 Then
                              strResult += "<font color=""green""><b>Correct</b></font><br><br>"
                    Else
                              strResult += "<b>You answered:</b> " & xDoc.SelectNodes(strXPath & "/answer[" & arrAnswerHistory.Item(i-1).ToString() & "]").Item(0).InnerXml & "<br>"
                              strResult += "<font color=""red""><b>Incorrect</b></font><br><br>"
                    End If
          Next
          lblResult.Text = strResult
End Sub
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
          $(".chp1").click(function(){
          $(".quizlist1").slideToggle("slow");
          $(".chp2").click(function(){
          $(".quizlist2").slideToggle("slow");
    $(".chp3").click(function(){
          $(".quizlist3").slideToggle("slow");
    $(".chp4").click(function(){
          $(".quizlist4").slideToggle("slow");
    $(".chp5").click(function(){
          $(".quizlist5").slideToggle("slow");
    $(".chp6").click(function(){
          $(".quizlist6").slideToggle("slow");
    $(".chp7").click(function(){
          $(".quizlist7").slideToggle("slow");
    $(".chp8").click(function(){
          $(".quizlist8").slideToggle("slow");
</script>
<script type="text/javascript">
var sec = 30;   // set the seconds
var min = 00;   // set the minutes
function countDown() {
  sec--;
  if (sec == -01) {
    sec = 59;
    min = min - 1;
  } else {
   min = min;
if (sec<=9) { sec = "0" + sec; }
  time = (min<=9 ? "0" + min : min) + " min and " + sec + " sec ";
if (document.getElementById) { theTime.innerHTML = time; }
  SD=window.setTimeout("countDown();", 1000);
if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      func();
addLoadEvent(function() {
  countDown();
</script>
<html>
<head>
<title>Dhruv Asher | Chemistry Quiz</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="quiz.css">
</head>
<body>
<div align="center" style="background-color:#333">
  <div class="wrapper">
    <div class="innerwrapper">
      <div class="header">
      <a href="http://crazypencilmedia.com/da.html"><img src="images/DA.png" style="width:264px; height:75px; float:left"></a>
      <a id="home" href="/da.html" title="Home"><span></span></a>
      <a id="about" href="#" title="About Me"><span></span></a>
      <a id="Courses" href="/courses.html" title="Courses Offered"><span></span></a>
      <a id="Forum" href="#" title="Forums"><span></span></a>
      <a id="Gallery" href="/images.html" title="Image/Video Gallery"><span></span></a>
      <a id="Students" href="#" title="Students Page"><span></span></a>
      <a id="contact" href="#" title="contact Page"><span></span></a>
      </div>
      <div class="container">
        <div class="quiz"> <span id="QuizScreen" runat="server" style="text-align:center">
          <form runat="server">
            <div class="headingq">CHEMISTRY QUIZ</div>
            <br/>
            <div class="containerq">
            <div class="instructions">Instructions: <br />
              1. There are 30 questions for 30 marks.<br />
              2. You have 30 seconds for each question.<br />
              3. After you have answered the question, please click on the next button to continue. <br />
              4. Print out a copy of the marksheet for submission. <br />
              <br />
              Time Left: <span id="theTime" class="timeClass"></span><br /><br/>
            <asp:label id="lblQuestion" runat="server" />
            </b><br>
            <div style="padding-left:40px;">
              <asp:radiobuttonlist
               id="rblAnswer"
                     RepeatDirection="vertical"
                     TextAlign="right"
                     RepeatLayout="table"
                     runat="server" />
              <br>
              <asp:requiredfieldvalidator
                     ControlToValidate="rblAnswer"
                     ErrorMessage="Please pick an answer!"
                     runat="server" />
              <br>
            </div>
            <div class="submit">
              <asp:button id="btnSubmit" class="button" text="  Next  " onClick="btnSubmit_Click" runat="server" />
            </div>
            <div class="footerq">Total No. of questions:
              <asp:label id="lblTotalQuestion" runat="server" />
                     Time spent:
              <asp:label id="lblTimeSpent" runat="server" />
            </div>
          </form>
          </span> <span id="ResultScreen" runat="server">
          <asp:label id="lblResult" runat="server" />
          </span> </div>
      </div>
  </div>
</div>
<div class="footer">
  <div style="float:left; font-size:15px; color:#FFF; margin-top:10px; margin-left:5px;"><img src="images/copy.png" width="10px" height="10px;"> 2011. Dhruv Asher. All Rights Reserved.</div>
  <div style="float:right; font-size:15px; color:#FFF; margin-top:10px; margin-right:5px;">Site Maintained by <a href="http://www.crazypencilmedia.com">Crazy Pencil Media</a></div>
</div>
</div>
</div>
</div>
</body>
</html>
Please Help

You would probably do much better posting this question on the Dreamweaver Applications Development forum -
http://forums.adobe.com/community/dreamweaver/dreamweaver_development

Similar Messages

  • Instant results from online quiz

    I am trying to figure out how to create a online quiz/survey where I provide a question, then when you answer you need to fill out a registration for with contact information and then be brought to a graph of how you did against everyone else who answered the quiz.   Can these forms do it or what would you suggest to do this?

    Sorry we do not support showing comparaison graph after a submission. You can show the published summary report (overall report of all responses received so far) right after the submission but that's about it.
    For this you will need a paid subscription, publish the Summary Report and then use the redirct feature after the submission to show the report.
    Gen

  • Highlight correct answer in online Quiz

    If this shows up twice my apologies but it looked like my post was not going through.
    I am putting together an online quiz in FrontPage using JavaScript to calculate the score. There is a button at the end of the quiz that invokes the JavaScript that will calculate the score. This works great. But, I would like it to also highlight the correct answer for each question. The following is the if statement used in the javascript to calculate the score:
    if(document.quizform.Q1.checked) { score += parseInt(document.quizform.Q1[i].value);}
    Is there something I could add to this statement to also have it highlight the text of the answer for the question? Any help will be greatly appreciated. TIA!

    I noticed a few weeks ago that the first result for "Java" on http://www.googlism.com (which is currently down) is:
    Java is not Javascript.It can be seen in Google's cache of the site.

  • QUESTION FOR QUIZ APPLICATION

    Hi friends,
    While, i was developing code for quizgo.php, as part of
    online quiz/test application, i am facing following problems
    along-with the checklist to be succeeded:-
    Objective: Show each question
    one-by-one from query results (first 30 recorded selected) -
    What could be the most suitable code to achieve this task?
    Objective: User will be engaged with
    3 interface buttons/hyperlinks, but 2 will be available at a time.
    Explanation: [btnHint] = if user clicks the button will show
    hidden textarea/textbox to view associated hint with the question.
    [btnAnswer] = (1) Saves users' answer into database (table
    name: test_history) - either correct or incorrect, (2) then move to
    next question/record, until, user reach at 2nd last question.
    [btnResult] = This button will function as [btnAnswer] will
    do, but it will be visible at last record only. Moreover, after
    saving user response in database, it will redirect to result.php
    page. -
    Dear, please help me for code that will function at desired
    pattern.
    Regards

    Object [] aa= JRadioButton1.getSelectedObjects();aa will be null if radio is not selected. otherwise its length will be 1, containing the label (probably).
    or you can use isSelected() prop to check.
    Message was edited by:
    AmitavaDey

  • Quiz maker!!

    Hi,
    I'm currently in the process of creating an online quiz for students as a revision aid.
    I have started programming using NLP and using tokenisers in order to recognize the form of question! and have been able to make a question.
    I now need some help on how to answer the question, display the results and calculate the marks.
    Would be grateful for any help received,
    Regards
    Zinna

    The question will use a subsitute for itsanswer!
    e.g the form i am currently using is- is - predicte
    Therefore, what is predicate?
    Answer: subject!Sorry, but I don't get that one. Especially sincethe predicate is "is".
    Anyway, still the same design.No sure how you got that 'the predicate is "is"'.
    But, I read zinna's post as:
    "Washington, D.C." is "the capital of the U.S.".
    Subject is "Washington, D.C.". Predicate is "the
    capital of the U.S."
    Question ("What is predicate?"): What is the capital
    of the U.S.?
    Answer ("Subject"): "Washington, D.C."That is exaclty what i mean, thats the from i will use!

  • Store Quiz's Answers

    Hey guys, I am doing a online quiz using Adobe Captivate 3. I
    would like to store the questions and answers of the quiz that the
    user has input in the database...or save the swf.file that contains
    the user input and results of the quiz. Lastly, I need a print
    button for the user to print his score results after he has
    finished the quiz. Is there anyway i can do it??? Please
    help..thank in advance

    Welcome to our community, junquan
    Perhaps the following links will help.
    Link
    one - Printing
    Link
    two - Printing
    Link
    three - Storing scores
    Cheers... Rick

  • Store Quiz's answers /AdobeCaptivate3

    Hey guys, I am doing a online quiz using Adobe Captivate 3. I
    would like to store the questions and answers of the quiz that the
    user has input in the database...or save the swf.file that contains
    the user input and results of the quiz. Lastly, I need a print
    button for the user to print his score results after he has
    finished the quiz. Is there anyway i can do it??? Please
    help..thank in advance

    This question has been cross-posted to two different forum
    categories. Please direct any replies to where the question was
    first asked. You may do this by
    clicking
    here.

  • Online Quizzes

    Hello,
    The software company I work for is thinking of generating
    online quizes for new users. We want to create a training and
    certification program. Each training video and quiz will also be
    linked to their corresponding help topics in RoboHelp. We generate
    WebHelp output.
    Any advice or experiences with quizes? We're thinking of
    trying Captivate, Camtasia, Authorware, Adobe Connect, and Flash.
    Thanks in advance. - Nick

    Hi Nick
    Well, keeping in mind that I'm a bit biased, as I make my
    living teaching folks how to use RoboHelp and Captivate, I
    naturally gravitate toward Captivate for this purpose.
    Cheers... Rick

  • Getting values from radio buttons in jsps

    i am doing online quiz. i have a problem with radio buttons
    <input type =radio name="a" value="opone"> x
    <input type =radio name="a" value="optwo"> y
    <input type =radio name="a" value="opthree"> z
    i what to get the values from the radio button
    so i have used
    request.getParameter("a");
    so i am not getting proper output (x or y or z) here
    i got what ever i have selected value ie opone or optwo or opthree here but not xor y or z.
    can u please help me

    <input type =radio name="a" value="x"> x
    <input type =radio name="a" value="y"> y
    <input type =radio name="a" value="z"> z
    There you go. The value is what is actually submitted, what you print outside of the radio button is just visible content.

  • Using ajax/servlets, different behaviour with different systems

    I have written a small web application using servlets and ajax. I used the tomcat bundled with netbeans for deploying it. In the front end I create a timer which keeps running. I also have a form containing a paragraph that displays a question, followed by radio buttons and two buttons - a next and a submit. When I click the next button, I call a javascript function that creates an xmlHttp Object and sends the request for the next question and options from the servlet. when I request I also pass what the user has selected for the current question. when the timer reaches twelve or the user has finished attending all questions, the function would request for score through another xmlHttp Object. This program works fine in my computer. I also installed another tomcat server and ran it on another port and tested it. It works fine. But when I ran it college, the page was not displayed properly. When I click an option the contents of the form moves and only when I click the Next button twice, the corresponding javascript function is called.
    I am pasting the html file and the servlet. What could be the reason?
    This is qns.html
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    //styles
        <script type ="text/javascript">
            <!--
            var no_of_qns = 2;
            var s = 1;
            var m = 0;
            var h = 0;
            var jsqno = 0;
            var flag = 0;
            var jsnds;
            var jmin;
            var sid;
            var cont;
            var oldhtml;
            function load(){
                cont = document.getElementById('container');
                oldhtml = cont.innerHTML;//backup the content to display it after the user accepts the rules
                var ins = "<ul><li>You have to complete 30 qns in 30 mins</li><li>Click finish to quit</li><li>All the best</li></ul>";
                cont.innerHTML = "<p style =\" text-align: center; font-size : 17px \">Instructions</p>"+ins+"<form action=\"javascript:funct()\"><input type=\"submit\" value = \"I have read the instructions\"></form>";
            function funct(){
                    //alert('why?');
                    cont.innerHTML = oldhtml;//replace back the question after user has accepted to the terms and conditions.
                    sid = setInterval("updateClock()",1000);
                    ajaxFunction(0);
            function ajaxFunction(chz)
                jsnds = document.getElementById('snds');
                jmin = document.getElementById('min');
               var back;
                var ans = 'arunkumar c';
                try
                    var xmlHttp=new XMLHttpRequest();
                catch (io)
                    alert("Your might be using IE or your browser does not support AJAX!.");
                    return false;
                xmlHttp.onreadystatechange=function()
                    if(xmlHttp.readyState==4)
                           // Get the data from the server's response
                           back = xmlHttp.responseText;
                           if(flag == 0){
                                var values = back.split("|");
                                document.getElementById("question").innerHTML=values[0];
                                document.getElementById("choicea").innerHTML=values[1];
                                document.getElementById("choiceb").innerHTML=values[2];
                                document.getElementById("choicec").innerHTML=values[3];
                                document.getElementById("choiced").innerHTML=values[4];
                                return true;
                                else{
                                    //alert('what');
                                    document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
                if(uform.choice[0].checked == true){
                    ans = document.getElementById("choicea").innerHTML;
                else if(uform.choice[1].checked== true){
                    ans = document.getElementById("choiceb").innerHTML;
                else if(uform.choice[2].checked == true){
                    ans = document.getElementById("choicec").innerHTML;
                else if(uform.choice[3].checked == true){
                    ans = document.getElementById("choiced").innerHTML;
                if(chz == 1){
                    jsqno = no_of_qns;
                if(jsqno == no_of_qns)
                    clearInterval(sid);
                     //alert(clearInterval(sid));
                     flag = 1;
                jsqno = jsqno + 1;
                var url = "http://localhost:8084/OnlineApti/test";
                url = url+"?qno="+jsqno+"&ans="+ans;
                //alert(url);
                xmlHttp.open("GET",url,true);
                xmlHttp.send(null);
            function updateClock(){
                //alert('why');
                s++;
                jsnds.innerHTML=" "+s;
                if(s == 60){
                    m++;
                    s = 0;
                    jmin.innerHTML =" "+m;
                //alert("http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final");
                if(m == 30){
                    alert ('The quiz is over!! You failed to complete it within the time limit');
                    var xmlHttp;
                    try
                        xmlHttp=new XMLHttpRequest();
                    catch (io)
                        alert("Your might be using IE or your browser does not support AJAX!.");
                        return false;
                    xmlHttp.onreadystatechange=function()
                        if(xmlHttp.readyState==4)
                            var back = xmlHttp.responseText;
                            document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
                    xmlHttp.open("GET","http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final",true);
                    xmlHttp.send(null);
                    clearInterval(sid);
      //-->
      </script>
      </head>
      <body onload="load()">
        <div class="top">
         <h1>Welcome to Online Quiz</h1>
        </div>
        <div class="main" id="container">
            <form name ="uform" action="javascript:ajaxFunction(1)">
            <table cellpadding ="5" cellspacing ="20">
                <thead></thead>
                <tbody>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td align="right">
                            <p style="text-align:right" id="clock">Time: 0:<span id="min">0</span>:<span id ="snds">0</span></p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <p id="question"></p>                 
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="radio" name ="choice"><span id="choicea"></span>
                        </td>
                        <td>
                            <input type="radio" name ="choice"><span id="choiceb"></span>
                        </td>
                        <td>
                            <input type ="radio" name ="choice"><span id="choicec"></span>
                        </td>
                        <td>
                            <input type ="radio" name="choice"><span id="choiced"></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type ="button" value ="Next" name ="nxt" onclick="ajaxFunction(0)">
                        </td>
                        <td colspan="2">
                            <input type = "submit" value ="Finish">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
        </div>
      </body>
    </html>
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.lang.*;
    * @author arun
    public class test extends HttpServlet {
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
            Connection con;
            int marks = 0;
            StringBuffer qn;
            int qno;
            String prevAns = "wow";
            String choice = new String();
            //To be updated based upon the number of questions!!
            int no_of_qns = 2;
        public void init(ServletConfig config) throws ServletException {
            try {
                Class.forName("org.gjt.mm.mysql.Driver");
                con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql", "root", "");
                Statement qry;
                qry = con.createStatement();
                qry.executeQuery("use login;");
            } catch (Exception io) {
                System.out.println(io);
                System.exit(0);
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            qn = new StringBuffer();
            try {
                Statement qry;
                qry = con.createStatement();
                qno = Integer.parseInt(request.getParameter("qno"));
                choice = request.getParameter("ans");
                if(prevAns.equalsIgnoreCase(choice)){
                      marks++;               
                if(qno == (no_of_qns +1)){
                    out.println(marks);
                    marks = 0;
                String qryString = "select * from questions where questionno="+qno+";";
                ResultSet rs = qry.executeQuery(qryString);
                while(rs.next()){
                    qn.append(rs.getString(1));
                    qn.append(") "+rs.getString(2));
                    qn.append("|"+rs.getString(3));
                    qn.append("|"+rs.getString(4));
                    qn.append("|"+rs.getString(5));
                    qn.append("|"+rs.getString(6));
                    prevAns =rs.getString(7);
                out.println(qn.toString());
            catch(SQLException io){
                System.out.println(io);
            finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }What might be the problem?
    Edited by: carunkumar on Oct 4, 2008 8:21 AM

    carunkumar wrote:
    function ajaxFunction(chz)
    jsnds = document.getElementById('snds');
    jmin = document.getElementById('min');
    var back;
    var ans = 'arunkumar c';
    try
    var xmlHttp=new XMLHttpRequest();
    catch (io)
    alert("Your might be using IE or your browser does not support AJAX!.");
    return false;
    }First thing is that the Ajax request you are building is not browser specific.
    Go to this site it will give you the specific code www.tizag.com/ajaxTutorial/
    And do try and test your program on diff browser from your pc only. Its a ajax world so be careful while dealing with browsers
    and there settings. Just check your browser setting on your pc and check the same setting at your college also.
    Buddy this ajax give a trick in big presentation also :) So no need to worry and test it and do it, its real fun when you just
    cross this browser secific dependencies.
    Cheers
    Sachin Kokcha

  • Can anyone solve this problem

    hello everybody,
    i am trying to write a online quize, and for that i used backend access and front end as servlet/jsp with
    tomcat server,
    and my program is working very efficiently on same computer, but when there are more than 15 or 10 to computer to access quize it goes
    to long sleep to access next question (my page is one question in each page).
    what to do for fast access or speed up for next question
    can i used backend as mysql
    or
    anyother problem

    Verify whether you have hardcoded "localhost" in any of your code. Also adding debugging statements helps narrow down the problem.
    Amar.

  • Timer In Web Dynpro ABAP

    Hello,
    Please help in creation of  Count Down Timer for Online Test Application in Web Dynpro ABAP.
    Thanks,
    Sandeep Bhati

    Hi Sandeep,
    You can achieve your requirement as below
    Create context attributes TIME_LEFT  of type TIMS & DELEY of type I
    Create a text view eleemnts to show the time left value and
    Create a TIMED_TRIGGER ui element  and bind the property delay to the context attribute DELEY and create an action REFRESH, bind it to the event onAction
    Set the initial values of context attributes TIME_LEFT & DELAY like below
                        TIME_LEFT = '01:20:00'
                        delay            = 1
    Hence, timer ui element refresheshes each second and you can reduce the value of TIME_LEFT by 1 second to see on application
    You can also refer the below links
    Online quiz time counter in webdynpro?
    also, refer the standard component WDR_TEST_EVENTS and go the view TIMEDTRIGGER
    Hope this helps you.
    Regards,
    Rama

  • Help Needed on this ASAP!

    need urgent solution to this ASAP...thanks kind hearted fellows
    build an online quiz/questionaire wherein the user tests his knowledge base by
    solving a number of questions.the question will be of multiple choice type such that
    there is only one timer to monitor the time taken by the user, which will also
    automatically redirect the user to the next question if the time limit for each
    question is exceeded.the questions for the quiz along with the answers for the quiz
    would be typically stored in a database and would be accessed one at a time by the
    application.At the end of the quiz ,the score is to be calculated based on the
    performance of the user and is to be displayed.
    *The core software to be used for the development will be based on the Java 2
    platform and its APIs.
    *The approach towards solving the problem must be object oriented.
    *Data for the quiz must exist in an external data source and must be retreived using
    DBMS suc as SQL server.(i.e JDBC API)
    *Multithreading features can be used to implement the timer.

    It looks like someone put off doing his project, then when he looked at it had no friggin idea where to even start. I mean, this looks like an interesting project. I wonder what level course it's for.
    ps I'll do it for only $125 an hour, plus expenses.
    SE*

  • InfoQuiz 2007 - Win 50 K INR - Registrations ends in 72 hours!

    Hi,
    Welcome to ISiM InfoQuiz 2007 - Organized by International School of Information Management, University of
    Mysore
    Participate in InfoQuiz 2007 and win upto 50K INR
    Open for all Students and Professionals
    Winners get 40K INR
    Runners take home 10K INR
    Many more gifts and goodies
    Prizes Sponsored by rediff.com
    Registration is Free
    Quiz theme comprises of Computer Science & Engg, Information Science
    and Engg, Knowledge Management, Information Management, Data Mining and Data
    Engg.
    --> For details and Online Registration
    --> visit http://www.isim.ac.in
    Date Line-
    Registration : Apr 13-27 (Ends at 1700hrs IST on April 27)
    Online Quiz : Apr 28 (From 1100 to 1200 hrs IST)
    Top 6 Scorers of online quiz will qualify for stage quiz.
    Stage Quiz : May 3 in Bangalore (Venue to announced shortly)
    All the travel expenses of the qualified candidates
    would be borne by ISiM
    InfoQuiz 2007 is Powered by gyanX
    Please feel free to forward this to your students, friends, colleagues and
    relatives
    Enquires
    1. Angrosh : 9886970411
    2. Vikram : 9886793701
    Email: [email protected]
    M. A. Angrosh
    Project Manager
    International School of Information Management
    University of Mysore, Manasagangotri
    Mysore - 570 006
    Tel: +91-821-2514699; Fax: +91-821-2519209
    Email: [email protected]
    website: www.isim.ac.in

  • InfoQuiz 2007- Win 50K INR - Registration ends in 72 hours

    Hi,
    Welcome to ISiM InfoQuiz 2007 - Organized by International School of Information Management, University of
    Mysore
    Participate in InfoQuiz 2007 and win upto 50K INR
    Open for all Students and Professionals
    Winners get 40K INR
    Runners take home 10K INR
    Many more gifts and goodies
    Prizes Sponsered by rediff.com
    Registration is Free
    Quiz theme comprises of Computer Science & Engg, Information Science
    and Engg, Knowledge Management, Information Management, Data Mining and Data
    Engg.
    --> For details and Online Registration
    --> visit http://www.isim.ac.in
    Date Line-
    Registration : Apr 13-27 (Ends at 1700hrs IST on April 27)
    Online Quiz : Apr 28 (From 1100 to 1200 hrs IST)
    Top 6 Scorers of online quiz will qualify for stage quiz.
    Stage Quiz : May 3 in Bangalore (Venue to announced shortly)
    All the travel expenses of the qualified candidates
    would be borne by ISiM
    InfoQuiz 2007 is Powered by gyanX
    Please feel free to forward this to your students, friends, collegues and
    relatives
    Enquires
    1. Angrosh : 9886970411
    2. Vikram : 9886793701
    Email: [email protected]
    M. A. Angrosh
    Project Manager
    International School of Information Management
    University of Mysore, Manasagangotri
    Mysore - 570 006
    Tel: +91-821-2514699; Fax: +91-821-2519209
    Email: [email protected]
    website: www.isim.ac.in

Maybe you are looking for

  • Urgent: Publisher scheduling error while FTP

    Hi team, i m trying to ftp a file on one of the windows server via Publisher.But i get this error. oracle.apps.xdo.servlet.scheduler.ProcessingException: java.lang.StringIndexOutOfBoundsException      at oracle.apps.xdo.servlet.scheduler.XDOJob.deliv

  • How to get the "delete" check box back?

    Hi Guys, I just used the "Migrate to Interactive Report" feature. After doing so, the check box is gone that is used to indicate rows to delete. A copy of the region is marked as "disabled" and the check box is still there, but it's not in the newly

  • Why is the Apple logo blinking on my iPhone 4?

    My iPhone 4 had around 50% battery left. The phone shut down and now I can not restart it. I have tried holding down the power button and home screen multiple times. I have also plugged it in to my computer, which will not recognize it, and left it i

  • Catch a JBO-26041 error on insert, but continue processing

    re-post: Does anyone know if this is possible? I'm creating new rows in a ViewObject within a loop. It's possible that the record that I'm trying to create already exists, so I want to catch a JBO-26041 error and basically ignore it (don't insert/cre

  • URLConnection.getInputStream and synchronization.

    I can't quite understand why url.getInputStream must by globaly synchronized, if it isn't I will start to receive "connection refused" exceptions import java.net.*; import java.io.*; public class TestURL {     private final Object lock = new Object()