javascript - iframe issue with jQuery mobile , frame is reloading -
i developing hybrid application using jquery mobile , phonegap , in application loading page contains iframe. happening when loading in android emulator page loading , frame overlapping page (kinda second loading),when click button , restarting app work fine .. have seen solutions regarding modifying cordova.plist didn't work me , can me? using cordova 2.4.0
giving html below, getting output right frame overlapping first time.
<!doctype html> <html> <head> <title>my account</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"> <link rel="stylesheet" href="css/jquery.mobile-1.4.2.min.css"> <script src="js/jquery-1.10.2.min.js"></script> <script src="js/jquery.mobile-1.4.2.min.js"></script> <style> #main{ padding: 1em; position : absolute; top : 0; right : 0; bottom : 0; left : 0; } </style> </head> <body> <div data-role="page" id="pageone" data-theme="a"> <!-- header --> <div data-role="header" data-position="fixed" align="center" data-theme="b"><h1>bank name</h1> <a href="home_page.html" data-role="button" data-theme="b" rel="external" >back</a></div> <div data-role="main"> <div class="ui-field-contain" align="center"> <a href="atm_search_location.html" target="mapview" data-role="button" data-theme="a" data-inline="true">atm</a> <a href="branch_search_location.html" target="mapview" data-role="button" data-theme="a" data-inline="true">branch</a> <a href="atm_branch_near_map.html" target="mapview" data-role="button" data-theme="a" data-inline="true">near me</a> </div> <div> <iframe name="mapview" width="100%" height="950px" src="my_current_location.html"></iframe> </div> </div> </div> </body> </html>
Comments
Post a Comment