Click here to Skip to main content
15,902,876 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 7:39
protectorAspDotNetDev19-Jan-12 7:39 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:30
Member 779716720-Jan-12 12:30 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:14
Member 779716719-Jan-12 9:14 
QuestionRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 10:53
protectorAspDotNetDev19-Jan-12 10:53 
AnswerRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:12
Member 779716720-Jan-12 12:12 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:27
Member 779716719-Jan-12 9:27 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova18-Jan-12 22:44
BobJanova18-Jan-12 22:44 
QuestionAjax issue Pin
MacRaider416-Jan-12 6:57
MacRaider416-Jan-12 6:57 
Ok I'm trying to learn this and I'm running into a problem and I'm not sure why... I'm going through a tutorial on tizag and I'm getting a error for the onChange event. This is the code:
HTML
<html>
<body>

<script language="javascript" type="text/javascript">
<!-- 
//Browser Support Code
function ajaxFunction(){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			document.myForm.time.value = ajaxRequest.responseText;
		}
	}
	ajaxRequest.open("GET", "serverTime.php", true);
	ajaxRequest.send(null); 
}

//-->
</script>



<form name='myForm'>
Name: <input type='text' onChange="ajaxFunction();" name='username' /> <br />
Time: <input type='text' name='time' />
</form>
</body>
</html>

the error message is "Object expected at JScript - myForm onchange function() (/IntranetSite/order.html:47)
Thanks in advance!!
AnswerRe: Ajax issue Pin
Not Active16-Jan-12 7:41
mentorNot Active16-Jan-12 7:41 
GeneralRe: Ajax issue Pin
MacRaider416-Jan-12 8:06
MacRaider416-Jan-12 8:06 
QuestionRe: Ajax issue Pin
AspDotNetDev16-Jan-12 8:20
protectorAspDotNetDev16-Jan-12 8:20 
AnswerRe: Ajax issue Pin
MacRaider416-Jan-12 8:34
MacRaider416-Jan-12 8:34 
AnswerRe: Ajax issue Pin
AspDotNetDev16-Jan-12 8:55
protectorAspDotNetDev16-Jan-12 8:55 
GeneralRe: Ajax issue Pin
MacRaider416-Jan-12 9:48
MacRaider416-Jan-12 9:48 
GeneralRe: Ajax issue Pin
MacRaider417-Jan-12 1:59
MacRaider417-Jan-12 1:59 
GeneralRe: Ajax issue Pin
BobJanova17-Jan-12 3:59
BobJanova17-Jan-12 3:59 
GeneralRe: Ajax issue Pin
MacRaider417-Jan-12 4:12
MacRaider417-Jan-12 4:12 
QuestionRounding a calculation to the nearest 0 or 5 Pin
DiesenDesign14-Jan-12 15:48
DiesenDesign14-Jan-12 15:48 
AnswerRe: Rounding a calculation to the nearest 0 or 5 Pin
Aniruddha Loya14-Jan-12 20:53
Aniruddha Loya14-Jan-12 20:53 
GeneralRe: Rounding a calculation to the nearest 0 or 5 Pin
DiesenDesign15-Jan-12 14:07
DiesenDesign15-Jan-12 14:07 
GeneralRe: Rounding a calculation to the nearest 0 or 5 Pin
Aniruddha Loya15-Jan-12 19:27
Aniruddha Loya15-Jan-12 19:27 
GeneralRe: Rounding a calculation to the nearest 0 or 5 Pin
DiesenDesign22-Jan-12 11:44
DiesenDesign22-Jan-12 11:44 
AnswerRe: Rounding a calculation to the nearest 0 or 5 Pin
Aniruddha Loya23-Jan-12 23:31
Aniruddha Loya23-Jan-12 23:31 
AnswerRe: Rounding a calculation to the nearest 0 or 5 Pin
Satheesh154615-Jan-12 21:09
Satheesh154615-Jan-12 21:09 
QuestionNeed to work with a database Pin
MacRaider414-Jan-12 1:55
MacRaider414-Jan-12 1: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.