Updated
I've made some edits to clarify my request. My website is built using HTML5, CSS3, and JQuery, resulting in all content being on one page.
During updates, I want the ability to set an option in a configuration file so that when users visit my site, they are redirected to another page, similar to a maintenance page. However, most resources on creating config files relate to .NET or Flash, neither of which my site uses. Therefore, I believe jQuery can help me create a custom web config.
The current code snippet I have loads an XML file using jQuery:
$(document).ready(function()
{
$.ajax({
type: "GET",
url: "jquery_xml.xml",
dataType: "xml",
success: function(xml) { parseXml(xml); }
});
});
In the process of parsing the XML file, I need assistance with identifying the website status:
function parseXml(xml)
{
//find Website Status
$(xml).find("WebSite").each(function()
{
// Help needed here
});
While I know how to display this information on a page, my main goal is to determine the website status using the provided XML structure:
<?xml version="1.0" encoding="utf-8" ?>
<Webconfig>
<WebSite Status="Live">
</WebSite>
</webconfig>
Hopefully, these clarifications make my request more understandable.
Regards, Bobby