index.php
Expand|Select|Wrap|Line Numbers
- <?php
- define( '_JEXEC', true );
- ?>
- <div class="mypage">
- </div>
- <ul>
- <li><a href="#" onclick="loadpages('myiinerpage.php')">about page</a></li>
- </ul>
- <script type="text/javascript">
- var $jq = jQuery.noConflict();
- function loadpages(page)
- {
- $jq('.mypage').load('myfolder/'+page);
- }
- </script>
Expand|Select|Wrap|Line Numbers
- <?php
- defined('_JEXEC') or die('Restricted access');
- ?>
- <div>
- my page elements
- </div>
but when i click on the link it shows restricted access. I have loaded jquery too, any idea y this is happening?