oyvindkinsey / easyXDM

A javascript library providing cross-browser, cross-site messaging/method invocation.
http://easyxdm.net
MIT License
2.38k stars 265 forks source link

iOS WebKit / PhoneGap? This work? #83

Closed jfrux closed 12 years ago

jfrux commented 13 years ago

I've debugged it down to this init: It runs fine in Safari / Chrome but when pushed through phonegap / sencha touch + iOS webkit, I just get a white screen. Any pointers? :) I literally can't see any errors or debugging once it builds to iOS :-\

var remote = new easyXDM.Rpc({ remote: "http://remoteaddr/miscellaneous/upload_rpc.html", onReady: function(){ var frm = document.getElementById('submitFrm'); frm.setAttribute('target','upload_target'); frm.setAttribute('action','http://remoteaddr/submits/create'); } }, { local: { returnUploadResponse: function(response){ // here you should call back into your regular workflow

                if(response.msg=='success') {
                    alert('success!');
                } else {

                }
            }
        }
    });
oyvindkinsey commented 13 years ago

Which init?

I do not have any clues as of now, the examples works fine on mobile webkit.

oyvindkinsey commented 12 years ago

There is no need to use easyXDM in phonegap - the SOP doesn't apply here.