incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (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:09:03 GMT

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

Joe Bowser commented on CB-1568:
--------------------------------

History isn't a plugin, but this could be the old Android history bug where Java can't handle
URLs with anchors or params.  However, we monkeypatched this recently.
                
> 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
>         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