ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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
  #1  
Old February 25th, 2003, 06:24 AM
faithiology faithiology is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: egypt
Posts: 16 faithiology User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question refresh window from another one

how can i refresh window from another by just clicking button


thank u all for help

Reply With Quote
  #2  
Old February 25th, 2003, 12:43 PM
yassoor's Avatar
yassoor yassoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada - Egypt
Posts: 60 yassoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
JavaScript

I don't think this is possible using ASP...
you should probably be looking for Client side Javascript to do something like that.

I hope this is of any help
__________________
I hope this is of any help to anyone.

Yassoor
http://www.WebsitesCreation.ca

Reply With Quote
  #3  
Old February 26th, 2003, 11:47 PM
ngibsonau ngibsonau is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 138 ngibsonau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Yes you can refresh another window using client side scripting ie. Javascript or vbscript

All you have to do is name you windows. You have to name the windows when you open them in script. Then you reference one window from another.

The following show that you can only refresh the page from the page that opens the window, or you have to ask the window that opened the window to change via a function.
I guess this is for security reasons.

The following code opens two windows and one child changes the href of the other with the help from the parent. The parent olso changes the href of one of its children.
This can of course be used to refresh asp pages as well.

parent.html
Code:
<html>
<head>
  <title></title>
<script language="javascript">
var win2;

function change(href){
  win2.location.href = href;
}
</script>
</head>
<body>
<form>
<input type="hidden" value="8" name="y">
  <input type="button" value="open1" onclick="win1=open('one.htm','title1','width=200,height=200');">
  <input type="button" value="open2" onclick="win2=open('http://www.yahoo.com','title2','width=200,height=200')">
  <input type="button" value="change1" onclick="win1.document.location.href='http://www.google.com'">
</form>
</body>
</html>


one.htm
Code:
<html>
<head>
  <title></title>
</head>
<body>
<form>
  <input type="button" value="change2" onclick="opener.change('http://www.google.com');">
</form>
</body>
</html>


Here is an alternative version of one.htm
I don't exactly know how you want to activate the refresh. Do you consider an <a> tag a button?
Code:
<html>
<head>
  <title></title>
</head>
<body>
<form target="title2" action="http://www.tucows.com">
  <input type="button" value="change2" onclick="opener.change('http://www.google.com');">
  <input type="submit" value="change2b">
</form>
<a href="http://www.tucows.com" target="title2">click</a>
</body>
</html>
Comments on this post
mauled agrees: good example
__________________
--

ngibsonau

Last edited by ngibsonau : February 27th, 2003 at 12:20 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > refresh window from another one


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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