I have a js script which has only one variable, but that variable holds a 20 MB String. I need to load that script so i can transform that String Into an XML object, so i can emulate offline search on a website.
I need ideas on how to accomplish this.
First, I must probably wait the js script to be loaded. I don’t know how to do that, i tried with jQuery and i did not succeed.
OPTION 1:
OPTION 2:
use flash — you can do better ajax with it (if i am not wrong) and it will also tell you the loading status
OPTION 3:
in HTML 5 browsers you might use WebSockets. and gracefully degrade in older clients