Reputation: 381
Hi I'm trying to implement a panel with 2 links. My idea is to have 3 different files: page1.html and page2.html
Page1:
<div>
<h1> This is the Page 1</h1>
</div>
Page2:
<div>
<h1>This is the Page 2</h1>
</div>
In my main page (main.html) I want to place the panel and a Div where the different pages will be loaded.
Is there any way to implement like fragments in Android, or similar, I mean, declare the div:
<div id="container"></div>
and when the users clicks on the links the content of the pages load in.
Thanks!
Upvotes: 0
Views: 60