Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2007, 06:26 AM
Authorized User
 
Join Date: Nov 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Prob with retrieve the url of a child window from.

hello every one
how can i retrieve the url of a child window on a parent window in Microsoft IE6/IE7?

I am facing a problem with the IFrame, I have to load the url into IFrame and when the user click on any link within this Iframe It will have to open a new browser window with the clicked link. So I am unable to open the clicked link from the Iframe into new browser window, When I opened clicked link from Iframe, each time it opens page(home page /first page loaded into Iframe of the url link).

1)How can I open clicked link from the Iframe into new browser.
Also I have to take the value of clicked link url from the child browser when the user close the child browser.
So
2) How can I get clicked link value into my form control eg in a TextBox from the child browser.

Thanks
 
Old December 4th, 2007, 02:19 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I dont understand number 2, but to break out of the IFrame use a target="_new" in your link to open a new browser window. (Alternatively you can use Javascript window.open() )

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 5th, 2007, 03:14 AM
Authorized User
 
Join Date: Nov 2007
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From point 2 I means that for eg. In my form there is textbox and I frame. Textbox contains values of url and url have to be loaded into IFrame. Suppose http:\\www.yahoo.com is the value in the text box and http:\\www.yahoo.com is loaded into Iframe.
So problem start from here-- when user clicked on any link of yahoo.com from the Iframe, the clicked link have to open in a new browser and user can click any link of the new browser window, So finally when the user close the new browser window, the url value of the browser window have to be come into textbox. So i have to take the clicked link url values into my form , How can I do this..???

 
Old December 5th, 2007, 09:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there.. IMHO you are addressing your problem in a wrong way.. how can you expect to know what he click in a web app?? when you open your new explorer window, then you lost your user.. this tech is client server, so unless something get some data to the server, you will never know what the user is doing.. what are you trying to achieve??

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing parent window from child window arnabghosh Javascript How-To 1 December 26th, 2007 01:18 AM
I cant retrieve XMl child nodes jfergy Classic ASP XML 0 December 8th, 2006 10:24 PM
closed parent window when opened child window jaiwin Javascript How-To 0 October 8th, 2006 12:54 PM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.