incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1568) Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
Date Tue, 16 Oct 2012 17:35:04 GMT

    [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477193#comment-13477193
] 

Andrew Grieve commented on CB-1568:
-----------------------------------

Joe, can you paste in the bug/commit of the monkeypatching you mentioned as well as the history
bug? What are the URL handling tricks that you're referring to?

It's likely that we could do further monkeypatching, by redefining the window.open() function
(verified this is possible on the android 2.3.3 emulator).


                
> Error in Phonegap 2.1 for Android 3.X and 4.0. A network error occurred(file:///android_asset/www/index2.html?id=25)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-1568
>                 URL: https://issues.apache.org/jira/browse/CB-1568
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CordovaJS
>    Affects Versions: 2.1.0
>            Reporter: Ismael Olusola Jimoh
>            Assignee: Joe Bowser
>             Fix For: 2.2.0
>
>         Attachments: phoneGap2_1_Test.rar
>
>
> Whenever I try to pass windows.open("index.html2?id="+25) query in Phonegap 2.1, I get
the above mentioned error.
> I have tested and can confirm this error only occurs in 3.2 and 4.0 android OS, and is
working normally on 2.3.
> On a side note, this error was not seen in previous versions of Cordova.
> Devices tested:
> -Samsung Galaxy S2 9100G running Android 4.0.3 - has error
> -Samsung Galaxy Tab 7 Plus running Android 3.2 - has error
> -Samsung Galaxy S3 (international version) - has error
> -Galaxy Nexus on Android 4.1 - works normally
> -Android 4.0 Emulator - has error
> Below is the code I am trying to run
> _______________________________________________________________________________________________________________________
> Index1.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>   function nextpage(){
>   window.open("index2.html?Id="+25);
>   }
>           </script>
>           </body>  
>           <input type="button" value="button1" onclick="nextpage();"/>  
>  </html>
> ________________________________________________________________________________________________________________________
> Index2.html:
>  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"    
> "http://www.w3.org/TR/html4/strict.dtd">    
> <html>    
>   <head>   
>        <title>Media Example</title>
>                <script type="text/javascript" charset="utf-8" src="../js/cordova-2.1.0.js"></script>
>                 <script type="text/javascript" charset="utf-8" src="../js/jquery-1.7.2.js"></script>
>          <script type="text/javascript" charset="utf-8">
>  
>           </script>
>           </body>  
>          welcome
>  </html>
> ___________________________________________________________________________________________________________________________
> Please would appreciate any help.
> Thanks in advance.
> -Ismael

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message