computer Posted March 20, 2011 Share Posted March 20, 2011 Hi people. I am doing a class project in which there is an online form, into which a student should fill in his/her particulars and exam marks.Then he/she clicks a button after which:the percentage value of the marks is calculatedThe appropriate grade is given depending on the percentage And finally, these computed details(particulars and percentage and grades) are displayed in another form, in the same window or another window. If I choose to display the results in a form in the same window, I encounter no problems.But if I chose to display the results in another window(which I have opened using window.open() function), the result form is blank. Apparently the results are not being transferred to this form. So my question is, it possible to transfer data from one window to another using javascript.I have opted not to display the source code but can do so if needed. Thank you! Link to comment Share on other sites More sharing options...
jeffman Posted March 20, 2011 Share Posted March 20, 2011 You should be able to adapt the script here: http://www.w3schools.com/js/tryit.asp?filename=try_win_focus Link to comment Share on other sites More sharing options...
computer Posted March 21, 2011 Author Share Posted March 21, 2011 Just saw the window object opener property and been able to follow and successfully write the code. I guess I should have dag more b4 posing the question. But thanx a lot. Link to comment Share on other sites More sharing options...
computer Posted March 21, 2011 Author Share Posted March 21, 2011 Just saw the window object opener property and been able to follow and successfully write the code. I guess I should have dag more b4 posing the question. But thanx a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.