javascript - Not able to pass data to child browser in windows phone -


i building windows phone 7 hybrid application using phonegap. opening child browser in our application.

the problem not able send data child browser window our javascript file.we have tried use local storage local storage value not accessible in child browser.  section of code opening child browser.(parent browser)  $("#openformbtn").click(function(){         childbrowser.install();      localstorage.qstring='h=nas1&t=0000927686:1000&n=abc&e=a@g.com&c=776895654568&hname=mnl&cname=ahm';         var cb = window.plugins.childbrowser;         cb.showwebpage('x-wmapp1://app/www/payment-info.html',false);                });         });  code called in child browser when gets loaded(child browser)   $(document).ready(function(){ createpaymentinfo(); });   function createpaymentinfo(){  var query= localstorage.qstring;      } 

append data url.

$("#openformbtn").click(function(){     childbrowser.install();          var qstring='h=nas1&t=0000927686:1000&n=abc&e=a@g.com&c=776895654568&hname=mnl&cname=ahm';     var cb = window.plugins.childbrowser;     var url = 'x-wmapp1://app/www/payment-info.html' + '?' + qstring;     cb.showwebpage(url, false);        }); 

then inside child browser can have code like:

var params = location.href.split('?')[1]; 

and parse array or whatever there.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -