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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Window

Status
Not open for further replies.

merugu

Programmer
Joined
May 7, 2006
Messages
3
Location
US
Hi,

I am facing one problem in my development. I have several links on my home page. When a link is clicked it should open that corresponding page in a second window. After that any other link is clicked on the home, it should open that link in the already opened second window. But not in third window.

Any help is appreciated. Thanks in advance.

-Ravi.
 
Are you using popup windows? If so, simply put a string as the second parameter to the window.open call:

Code:
window.open(url, 'myWinName', args);

If you're using the target attribute, then simply specify the same name for all your links:

Code:
<a href="someUrl.html" target="myWinName">link 1</a>
<a href="someUrl2.html" target="myWinName">link 2</a>

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Hi Dan,

Thanks for your reply. In my case, both links are pointing to the same URL. But when user clicks the link, I am putting different data in the session. In popup window on page load event I have to load that data. First time it is loading the data correctly. But second time it is not loading with new data, just openning with same old data.

I am using ASP.NET.
-Ravi.
 
thats whats so great about programming, we have endless possiblities in our concept to production. Each method is unique, just like everyone else.

this is an ASP.net forum question, but we'll get you rolling here.

if you can provide more details on your concept, and post your code examples, im sure we can help get this resolved.

1. why would a user lose focus on your second "pop up", why wouldnt they close it?

2. why do you need pop ups? is there anyway to integrate this into the same page?

3. what variables are you building into your home page links and how do they apply to the page to be opened?

4. are you using asp:Hyperlinks, or asp:LinkButtons, or a hrefs?

5. how far have you gotten into the code until you ran into the issue? is it javascript code, or asp code that is the issue?


integrating a href's might be an easy fix, you dont always need server side controls to accomplish data fetching!
 
Hi,

First let me thank you all for your help.
I am developing a helpdesk tool for an ordering tool. My main application is ordering application. When ever any user gets any problem, he logs that issue using helpdesk tool. On Ordering App home page, I have a grid to display number of tickets in different statuses. When a user clicks on any link on the grid, it should open the helpdesk with those tickets populated in that page. If user selects the tickets with different status. Those tickets should be populated into the helpdesk page.

I am using the linkbutton. On server side click event of this button I am putting the information related to the ticket selected.

On client side, I am using the "widow.open" to open te new window.It is not refeshing the data. Please help me to fix this issue.

Thanks,
Ravi.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top