|
ANNOUNCEMENT, AD, ETC: |
You can place this anywhere on your webpage to have the XML data inserted. <!-- XML Announcement Placement --> <DIV ID="dannouncexml" style="position:relative;visibility:visible;"></DIV> <XML ID="announceXML" src="announce.xml" ondatasetcomplete="getRecords('links','announceXML','dannouncexml');" /> Look at the FILE XML source. |
|
TEXT HYPERLINKS: |
You can place this anywhere on your webpage to have the XML data inserted. <!-- XML LINKS INFORMATION PLACEMENT --> <DIV ID="dlinksXML" style="position:relative;visibility:visible;"></DIV> <XML ID="linksXML" src="pagelinks.xml" ondatasetcomplete="getRecords('links','linksXML','dlinksXML');" /> Look at the FILE XML source. |
|
EMAIL HYPERLINK WITH DETAILS: |
You can place this anywhere on your webpage to have the XML data inserted. <!-- XML FOOTER INFORMATION PLACEMENT --> <DIV ID="dfooter" style="position:relative;visibility:visible;"></DIV> <XML ID="footerXML" src="footer.xml" ondatasetcomplete="getRecords('email','footerXML','dfooter');" /> Look at the FILE XML source. |
If you have sections of your web pages that are frequently updated, such as a table of links, or you have advertising, announcement, or message spots that change, it can be easier (by far) to simply change one file instead of dozens or even hundreds of web pages. That is why I created the JS XML DOCUMENT READER. It can make updating and maintenance much simpler for you.
Typical Usage Answers:After examining the examples above, you may be asking yourself some questions that can be answered here. First, each one of the examples (by placing data into the appropriate XML field) can have a combination of things even though each example does not show all the features. For example, each one can have an image. Each one can have a linked image (by http or mailto). Each one can have a title. And each one can have a description attached to it.
To activate any combination to be displayed (the script actually determines what is shown based on what is completed in the XML file), simply update the appropriate fields in the XML file. An XML file can be edited and saved with a text editor such as Notepad.
Step One: Determine how many XML files to useIn order to determine what you what to have in your XML files, you must know what needs to be placed in what fields. How many XML files that you use is up to you, but keep these points in mind:
To be understood by the script (which you do not need to change for it to work), your XML file should be of the following
format:
An XML File With A Single Entry: |
An XML File With Multiple Entries: |
|
<?xml version="1.0"?> <BBLOCK> <RENDER> <A>Title Here</A> <B>Description Here</B> <C>Hyperlink Here</C> <D>Image Link Here</D> </RENDER> </BBLOCK> |
<?xml version="1.0"?> <BBLOCK> <RENDER> <A>Item 1 - Title Here</A> <B>Item 1 - Description Here</B> <C>Item 1 - Hyperlink Here</C> <D>Item 1 - Image Link Here</D> </RENDER> <RENDER> <A>Item 2 - Title Here</A> <B>Item 2 - Description Here</B> <C>Item 2 - Hyperlink Here</C> <D>Item 2 - Image Link Here</D> </RENDER> </BBLOCK> NOTE: You do not need the "Item 1 - " or "Item 2 - " text in the fields. This was only inserted to show the scope of each entry. |
In order to use the JS XML Document Reader control on your web site you need to follow these steps:
Use this outline if you are having trouble determining what needs to be done to be able to have data inserted into your web pages in real-time.