I'm trying to lazily load external js resources in a PhoneGap app via curljs.
It works just fine in a browser, however when deployed to Android (via PhoneGap Build), my curl invocation (curl['//domain/path/], successBack, errorBack )) invokes the error handler with the message 'Error: Syntax or http error' on the resource.
The resources themselves are deliberately not bundled with the app, I want them to be delivered at runtime for various reasons, and I can see from my server logs that my device is issuing the appropriate http request at runtime, so I don't think it's a security config issue.
I've tried various combinations of url to access my resource, including '
http://domain/path', '//domain/path', 'domain/path', etc however all produce the same error.
Has anyone tried this? Any suggestions?
Thx,