473,395 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Getting the data back to the parent Page.

Hi all,
I have a problem while sending the data to and fro a JSP page. When i
click a link on a JSP page(say parent.jsp), i have to open a diff
page(say child.jsp), get the data from that page and pass that data to
the parent.jsp and do some actions with the data i recently got.
I am not using window.open(...)..so i definitely can't use opener
object.
Also i can't use form.action(parent.jsp?...) as i have to do database
hits to open the parent.jsp again. i don't want to do it. Is there any
other way to do this.
Please help me in this regard,
Thanks in Advance,
Ravi.

Aug 31 '06 #1
4 2209
Ravi Kishore wrote:
Hi all,
I have a problem while sending the data to and fro a JSP page. When i
click a link on a JSP page(say parent.jsp), i have to open a diff
page(say child.jsp), get the data from that page and pass that data to
the parent.jsp and do some actions with the data i recently got.
I am not using window.open(...)..so i definitely can't use opener
object.
Also i can't use form.action(parent.jsp?...) as i have to do database
hits to open the parent.jsp again. i don't want to do it. Is there any
other way to do this.
Please help me in this regard,
Thanks in Advance,
Ravi.
Hi Ravi,

Window1 contains parent.jsp
which opens a new window
Window2 that contains child.jsp.

Addressing Window1 from Window2:
If you want to access something in Window1 form Window2, you can always use
the reserved word: opener

opener.document.location='www.google.com';
is a valid way to address the opener window.

Addressing Window2 from Window1:
If you open from Window1 via window.open() that functions returns a
window-reference to Window2.
If you want to adres Window2 from Window1, use window.open() and remember
the value it return (the childwindowreference).

Regards,
Erwin Moller
Aug 31 '06 #2
He mentioned that he's not using separate windows. He loading an
entirely new page into the same window...

You will most likely want to look into a hidden frame or hidden window
approach. This loads a page that always stays loaded in one frame (or
window) that can be used to pass information around.

Javascript is an interpreted language and is executed by the client
browser, therefore is must be loaded (in a currently active page) to
work.

Aug 31 '06 #3
Tom Cole wrote:
He mentioned that he's not using separate windows. He loading an
entirely new page into the same window...

You will most likely want to look into a hidden frame or hidden window
approach. This loads a page that always stays loaded in one frame (or
window) that can be used to pass information around.

Javascript is an interpreted language and is executed by the client
browser, therefore is must be loaded (in a currently active page) to
work.
Hey
That one is gud idea infact. Thanx for the idea.
I iwll get back to you, if I have any issue in implementing that.
Thanx once again!

Aug 31 '06 #4
"Ravi Kishore" <in************@gmail.comwrote in
news:11**********************@m73g2000cwd.googlegr oups.com:
I have a problem while sending the data to and fro a JSP page.
Doesn't JSP stand for Java Server Page? Doesn't that mean the page comes
from a server running Java? Does this have anything to do with Javascript?
Aug 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve | last post by:
I'm working in PHP, but am also using JavaScript, so perhaps there is a better way to do this using more PHP code...... I setup a search screen for my database, the user enters data and submits...
4
by: Al Jones | last post by:
I have an application - an insurance form - which requests personal data on form one. If the user checks auto or homeowner (or both) on the first form I need to collect data from each of these...
18
by: lawrence | last post by:
If I'm pretty sure there is just one form on the page, can i do this? var myForm = document.forms; If I'm not sure about the form, is it safer to do this? if (document.forms) { var myForm =...
2
by: Cheryl | last post by:
Hi, I have encounter a problem.Language use is C#. I would like to open a new window (is a modal window, where I m not able to switch from parent window after this window is open)from the parent...
3
by: Peter | last post by:
I have a webform on this form is a User Control and another webform in IFRAME On the User Control there is a save button. I want to click this button and somehow tell the webpage in IFRAME that...
3
by: Hyrum Mortensen | last post by:
Hi, I want to have an asp:hyperlink (with target set to _blank) that points to a multi-field form a user would fill out. After submitting the form, I want to dynamically change the text of the...
10
by: darrel | last post by:
I have this structure: mypage.aspx (class = mypage) myusercontro.ascx On the mypage.aspx I can declare a variable: animal = "monkey" I can read this from the UC by simply doing this:...
2
by: Ravi J | last post by:
Hello, in an ASP.NET page, when the user selects certain button, I would like a small browser window to popup and ask user for some input. Once the user enters the data and submits through a...
5
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.