Edited
I Have edited this to make it abit more clear on what i'm looking for. I have a website that is Built on HTML5 and controlled by CSS3 and Jquery, Because of this all of my sites content is on one page.
When i'm doing an update to my page i want to be able to set an option in a config somewhere so that when users land on my page they are re-directed to another page, a bit like site maintenance page.
When searching on the internet there are lots of ways to create config files but they all seem to relate to .net or flash
As my site is not built on any of these i figured i would have to create my own form of web config, After looking around etc i believe i can achieve this in JQuery.
I currently have the following code for loading an XML file in JQuery
$(document).ready(function()
{
$.ajax({
type: "GET",
url: "jquery_xml.xml",
dataType: "xml",
success: function(xml) { parseXml(xml); }
});
});
I know that from here i need to then search for the Tag in my XML file. This is what i have currently:
function parseXml(xml)
{
//find Website Status
$(xml).find("WebSite").each(function()
{
// This is where i need help
});
I know how to ouput this information if i wanted it to be displayed on a page but im actually looking to see what the website status is. This is the XML file i have.
<?xml version="1.0" encoding="utf-8" ?>
<Webconfig>
<WebSite Status="Live">
</WebSite>
</webconfig>
Hopefully this has made it a bit more clearer.
Regards Bobby