Click here to Skip to main content
15,894,405 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: dom childNodes problem Pin
ekba8920-Oct-10 8:41
ekba8920-Oct-10 8:41 
QuestionDocument.Write not working. Pin
thebiostyle14-Oct-10 14:54
thebiostyle14-Oct-10 14:54 
AnswerRe: Document.Write not working. Pin
Dr.Walt Fair, PE14-Oct-10 15:18
professionalDr.Walt Fair, PE14-Oct-10 15:18 
GeneralRe: Document.Write not working. Pin
thebiostyle14-Oct-10 17:39
thebiostyle14-Oct-10 17:39 
AnswerRe: Document.Write not working. Pin
Pete O'Hanlon14-Oct-10 22:46
mvePete O'Hanlon14-Oct-10 22:46 
GeneralRe: Document.Write not working. [modified] Pin
thebiostyle15-Oct-10 6:50
thebiostyle15-Oct-10 6:50 
GeneralRe: Document.Write not working. Pin
thebiostyle25-Oct-10 6:14
thebiostyle25-Oct-10 6:14 
QuestionError in developing my first AJAX example. . . . Pin
khurram_shahzad14-Oct-10 6:03
khurram_shahzad14-Oct-10 6:03 
hi ...
i m trying to make this me first simple AJAX example using PHP that shows message from PHP on clicking Button in HTML page .... but this case some prolem ... that is when click on button to show message then nothing is happen .... is also check WAMP ... so any idea or suggestion !!!!

HTML CODE IS,
<!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=utf-8" />
<title>MyFirstAJAXProram</title>



</head>
<body>
<script type="text/javascript">
function JavaFunction() {
	var xmlhttp;
	if(window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readystate == 4) {
			document.timerForm.time.value = xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET", "phpfile.php", true);
	xmlhttp.send(null);
}
</script>
<form name="timerForm">
<input type="button" onclick="JavaFunction()"; />
Time: <input type="text" id="timer" name="time" value="00:00:00" readonly="readonly" />
</form>
</body>
</html>


PHP CODE;
<!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=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?
echo("KHURRAM SHAHZAD");
?>
</body>
</html>


I found one another problem is that php file also not run when i try to run it directly..... Frown | :(
AnswerRe: Error in developing my first AJAX example. . . . Pin
Eddy Vluggen14-Oct-10 6:46
professionalEddy Vluggen14-Oct-10 6:46 
GeneralRe: Error in developing my first AJAX example. . . . [modified] Pin
Shantanu Gupta 133723-Oct-10 11:08
Shantanu Gupta 133723-Oct-10 11:08 
AnswerRe: Error in developing my first AJAX example. . . . Pin
moocr.com1-Nov-10 15:49
moocr.com1-Nov-10 15:49 
QuestionRetrieving data from an access database and show it to the user. Pin
gamer112711-Oct-10 3:04
gamer112711-Oct-10 3:04 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
Eddy Vluggen14-Oct-10 6:45
professionalEddy Vluggen14-Oct-10 6:45 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
Sanket898924-Oct-10 8:24
Sanket898924-Oct-10 8:24 
AnswerRe: Retrieving data from an access database and show it to the user. Pin
V.25-Oct-10 4:15
professionalV.25-Oct-10 4:15 
QuestionMove items up and down in listBox Pin
Member 32222648-Oct-10 4:55
Member 32222648-Oct-10 4:55 
AnswerRe: Move items up and down in listBox Pin
Not Active8-Oct-10 5:27
mentorNot Active8-Oct-10 5:27 
Questionmathematics tables Pin
yumss5-Oct-10 9:05
yumss5-Oct-10 9:05 
AnswerRe: mathematics tables PinPopular
NeverHeardOfMe5-Oct-10 9:25
NeverHeardOfMe5-Oct-10 9:25 
AnswerRe: mathematics tables Pin
PavanPabolu10-Oct-10 19:22
PavanPabolu10-Oct-10 19:22 
AnswerRe: mathematics tables Pin
PavanPabolu10-Oct-10 19:24
PavanPabolu10-Oct-10 19:24 
AnswerRe: mathematics tables Pin
PavanPabolu10-Oct-10 19:25
PavanPabolu10-Oct-10 19:25 
Questionstring testing fails Pin
SummerBulb4-Oct-10 21:51
SummerBulb4-Oct-10 21:51 
AnswerRe: string testing fails Pin
NeverHeardOfMe4-Oct-10 22:41
NeverHeardOfMe4-Oct-10 22:41 
AnswerRe: string testing fails Pin
moocr.com1-Nov-10 15:55
moocr.com1-Nov-10 15:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.