I'm developing an HTML page for mobile and I have the following question: can you load one page inside another?
For example:
pagina.html
:
<div class="container22">
<div id="sidebar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Explore</a></li>
<li><a href="#">Users</a></li>
<li><a href="#">Sign Out</a></li>
</ul>
</div>
<div class="list bar bar-header">
<a class="button button-icon icon-right ion-close" onclick="exitFromApp();"></a>
<h1 class="title">Lwart</h1>
<a class="button button-icon icon-right ion-gear-b" href="#" data-toggle=".container22" id="sidebar-toggle"></a>
</div>
In the above code I'm first loading my list of page options, which so far is just an example.
It has a CSS and a JS behind it, which causes this list to be loaded as a side menu. However, I believe that this is not the case, but rather that after that I want to add the loading of external pages.
For example: when the user clicks on the home
element of my list, he should load the page home.html
below, into a div.
I took a look but I'm not sure if this is done with Ajax, right? I'm kind of lost and as I do not know much about Ajax, I've decided to see if anyone here gives me a light.