transfer data from one html page to another html page

Hi there, this may be very easy so please humour my ignorance. I have a situation where I need to pass data in my "notes" variable to another html page and pick it up in a javascript variable on the new html screen. Usually I would send the data to a PHP file and use "GET" to obtain the data. No problems. But just found out PHP is not going to be installed. So I need to do something else.

I was thinking of using one of these two types of ways to submit data from notes to pdfcreate.html.

var notes =  player.GetVar("TextEntry1");
window.location.href = "jsPDF/mod1/pdfcreate.html?" + notes;

or

var notes = player.GetVar("TextEntry1");
window.open("jsPDF/mod1/pdfcreate.html?notesinput="+notes,"_newtab");

The question is on pdfcreate.html, how can I get the data received (notes) into a javascript variable? Thanks. If anyone can give me some code that would be great.
RupertAAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
You have to use the query_string

http://www.somedomain.com/page.html?some_data_here

Note query string has a limit on how much data can be passed.  HTML are static pages and javascript runs on the client side in that scenario.

What is the platform, other technologies might be available?
i.e. javascript will interact with CGIs to handle data transfers not as a

You could use javascript to set cookies, but that too has a size limit of data.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RupertAAuthor Commented:
Ok, so in your example, how do I use javascript on page.html to get the query string (some_data_here)? Thanks. It is just one variable I am sending, not multiple.
0
RupertAAuthor Commented:
so, far I am finding something like this to be OK. will need to test it further.


test1.html
0
arnoldCommented:
That is one wy, setting a cookie with the data and then retrieveing it .

you can set one that identifies the variable, another that has the data.
0
RupertAAuthor Commented:
Thanks arnold, my function was working nicely to retrieve the date from the previous screen. Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.