PDA

View Full Version : display a value from xml..simple


rhytha
11-21-2004, 01:55 PM
hi guys, this should be very simple to someone here..:cool:

i need to read the below value from my value.xml file in my server and display it in one table cell. I don't want to use any xml dom or anything, since this is the only value i will be getting from the xml value...

<free_access_time>20</free_access_time>


i like to use simple javascript since php/perl cannot b used in thie env. I want something like the below



<head>
<script>
var freemins;

function get_free_time{

............
............

}
</script>

</head>


<table><tr><td class="news">
<script>
document.write ("Browse for Free"+ freemins +"mins");
</script>
</td></tr></table>


thanx in advance for any help :D