Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: incrediBILL
If the query string is less than about 1350 chars, no problem to open jsp and get correct data in child jsp.
But, once query string is hug then either had "Error: Invalid Pointer" in that window.open line, or the part of data in child page was "null".
I tested same thing in NS 7.0, there is no any problem and works well, can any Pro here give me a help?
Or, is there any way to get huge string from parent page to child page without using query, session and cookies?
Thank you very much!
That should keep you from bumping into whatever limits exist on various browsers -- and there will be such limits although they will vary from browser to browser.
var features = 'height=600,width=820,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes,status=yes';
var longvalues = document.splotListForm.testarea.value;
var pagetool = "redirectUsetool.jsp?SplotNum=" + longvalues windowHandle = window.open(pagetool,'windowName',features);
In that textarea of parent page, I typed in over one thousand chars.
Use some code such as:
myForm.target = 'childwindow';
<form name="myForm" method="post" action="childpage.jsp" onSubmit="popUpResult()">
<input type="submit" />
When you submit this form, a popup window is opened called childwindow.
The target of the form is then set to this popup and the form is posted to childpage.jsp.
This causes the post to take place in the popup window, enabling you to pass as much data across as possible.