troubleshooting Question

Unknown name. error - trying to understand AJAX problem

Avatar of warba
warbaFlag for Canada asked on
7 Comments1 Solution1311 ViewsLast Modified:
We have a page that today stopped working. It has a textbox that, when you tab off of it, makes an async call to get data to populate some other controls on the page.

The error when you tab off the field is:
Line: 522
Char: 5
Error: Unknown name.
Code: 0

The line of code causing the error is on the line...

            function txtUserID_Change(_sEntity, sLoggedInUsr)
                  _Entity = _sEntity;
                  //get user id
                  var otxtUserID = window.document.getElementById("WebPanel2_ItemComposite_HeaderDataItems1_txtUserId");
                  var stxtUserId = otxtUserID.value;
                  if(stxtUserId != "")
                        httpReq =  new ActiveXObject("Microsoft.XMLHTTP");
                        httpReq.onreadystatechange = UserReadyStateEvent;
              "GET", "https://" + _WebServer + "/" + _WebApp + "/Pages/AsyncWebForm.aspx?Op=UserInfo&InputValue=" + stxtUserId + ";" + sLoggedInUsr , true);

If I comment out the line then there is no error (but of course no data either).
I've used an alert box to show the URL being requested, and I can copy/paste this into my IE browser and it functions and returns a small XML document. I've tried this on the webserver itself (the page being requested is on the same website as the page with this javascript.. it is not trying to access another server or anything like that).

This has been working for a year and suddenly stopped in the middle of the day yesterday.

Where should I look?
Systems architect
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros