View Single Post
Old 08-26-2008, 12:01 PM   PM User | #7
tosbourn
Regular Coder

 
Join Date: Aug 2008
Location: Northern Ireland
Posts: 167
Thanks: 12
Thanked 6 Times in 6 Posts
tosbourn is on a distinguished road
I think I can condense this some...

I have been firing in alerts by way of a test to see where IE is falling short, and it never actually gets into the method to update the fields.

The call to the function (Person_callback()) is made from the following bit of code.

Code:
function goFindPerson     (obj){                              // [l] AJAJ person lookup 
			if (typeof obj=="string") obj = $(obj);                   //

			if ((obj.id == "witness1id")){
				spid = ($("witness1id").value);
				pLookDest = "w_1_";
			} else if (obj.id == "witness2id"){
				spid = ($("witness2id").value);
				pLookDest = "w_2_";
			} else { 
				spid = ($("selectPID").value);
				pLookDest = "";
			}

			req.onreadystatechange = Person_callback;			// Set callback function
			alert("TEST"+req);
			req.open("GET", "personlookup.php?id="+spid, true);       // Do a tainted SQL call
			req.send("");                                             // Run the thread
		}
Now I have followed this code through, and IE is getting to the end of it, so I can only assume one of two things, the first is I am in totally the wrong place and need to retrace my steps, and the other is that for some reason req.onreadystatechange = Person_callback; isn't doing anything the second time around - is there anyway I can confirm this? or is there any work arounds?
tosbourn is offline   Reply With Quote