473,386 Members | 1,785 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,386 software developers and data experts.

New window, referenced many times? (Easy)

I'm using asp.net to create a staff directory based on Active Directory, and
I'm sure this is an easy question, but I can't seem to find anything about
it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked, and
then populate it with data from the first window. What I'd like however is
to repopulate this second window when a 'different' button is clicked on the
first without having to destroy then recreate the second (created window).

That is, I click on one username in the original window and it places all
that persons data into a newly created second window. I click on a second
username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second
window please from my code?

Thanks,

Jason
Nov 18 '05 #1
3 1053
Use the same javascript function to open the page, this will reload the new
contents into the same window as the name of the window is the same=mywindow
function openpage(url)
{
window.open(url,'MyWindow',options)
}
"Jason" <ja***@grossmans.net> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
I'm using asp.net to create a staff directory based on Active Directory, and I'm sure this is an easy question, but I can't seem to find anything about
it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked, and then populate it with data from the first window. What I'd like however is to repopulate this second window when a 'different' button is clicked on the first without having to destroy then recreate the second (created window).

That is, I click on one username in the original window and it places all
that persons data into a newly created second window. I click on a second
username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second
window please from my code?

Thanks,

Jason

Nov 18 '05 #2
Hi,

I assume you do not want to open multiple windows for different button
clicks, rather use the same window. If so, use the same window name (2nd
parameters in window.open()) whenever you do a window.open().

HTH

"Jason" <ja***@grossmans.net> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
I'm using asp.net to create a staff directory based on Active Directory, and
I'm sure this is an easy question, but I can't seem to find anything about
it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked, and
then populate it with data from the first window. What I'd like however is
to repopulate this second window when a 'different' button is clicked on the
first without having to destroy then recreate the second (created window).

That is, I click on one username in the original window and it places all
that persons data into a newly created second window. I click on a second
username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second
window please from my code?

Thanks,

Jason

Nov 18 '05 #3
See, I knew there was an easy answer to this. Thanks alot for the replies.
"Steve Flitcroft" <as*******@hotmail.com> wrote in message
news:eW****************@tk2msftngp13.phx.gbl...
Use the same javascript function to open the page, this will reload the new contents into the same window as the name of the window is the same=mywindow function openpage(url)
{
window.open(url,'MyWindow',options)
}
"Jason" <ja***@grossmans.net> wrote in message
news:eM*************@TK2MSFTNGP12.phx.gbl...
I'm using asp.net to create a staff directory based on Active Directory,

and
I'm sure this is an easy question, but I can't seem to find anything about it in the newsgroups:

I know it's possible to create a new ie window when a button is clicked,

and
then populate it with data from the first window. What I'd like however

is
to repopulate this second window when a 'different' button is clicked on

the
first without having to destroy then recreate the second (created window).
That is, I click on one username in the original window and it places all that persons data into a newly created second window. I click on a second username and it simply overwrites the data in the created second window
again, and so on.

Could someone provide me a snippet of code on how I might find this second window please from my code?

Thanks,

Jason


Nov 18 '05 #4

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

Similar topics

8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
9
by: Karel | last post by:
All, I am completely new to Javascript but I have read some articles and examples about opening new windows from a webpage. However I am trying to open a data file ( in html format) that is...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
4
by: Jimi | last post by:
Given a C# project file path, can I use reflection to get all the assemblies referenced by the project? e.g., I know the path of a C# project, say, "c:\SomeProject.csproj", and I want to load...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
6
by: Prisoner at War | last post by:
Okay, no such thing, apparently, in the DOM.... How am I supposed to tell JavaScript "turn the whole page opaque"? Is there a "JavaScript/CSS dictionary" and a "JavaScript/CSS grammar" about??...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...

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.