I'm using a marketing automation platform (Eloqua) that uses cookies to track users on our website (or our "microsite" on their website).
On a page for my customers to set their mail preferences they have a javascript "Web Data Lookup" I can use to grab the users cookie, then pull down data from their profile in the database. I then use my own added javascript to then populate the form, and to show and hide certain sections based on their data.
The trouble is the web data lookup is quite slow (particularly on slower connections) and I'm getting a few forms submitted where data is missing because the scripts haven't had time to properly populate.
I'd like to add some JavaScript or jQuery to put up a "loading" or some sort of similar message while all the data loads, forms populate, sections hide/unhide in the background.
Any idea where to start?