StevenM
05-06-2003, 09:51 AM
Hi there, I was wondering if anyone can help with this problem.
I'm putting together a little javascript which takes the input of 20 questions from the user then produces a set of results in an order determined by the answer to the questions. This has to run offline (from a CD actually) and it all seems to work fine so far except...
I also need the user to be able to save this data for later use, rather than having them go through the 20 questions again, and this is where I am completely lost...
Can I save the answers in a cookie so that it is displayed the same way each time they return OR is there some way to transfer data into a new page so it could be formatted and they could at least go "File >> Save As" to keep the results.
At the moment File >> Save as wont work since it simple resets the page.
I'm new to all this javascript stuff so any help at all would be appreciated, thanks (Hopefully this all made sense!).
I'm putting together a little javascript which takes the input of 20 questions from the user then produces a set of results in an order determined by the answer to the questions. This has to run offline (from a CD actually) and it all seems to work fine so far except...
I also need the user to be able to save this data for later use, rather than having them go through the 20 questions again, and this is where I am completely lost...
Can I save the answers in a cookie so that it is displayed the same way each time they return OR is there some way to transfer data into a new page so it could be formatted and they could at least go "File >> Save As" to keep the results.
At the moment File >> Save as wont work since it simple resets the page.
I'm new to all this javascript stuff so any help at all would be appreciated, thanks (Hopefully this all made sense!).