I am writing a site in PHP and I have written an index page that swaps its content tag. When I include the default.php inside of the The button is not being styled.
Jquery UI works properly everywhere else in the site however the buttons and icons do not work.
Here is the index code that switches the page
<?php
include_once 'config.php';
session_start();
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title><?php echo $siteName; ?></title>
<link href="css/themes/<?php echo $theme; ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo $jqCSS;?>" rel="stylesheet" type="text/css"/>
<script src="<?php echo $jsCommon;?>"></script>
<script src="<?php echo $jqJS;?>"></script>
<script src="<?php echo $jqJSUI;?>"></script>
</head>
<body>
<div class="header">
<?php include 'menu.php';?>
</div>
<div class="content" id="main_content"><br/><br/>
<?php
$page = $_SESSION['currentpage'];
echo $page;
switch ($page)
{
case 'messaging':
include 'controls/shared/messaging/messaging.php';
break;
default:
include 'pages/default.php';
break;
}
?>
</div>
<div class="footer">
</div>
<div id="myLogin" title="Login"></div>
<div id="myForgotPass" title="Forgot Password"></div>
<div id="myReg" title="Register"></div>
Here is the Default.php that is loaded after the check
<?php
session_start();
$_SESSION['currentpage'] = 'default';
?>
<br/><br/>
<h1>Default</h1>
<button id="button">Test Button</button>
Here is the javascript i'm using to determine this is a button:
$('#button').button();
When I look at the code in firebug its showing that it is under the content class. I can style the button using the content class however I want it to use the theme that is from the jquery ui.
Thanks.