473,473 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

window.opener.location.href issue

1 New Member
Hi I am trying to right a script that closes a popup and then refreshes the pener to specific URL

If have this that works form me

<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp? docNumber=' + <%=Request.QueryString("docNumber")%>;
window.opener.focus();
self.close()
</script>

But when I change that to this
<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp?docNumber=' + <%=Request.QueryString("docNumber")%> + 'strDocumentType=' + <%=strDocumentType%>;
window.opener.focus();
self.close()
</script>
Or
<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp?docNumber=' + <%=Request.QueryString("docNumber")%> + 'strDocumentType=' + <%=Request.QueryString("strDocumentType")%>;
window.opener.focus();
self.close()
</script>

I get nothing. I click the add button and noting happens. I am not even sure how to display the href value to troubelshoot.

I am totally new to java and this is the only time I have used it in my sites so it is probably something stupid so please if you can help ASAP please.

Thanx
Mar 17 '08 #1
1 8372
hidash
7 New Member
Hi I am trying to right a script that closes a popup and then refreshes the pener to specific URL

If have this that works form me

<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp? docNumber=' + <%=Request.QueryString("docNumber")%>;
window.opener.focus();
self.close()
</script>

But when I change that to this
<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp?docNumber=' + <%=Request.QueryString("docNumber")%> + 'strDocumentType=' + <%=strDocumentType%>;
window.opener.focus();
self.close()
</script>
Or
<script type="text/javascript">
window.opener.location.href = 'http://localhost/fmsuite/Sales/Document.asp?docNumber=' + <%=Request.QueryString("docNumber")%> + 'strDocumentType=' + <%=Request.QueryString("strDocumentType")%>;
window.opener.focus();
self.close()
</script>

I get nothing. I click the add button and noting happens. I am not even sure how to display the href value to troubelshoot.

I am totally new to java and this is the only time I have used it in my sites so it is probably something stupid so please if you can help ASAP please.

Thanx

hi,,

use
document.location.href="";
you can open a new window and u can close this by using self.close();
Mar 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Carol Lyn | last post by:
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to...
3
by: sentinel | last post by:
Hi all, I'm trying to reload a frame from a pop-up, but really cannot figure this out. Within my index.htm file, I make a link to call a pop-up frame with a javascript function that calls the...
4
by: ...D. | last post by:
OK. I am halfway decent with HTML. Now I want to try javascript for some things that HTML cannot do. I have looked over a tutorial & all. What I want to do is create a button, that when...
4
by: JPL Verhey | last post by:
Hi, I have a little test script in a pop up window. The pop up page refreshes every 2 seconds. I want it to check with every refresh if a certain page (log3.htm) is loaded in the opener window....
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
3
by: JohnEGee | last post by:
Hello, all, and TIA for any help you can offer. I've searched the Internet for answers and have finally come here. I've created a page (several, actually) with a link that opens a pop-up...
4
by: Kenneth | last post by:
Hi, I have two forms, parentForm and childForm. parentForm has a button(btn1) and a grid. childForm has a couple of textboxes and a button. The button on parentForm opens a new window of...
5
by: soni2926 | last post by:
Hi, I have a pop up window, that window needs to refresh the parent window when opened, I'm doing the following: window.opener.location.href(window.opener.location.href); problem I'm having...
3
by: Asterix | last post by:
Hi Guys, I know this is probably an easy one, but I am having issues. Basically, I have a pop-up (child) that controls the parent window. Clicking on a link on the child window should redirect...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.