I use AJAX for this. I save all of my info in a .txt file. Seperate each information field by the "=" sign.
Take a look at this: (.js file)
Code:
function getFile(filename)
{ oxmlhttp = null;
try
{ oxmlhttp = new XMLHttpRequest();
oxmlhttp.overrideMimeType("text/xml");
}
catch(e)
{ try
{ oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{ return null;
}
}
if(!oxmlhttp) return null;
try
{ oxmlhttp.open("GET",filename,false);
oxmlhttp.send(null);
}
catch(e)
{ return null;
}
return oxmlhttp.responseText;
}
function getData(param){
return getFile('data.txt').split(param+'=', 2)[1].split('\n', 1)[0]
}
I could call this function like this:
Code:
<script type="text/javascript">
document.write(getData('variable1'))
</script>
and data.txt would be as follows:
Code:
variable1=This is variable one text
variable2=This is variable two text
myVar=this is the myVar text
So all you have to do is edit the .txt file.
Bookmarks