SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 3rd, 2003, 07:08 PM
ricesteam ricesteam is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 ricesteam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I can open a new window, but how do i target back the old winow?

Hi

I want to know how I can target the old window and change its url.

For ex., I have two windows; one is the main window, the other is a confirmation like window. When a user confirms, the url on the main window would change to another page. How would I go to accomplish this?

Thanks

Reply With Quote
  #2  
Old April 3rd, 2003, 07:37 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: I can open a new window, but how do i target back the old winow?

In javascript you can reference the main window by the opener property. eg:

<a href="#" onclick="opener.location.href='otherurl.html';window.close( );">confirm</a>

else if the main window is a frame with the name property set, or has it's name property set through javascript, you can simply specify it with the target property. eg mainwindow has this in it's <head> section:

<script type="text/javascript">
window.name = 'main';
</script>

now you can do this in your popup:

<a href="otherurl.html" target="main">confirm</a>

Reply With Quote
  #3  
Old April 3rd, 2003, 07:50 PM
ricesteam ricesteam is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 ricesteam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: I can open a new window, but how do i target back the old winow?

Thanks, but where does this go
<a href="#" onclick="opener.location.href='otherurl.html';window.close( );">confirm</a>?

in the main window? And why is there a window.close()?

how would i specify the confirm window dimensions?

Reply With Quote
  #4  
Old April 3rd, 2003, 07:56 PM
crisp crisp is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Holland
Posts: 336 crisp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: I can open a new window, but how do i target back the old winow?

It goes in your popup window. I put in the window.close() in case you wanted to close the popup. If not, you can discard it.
To open a popup with dimensions and such you will also need javascript. Try searching on window.open and I'm sure you'll find a bunch of examples

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > I can open a new window, but how do i target back the old winow?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Try It Free




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway