Click here to Skip to main content
15,891,529 members
Home / Discussions / Java
   

Java

 
AnswerRe: Glassfish Deployment error Pin
TorstenH.19-Oct-10 23:31
TorstenH.19-Oct-10 23:31 
GeneralRe: Glassfish Deployment error Pin
Richard MacCutchan20-Oct-10 1:24
mveRichard MacCutchan20-Oct-10 1:24 
QuestionProcessing JSP-Form using Servlet using AJAX Post method Pin
khurram_shahzad17-Oct-10 7:17
khurram_shahzad17-Oct-10 7:17 
Questionhelp required Pin
Nima Dorji15-Oct-10 5:30
Nima Dorji15-Oct-10 5:30 
AnswerRe: help required Pin
Richard MacCutchan15-Oct-10 6:00
mveRichard MacCutchan15-Oct-10 6:00 
QuestionSwing equivalent in java mobile Pin
trioum14-Oct-10 8:03
trioum14-Oct-10 8:03 
AnswerRe: Swing equivalent in java mobile Pin
Nagy Vilmos14-Oct-10 21:51
professionalNagy Vilmos14-Oct-10 21:51 
QuestionProblem in learning AJAX with PHP Pin
khurram_shahzad13-Oct-10 11:04
khurram_shahzad13-Oct-10 11:04 
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;
	<!--Getting XMLHttpRequest OR Active depends on browser support...-->
	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>


HERE's 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>

AnswerRe: Problem in learning AJAX with PHP Pin
Richard MacCutchan13-Oct-10 11:43
mveRichard MacCutchan13-Oct-10 11:43 
GeneralRe: Problem in learning AJAX with PHP Pin
khurram_shahzad14-Oct-10 5:57
khurram_shahzad14-Oct-10 5:57 
QuestionDividing a text file into variable size chunks using Rabin fingerprint algorithm in java Pin
LOKESHWARI13-Oct-10 2:14
LOKESHWARI13-Oct-10 2:14 
AnswerRe: Dividing a text file into variable size chunks using Rabin fingerprint algorithm in java Pin
Cedric Moonen13-Oct-10 3:13
Cedric Moonen13-Oct-10 3:13 
QuestionDeveloping a Multitenant Application in Java Pin
sangeetha_spss12-Oct-10 3:03
sangeetha_spss12-Oct-10 3:03 
AnswerRe: Developing a Multitenant Application in Java Pin
Richard MacCutchan12-Oct-10 5:46
mveRichard MacCutchan12-Oct-10 5:46 
GeneralChossing a best option Pin
krishnareddy03612-Oct-10 1:46
krishnareddy03612-Oct-10 1:46 
GeneralRe: Chossing a best option Pin
DaveAuld12-Oct-10 1:56
professionalDaveAuld12-Oct-10 1:56 
GeneralRe: Chossing a best option Pin
jschell15-Oct-10 8:38
jschell15-Oct-10 8:38 
Questioncalling servlet in background from jsp Pin
khurram_shahzad10-Oct-10 7:16
khurram_shahzad10-Oct-10 7:16 
AnswerRe: calling servlet in background from jsp Pin
Richard MacCutchan10-Oct-10 8:50
mveRichard MacCutchan10-Oct-10 8:50 
AnswerRe: calling servlet in background from jsp Pin
Member 324727611-Oct-10 21:45
Member 324727611-Oct-10 21:45 
QuestionCanvas inside applet Pin
ekba899-Oct-10 16:14
ekba899-Oct-10 16:14 
AnswerRe: Canvas inside applet Pin
Richard MacCutchan9-Oct-10 21:54
mveRichard MacCutchan9-Oct-10 21:54 
GeneralRe: Canvas inside applet Pin
ekba8910-Oct-10 5:32
ekba8910-Oct-10 5:32 
GeneralRe: Canvas inside applet Pin
Richard MacCutchan10-Oct-10 8:49
mveRichard MacCutchan10-Oct-10 8:49 
GeneralRe: Canvas inside applet Pin
ekba8910-Oct-10 12:08
ekba8910-Oct-10 12:08 

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.