Jan 21, 2010

JsHttpRequest problem

One of AJAX Library, JsHttpRequest, supports a lot of stuffs (e.g. file upload through iframe). It worked fine, until I used it for my facebook application.

The problem is that the outer frame is on facebook.com. The inner frame is on my server.

JsHttpRequest makes use of the outer frame, which is on a different domain. Therefore, the "permission denied" exception is thrown.

It is thrown on this commmand: top.JsHttpRequestGlobal = JsHttpRequest;

The source code is also obfuscated.

Therefore, I have decided to implemented my own AJAX upload library !