Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing value from child to parent window

Status
Not open for further replies.

800320

Technical User
May 26, 2003
14
MY
I am going to pass a value from child to parent window, however, the value cannot be pass through the link below:


Child Window

<a href="pgAttendList.asp?vStaff=<%request.form("cboClientStaff")%>" onClick="javascript:window.opener.location.href(this.href);window.opener.location.reload();window.close();" target="_parent">

Parent Window

vStaff = request.querystring ("vStaff")

This just doesn't work. What am I doing wrong? Any help would be very much appreciated.
Thank you.

 
does the href have the value "vStaff"

Known is handfull, Unknown is worldfull
 
Hello, vbKris. i have test the vStaff and it is exist.

 
Two parts to this: write the querystring, read the querystring.

Which one isn't working?
 
Thank for replying.
The value cannot show at parent window after closing the child window. That mean is the part of request querystring in parent not work.
 

So do you get an error when trying to change the location of the parent window?
 
yes. The error such as "The Page cannot be found" is occurred. But when i delete the 'window.opener.location.reload();', the parent page reload again and the value can be pass to parent page. However,i juz want some parts in parent page reload only.

thank you for your help.
 
Sorry, my english level is quite poor.
There is an error " The page cannot be find" has been occurred when i try to change the location of parent window.
I found out that the value can be pass to parent page when i delete window.opener.location.reload(); in the onclick part.
However, it is not the result i want. Bcoz the whole parent page will be refresh and i want to reload a specific part only.
Thank you 'theboyhope' for being so patient.
 
yes, mr/mrs/miss theboyhope. i just wanna to reload certain section of the page.
 

404 implies that you've changed the location to a non-existent page but you say it works as long as you don't reload it again. Then you say you only want to reload a part of the page, which I'm not sure I understand either.

This isn't making any sense to me at all. Maybe someone else can figure out what you're on about ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top