[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-05-13 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13994273#comment-13994273
 ] 

John McLear edited comment on CB-5731 at 5/10/14 6:40 PM:
--

{code}
$.get(http://time.jsontest.com;, function(){alert(yay)}); 
{code}
Still fails to alert(yay) in Cordova 3.4.1-0.1.0
{code}
access origin=* /
{code}
Tested on 820 which is WP and I'm locally bringing in jquery-1.9.1.min.js, $ 
returns an object so jquery is loaded and I can do other jQuery events no 
problem at all...


was (Author: johnyma22):
$.get(http://time.jsontest.com;, function(){alert(yay)}); 

Still fails to alert(yay);

Cordova 3.4.1-0.1.0

access origin=* /

Tested on 820 which is WP8

jquery-1.9.1.min.js

$.get returns an object so jquery is loaded..



 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Sergey Grebnov
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13866555#comment-13866555
 ] 

John McLear edited comment on CB-5731 at 1/9/14 11:13 AM:
--

Removing Weinre

script 
src=http://10.0.0.12:8080/target/target-script-min.js#anonymous;/script

shows the alert but requests to parse are still failing, obviously something 
very funky going on here...  This issue is far from closed


was (Author: johnyma22):
Removing 

script 
src=http://10.0.0.12:8080/target/target-script-min.js#anonymous;/script

shows the alert but requests to parse are still failing, obviously something 
very funky going on here...

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-09 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13866560#comment-13866560
 ] 

John McLear edited comment on CB-5731 at 1/9/14 11:19 AM:
--

Oh nice I was able to alert an error I couldn't console log..  
!http://i.imgur.com/p75yc66.png!


was (Author: johnyma22):
Oh nice I was able to alert an error I couldn't console log..  
http://i.imgur.com/p75yc66.png

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-08 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13865605#comment-13865605
 ] 

Jonathan Silverman edited comment on CB-5731 at 1/8/14 4:38 PM:


I believe I have isolated the issue.

You cannot make a XMLHTTPRequest from a page served with http:// to one with 
https:// even if it redirects:

{code:javascript}
$.get(http://time.jsontest.com;, function(){alert(yay)}); // produces alert
{code}

{code:javascript}
$.get(http://google.com;, function(){alert(yay)}); // doesn't
{code}

Right now, only work around if you use https:// looks like to use the CORS http 
configuration directive:

Access-Control-Allow-Origin: *


was (Author: jsilverman):
I believe I have isolated the issue.

You cannot make a XMLHTTPRequest from a page served with http:// to one with 
https:// even if it redirects:

$.get(http://time.jsontest.com;, function(){alert(yay)}); // produces alert

$.get(http://google.com;, function(){alert(yay)}); // doesn't

Right now, only work around if you use https:// looks like to use the CORS http 
configuration directive:

Access-Control-Allow-Origin: *

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-08 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13865605#comment-13865605
 ] 

Jonathan Silverman edited comment on CB-5731 at 1/8/14 4:42 PM:


I believe I have isolated the issue.

You cannot make a XMLHTTPRequest from a page served with http:// to one with 
https:// even if it redirects:

{code:javascript}
$.get(http://time.jsontest.com;, function(){alert(yay)}); // produces alert
{code}

{code:javascript}
$.get(http://google.com;, function(){alert(yay)}); // doesn't
{code}

Right now, only work around if you use https:// looks like to use the CORS http 
configuration directive:

Access-Control-Allow-Origin: *

Here's a quote from Intel's website:

{quote}
Note: The same Cross-Origin Resource Sharing (CORS) restrictions (if any) that 
apply to server-hosted web based HTML5 apps also apply to packaged hybrid apps.
{quote}


was (Author: jsilverman):
I believe I have isolated the issue.

You cannot make a XMLHTTPRequest from a page served with http:// to one with 
https:// even if it redirects:

{code:javascript}
$.get(http://time.jsontest.com;, function(){alert(yay)}); // produces alert
{code}

{code:javascript}
$.get(http://google.com;, function(){alert(yay)}); // doesn't
{code}

Right now, only work around if you use https:// looks like to use the CORS http 
configuration directive:

Access-Control-Allow-Origin: *

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-08 Thread John McLear (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13865717#comment-13865717
 ] 

John McLear edited comment on CB-5731 at 1/8/14 6:20 PM:
-

My specific case is using the Parse API with their Javascript SDK so I can't 
change from https to http or implement CORS (afaik)


was (Author: johnyma22):
My specific case is using the Parse API with their Javascript SDK so I can't 
change from https to http

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen
 Attachments: BrokenXDKXHRDemo.zip


 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13864842#comment-13864842
 ] 

Jonathan Silverman edited comment on CB-5731 at 1/7/14 11:19 PM:
-

This is not just a WP8 problem. I am having this problem on iOS as well...

Tested on iPod Touch 4G, XDK NEW, Jquery Mobile: No alert.

Update: I ran the code on the device through Weinre.


was (Author: jsilverman):
This is not just a WP8 problem. I am having this problem on iOS as well...

Tested on iPod Touch 4G, XDK NEW, Jquery Mobile: No alert.

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen

 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jesse MacFadyen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13864901#comment-13864901
 ] 

Jesse MacFadyen edited comment on CB-5731 at 1/8/14 12:13 AM:
--

I tested in the emulator and on an HTC-One, and saw the alert in both cases.

I did not test with jQM, only jQuery ...
Can you post an example project?



was (Author: purplecabbage):
I tested in the emulator and on an HTC-One, and saw the alert in both cases.

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen

 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Comment Edited] (CB-5731) Windows Phone 8 fails to access remote urls

2014-01-07 Thread Jonathan Silverman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13864936#comment-13864936
 ] 

Jonathan Silverman edited comment on CB-5731 at 1/8/14 12:59 AM:
-

Weird things:

1. The code I created was able to crash Apache Ripple/XDK on both Mac and 
Windows on *first run, process dies with no error messages*
2. On second run (i.e. after reopening XDK), the alert did infact appear in 
Apache Ripple (Emulate tab in XDK)
3. The alert appeared for some reason in the Develop  Design screen, but after 
that not again (this may have been because I switched tabs fast between Develop 
and Emulate)
4. Connected my iPod Touch 4G to Weinre and ran the code remotely. The alert 
did not show. It failed silently.

I am posting the project as soon as I figure how to get it from XDK :D


was (Author: jsilverman):
Weird things:

1. The code I created was able to crash Apache Ripple/XDK on both Mac and 
Windows on *first run, process dies with no error messages*
2. On second run (i.e. after reopening XDK), the alert did infact appear in 
Apache Ripple (Emulate tab in XDK)
3. The alert appeared for some reason in the Develop  Design screen, but after 
that not again (this may have been because I switched tabs fast between Develop 
and Emulate)
4. Connected my iPod Touch 4G to Weinre and ran the code remotely. The alert 
did not show. It failed silently.

 Windows Phone 8 fails to access remote urls
 ---

 Key: CB-5731
 URL: https://issues.apache.org/jira/browse/CB-5731
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.3.0
Reporter: John McLear
Assignee: Jesse MacFadyen

 Doing a very simple:  
 {code:javascript}
 $.get(http://google.com;, function(){alert(yay)});
 {code}
 Fails on Windows Phone 8.
 Basically Cross domain requests don't work, this includes when an explicit 
 and/or wildcard exclusion is set in config.xml allowed domains



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)