Broken OpenID Ajax Implementation

I had a working ajax implemention of OpenID, but it’s broken now. I’ve poked and prodded it, and quite frankly I have no idea what happened. I suspect it might be a schroedinbug, which is why I havn’t asked the list about it, for fear of infecting their mindpsace. Two seperate implementations of mine, on different servers, started giving the same error on the same day, dispite one of the implemenations being frozen.

I might have to scrap the javascript chunks and roll back to an older revision. Much of the javascript was liberated from Brent Dax anyway. But seriously, this is a silly error, as it occurs when trying to set the contents of a textbox to an empty string. And if I comment that out, as it’s mostly cosmetic, the bug will show up somewhere else.

Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]” nsresult: “0×8057001e (NS_ERROR_XPC_JS_THREW_STRING)” location: “JS frame :: http://azaphrael.org/~codepoetica/openid/ajax/this-demo.js :: anonymous :: line 181″ data: no]
Source File: http://azaphrael.org/~codepoetica/openid/ajax/this-demo.js
Line: 181

I think I’m going to take a little break from working on this consumer unless someone lights a fire under my butt this week.

Now that I’ve written this, watch it be a semi-invalid JSON data or some such difficult-to-debug crap.


About this entry