Jump to content

I'm pulling my hair out trying to figure this out


aeroswat

Recommended Posts

What is wrong with this?! It's not getting to the alert(1)

 

		function updateForm(ctrl) {
		var ss = ctrl.value;
		alert(ss);
		$.ajax({
			type: "POST",
			url: "lookup-systeminfo.php",
			data: "ss="+ss+"", 
			async: false,
			success: function(msg){
				alert('1');
				var msg=msg.substr(0,msg.search("#STOP#"));
				alert('2');
				if(msg.length >0) {
				alert('3');
					alert('got here');
					msg.split(";");
					document.GetElementById('sysName').value = msg[0];
					var Acc=document.GetElementById('Account');
					Acc.selectedIndex = Acc.options.indexOf(msg[1]);
					var Reg=document.GetElementById('Region');
					Reg.selectedIndex = Reg.options.indexOf(msg[2]);
					var Adu=document.GetElementById('Adult');
					Adu.selectedIndex = Adu.options.indexOf(msg[3]);
					document.GetElementById('Reallocations').value = msg[4];
				}
			}
		});
	}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.