Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing data between two html pages in phonegap

Tags:

html

cordova

I'm using phonegap to create mobile app. I don't want to have everything in one html page so I created few of them. Each one has .js file attached. How can I send data between these html pages?

like image 480
Bart Avatar asked Feb 23 '12 18:02

Bart


1 Answers

The most portable and simplest way to do it is to use localStorage. There is a bug in Android for passing parameters along in the URL so I don't recommend using that method.

like image 127
Simon MacDonald Avatar answered Oct 06 '22 00:10

Simon MacDonald