I am developing a solution to handle localization on our web product. To do this i save nodes of text in different languages in a XML file. I need to be able to get the values from this file both server and client side.
When i get the values serverside, i store them in the http cache so they will be faster to load next time they are requested. This is working very well.
Now, how can i do the same clientside with JavaScript? Right now i use JQuery to access the file and find the right node every time.
Is there a better way?
I believe if you build an array which loads the files in javascript then you can access that array instead of the files and they will be cached. This is how image files are pre-cached in javascript so I would assume it would work for xml files as well.