Read XML with jquery/javascript every 5 seconds

violajaipur

New Member
I have a htmlindex.html:\[code\]<html><head> <title>Facebook</title> <script type="text/javascript" src="http://stackoverflow.com/questions/xdata/js/jquery.js"></script></head><body> Tasks (<span id="tasks">0</span>) Messages (<span id="messages">0</span>) Notifications (<span id="notifications">0</span>) <script type="text/javascript"> $(document).ready(function() { var pagetitle = document.title; document.title = pagetitle+' NEW NOTIFICATON'; }); </script></body></html>\[/code\]and a xml filepage.xml:\[code\]<?xml version="1.0" ?><page tasks="1" messages="3" notifications="3"/>\[/code\]How do i make that every 5 seconds \[code\]index.html\[/code\] to read \[code\]page.xml\[/code\] and modify the title like in faceboook ("(1) Facebook") and also modify tasks, messages, notifications ...I'm having problems at reading the xml. If anyone can help me? PS - I prefer jQuery ... but JavaScript works as well
 
Back
Top