You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2012/10/25 21:21:13 UTC

[jira] [Resolved] (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)

     [ https://issues.apache.org/jira/browse/CB-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1568.
----------------------------

    Resolution: Fixed
    
> 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