AJAX | JavaScript | HTML | PHP Answers

Questions: 323

Answers by our Experts: 213

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Can i cancel my order if needed?
Write a Javascript function that creates an array of the months of the year, accepts a range of numbers (31 - 42) and alerts the corresponding month of the year in the array.
Good news , You have a chance to work in IRCTC as a software developer . Applications are required with a program for railway sites . sid of a station is a something which uniquely defines it . Given N station's sid from 1 to N and distance between any two stations , if any person wants to go from station having sid A to another station C via station B as early as possible , where time is directly proportional to distance . What you have to do is to print the total distance and path to be covered by train if it exists , otherwise print "No Train Found.". If a railway line connects station A to B with distance d than it means it will also connects station B to station A with same distance d .
Input
First line of the input contains the number of test cases T. It is followed by T tests cases. Each test case's first line contains two integers N and k , where N is the number of stations having sid from 1 to N and k is the number of railway lines which connects stations. Following k lines each contain three numbers
<?php
$i=$i+1;
//$pd=$pd+1;
}
}
?>
<input type="button" value="|<" name="First" onclick="showQuestion('first')" />
<input type="button" value="<" name="Previous" onclick="showQuestion('prev')" />
<input type="button" value=">" name="Next" onclick="showQuestion('next')" />
<input type="button" value=">|" name="Last" id="Last" onclick="showQuestion('last')" />
</p>
<p align="center">
</p>
<div align="center">
<?php
// Retrieve Number of records returned
$records = mysqli_num_rows($result);
if($records!=0)
{
?>
<input type="submit" name="button" id="button" value="Submit" />
<?php
}
// Close the connection
mysqli_close($con);
?>
</div>
</form>
<p> </p>
<h1> </h1>
</div>

<div id="footerline"></div>
</div>

<div id="footer">Copyright © 2014 Online Quiz. All rights reserved.</div>
</div>
</body>
</html>
this is my total code please merge it
function showQuestion(_direction)
{
if(_direction == 'prev') current_question--;
else if(_direction == 'next') current_question++;
else if(_direction == 'first') current_question = 1;
else if(_direction == 'last') current_question = 5;
xmlhttp.open("GET","Exam.php?SID="+current_question,true);
xmlhttp.send();
</script>
</head>
<body onload="showQuestion('first')">
<div id="container">
<?php
include "Header.php";
?>
<div id="content">
<div id="left">
<h1>Welcome <?php echo $_SESSION['Name'];?></h1>
<p>
<?php
$SID=$_GET['Id'];
include "examples 2.html";
$con1 = mysqli_connect("localhost","root","login","lalit","3307")or die("Error " . mysqli_error($con));
$sql1 = "SELECT * from quiz_schedule where Schedule_Id='".$SID."'";
$result1 = mysqli_query($con1,$sql1);
while($row1 = mysqli_fetch_array($result1))
{
$Quiz_Id=$row1['Quiz_Id'];
$Semester=$row1['Semester'];
$Subject_Id=$row1['Subject_Id'];
}
mysqli_close($con1);
$con = mysqli_connect("localhost","root","login","lalit
sir,
i am making online exam system then i have interd all Qus in mysql and i have fetch that question and then all Qus comes in a page but i want to use next and peevies button and on the top of page i am using timer so, page should not be refresh and one by one all record show when i press next or privios button. and i hve store that varriable in array my code is:-- Exam.php--
<?php
if (!isset($_SESSION))
{
session_start();

}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
<title>QUIZ Management</title>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<script type="text/javascript">

var str;
var current_question = 1;
function showQuestion(_direction)
{
if(_direction == 'prev') current_que
Write HTML code to design a web page displaying list of hyperlinks. Divide the browser screen into two frames. The frame on the left will be an image. The frame on the right will be a menu consisting of hyperlinks. Clicking on any one of these hyperlinks will display related information as a new page which must be open in frame on the right hand side.
chk this code and please inform me why its happening..
\i have to access "strProduct" and "numPrice" values so..


var objQuotations = {
"vendors": [
{
"strVendor": "V1",
"objQuotation": {
[
{"strProduct": "Soap", "numPrice": "40"},
{"strProduct": "Vanish", "numPrice": "80"},
{"strProduct": "Bicuit", "numPrice": "25"}

]
}
}

]
}
Hi :-)

I am trying to create a script to run in a browser javascript console to continually run an automated robot. I have completed and tested most of the script but I have been stuck on the following issue for weeks.

With the following adjustable variables...
repeats: 5
value1: 1
value2: 10
maxValue: 200

The script should run by clicking a button on the website, wait until an output(a) has finished loading as a result of clicking the button, then check another output(b). If output(b) does not meet a condition for any of the iterations the script starts back at the first iteration. if all 5 ("repeats") iterations meet the condition then another function() becomes active.

Kind regards
Hello,
I am looking for inspiration for a website design (for any purpose) or creating a system that would be also created with the aid of the web programming languages.
thanks..
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS