And now it works well. Very thanks.
On Aug 31, 8:53 pm, Øyvind Sean Kinsey <
oyv...@kinsey.no> wrote:
> I'm not sure whether you resolved this, but from looking at it again, I'm
> guessing that you opened the xhr.html file from the download directly,
> instead of letting easyXDM load it (as shown in example/xhr.html).
>
> Øyvind Sean Kinsey
>
> 2010/8/26 Øyvind Sean Kinsey <
oyv...@kinsey.no>
>
>
>
> > Inline..
> > On Thu, Aug 26, 2010 at 5:38 AM, sjoonk <
sjo...@gmail.com> wrote:
>
> >> First, I'm very thanks for your wonderful javascript library. Very
> >> helpful!!
>
> >> Second, when I use the sample xhr.html file and run in browser, "url
> >> is undefinded or empty" error occurs.
> >> I think it because the first parameter of Rpc method is empty, but I
> >> don't know exactly what the problem is??
>
> >> This is the sample code.
>
> >> window.onload = function(){// this can be removed
>
> >> var remote = new easyXDM.Rpc({}, {
> >> local: {
> >> post: function(url, data, success, error){
> >> /easyXDM.ajax({
> >> url: url,
> >> method: "POST",
> >> data: data,
> >> type: "json",
> >> success: success,
> >> error: error
> >> });
> >> }
> >> }
> >> });
> >> };
>
> > the xhr.html file which comes with easyXDM, and which you can find an