function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
marella1800marella1800 

ONLINE EXAM IN VF PAGE

Hi,I am having questions__c(parent) and answers__c(child) are 2 custom objects which are having MDR relation.
Requirement:-
Need to create ONLINE EXAM on if page have 1000 records in questions__c object I need to fetch records from questions__c. Randomly to if page and need to show different questions which should not repeat.
question =60. no question should reapeat for a single participant.
Can any one make me out from this???

Thanx in advance...!!!

bob_buzzardbob_buzzard

Have you got some code that you'd like help with, or are you expecting us to write everything from scratch?

marella1800marella1800

Hi sir,Pleasure to meet u,,,i have the following code, i just created a back timer which is running good but its not working with button(start exam).please help me to create question paper in which 60 question will get by clicking NEXT--- NEXT in which it should not repeat the same one for each individual..,,

 


<apex:page sidebar="false" showHeader="false" controller="clsonline">
<form>
<html>
<body style="background-image:url('{!$Resource.Background}');">

<table border="1" cellpadding="14px" width="1200px" align="center" style= "font-size:25px; color: #686868 ;font-family:Verdana;">
<tr><th><center>SalesForce DEV-401 Examination</center></th></tr>
</table>
<table border="1" cellpadding="210px" width="1300px" style= "font-size:25px; color:#F00000 ;font-family:Verdana;">
<tr><td width="12%">

</td>

<td width="6px"> SALESFORCE<BR/><BR/><BR/>
<apex:pageBlock rendered="true" >
wwwwwwwwwwwwwwwwww
</apex:pageBlock>



<!-- TIMER CODING STARTS / -->

<script type="text/javascript">
var sec = 00; // set the seconds
var min = 60; // 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) { document.getElementById('theTime').innerHTML = time; }

SD=window.setTimeout("countDown();", 1000);
if (min == '00' && sec == '00') { sec = "00"; window.clearTimeout(SD); }
}
window.onload = countDown;

</script>

<style type="text/css">

.timeClass {
font-family:arial,verdana,helvetica,sans-serif, color:yellow;
font-weight:normal;
font-size:20pt;
}

</style>

<!-- This goes into the BODY of the file -->

<table width="100%">
<tr><td width="100%" align="center"><span id="theTime" class="timeClass"></span></td></tr>
</table>

<div id="mydiv"></div>
<center><input type= "button" id="button1" value="Start Exam" onclick="starttimer()" /></center>
</td><td width="22%">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <apex:image url="{!$Resource.pic}" width="80" height="50"/></td> </tr>
</table>
<table border="1" cellpadding="14px" width="1000px" align="center" style= "font-size:15px;color:#660000;font-family:Verdana;">
<th > <center><marquee behavior="alternate"> Cloud 2013.All Rights Reserved</marquee></center> </th>
</table>
</body>
</html>
</form>
</apex:page>

chowdary marellachowdary marella

How can we store the result ?how can we differentiate which is right and wrong? how can we display result at final..can you please help me..