is it possible use multiple html pages with phonegap?

5,487 views
Skip to first unread message

Giuseppe Scola

unread,
Dec 6, 2010, 4:30:33 AM12/6/10
to phonegap
Hi all,

perhaps my question is a little stupid....but is it possible use
multiple pages with phonegap?

Thanks in advance.

Giuseppe

mithun88

unread,
Dec 6, 2010, 5:05:35 AM12/6/10
to phonegap
Hello Giuseppe,
No question is stupid :).

Do you want to know if you can use multiple html files in phonegap? If
it is so than its a big YES,

You must have a file name "index.html", this will be the first file
which will be loaded, then you can link any number of files from that
index file.

I hope you were asking this question only.

All the best

Regards,
Mithun

Giuseppe Scola

unread,
Dec 6, 2010, 5:11:53 AM12/6/10
to phonegap
THANK U!!
in index.html file i link other html pages as usual in html?

jcesar

unread,
Dec 6, 2010, 9:57:53 AM12/6/10
to phonegap
Yes, with an <a href="other.html">other</a>

Giuseppe Scola

unread,
Dec 6, 2010, 10:02:28 AM12/6/10
to phonegap
thanks to all!!
:)

Ethernaly

unread,
Dec 6, 2010, 11:02:49 AM12/6/10
to phonegap
Hello everybody.
when I change page (for example from index.html to contacts.html), the
memory allocated for the previous page, will be flushed?

There is a function that I can call with "onClick", to flush memory?

Thanks in advance,

Matthew David

unread,
Dec 6, 2010, 1:20:01 PM12/6/10
to Ethernaly, phonegap
I was using iUI but have now switched to jQuery Mobile. Using multiple pages is really easy. I have my first jQuery Mobile app with multiple pages being submitted to Apple right now.





--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en

For more info on PhoneGap or to download the code go to www.phonegap.com

Nick McCloud

unread,
Dec 7, 2010, 4:35:35 AM12/7/10
to phonegap
Ethernaly: memory management is entirely controlled by the device's OS
- we just have to trust to luck and good fortune that we don't exceed
memory requirements.

Jone Smith

unread,
Jan 26, 2014, 3:29:32 AM1/26/14
to phon...@googlegroups.com, alculqu...@acm.org
I'm also having this problem that there is no plugin object in the second page. 
may be plugin must be mannually imported in the second page.

On Monday, August 27, 2012 11:44:01 AM UTC+8, Aldo Culquicondor wrote:
I did that but any javascript code in the second .html is not readed. What can I do?

WebSteve

unread,
Jan 27, 2014, 11:16:29 AM1/27/14
to phon...@googlegroups.com, alculqu...@acm.org
You create a phonegap app as you would any website. The HTML, CSS, and JavaScript rules still apply. Any JS you want to apply to an HTML page has to be linked in the tags at top or bottom. JS in one HTML page does not operate on a different page unless linked there as well. These are HTML basics.


On Sunday, August 26, 2012 8:44:01 PM UTC-7, Aldo Culquicondor wrote:
I did that but any javascript code in the second .html is not readed. What can I do?

El lunes, 6 de diciembre de 2010 09:57:53 UTC-5, jcesarmobile escribió:

אבישי חג'בי

unread,
Apr 3, 2014, 9:39:59 PM4/3/14
to phon...@googlegroups.com, alculqu...@acm.org
hello 
if you want to use a second page use:
<a href="...." rel="external" >  sec page </a>

בתאריך יום שני, 27 בינואר 2014 18:16:29 UTC+2, מאת WebSteve:
Reply all
Reply to author
Forward
0 new messages