UBB.Dev
Posted By: AllenAyres javascript pop-up and parent pages - 12/21/2000 11:22 AM
I am doing some work on the ubb im's and am trying to get a link on the resulting pop-up to either:
1. open the pm inbox in the browser window that opened the pop-up (and auto-close the pop-up)
or:
2. open a new full-size browser window to the pm inbox and auto-close the pop-up

Right now I have a link on the icon1.gif that opens the pm inbox, but it opens right in that small pop-up...[Linked Image] target="_parent" and target="_blank" doesn't do anything.


I would also like the javascript that closes pop-ups when clicked on (to add to the text on the pop-up that says the im was sent successfully, please close this window).

Thanks for any help...

------------------
Allen

- http://www.stand318.com
Posted By: Em8 Re: javascript pop-up and parent pages - 12/21/2000 6:46 PM
to the first one like this:

Ubb im
Pm Inbox

Both having this:


------------------
Posted By: empire Re: javascript pop-up and parent pages - 12/24/2000 10:01 PM
em8 is right. To make the main window a target, you need a javascript on the main page to name it:
Code
code:

then, in the link (in the popup) just make the target "ubbdevmain".

Closing a popup is really easy:
Code
code:

------------------
inepted
Posted By: Dark_Wizard Re: javascript pop-up and parent pages - 12/29/2000 2:49 PM
Try this FAQ:
http://developer.irt.org/script/845.htm
This site has an awesome knowledge base on JavaScript http://www.developer.irt.org/script/

------------------
I do not offer support by EMail or ICQ, please post your question at UBBDev....

This message has been edited by Dark_Wizard on December 29, 2000 at 06:56 AM
Posted By: AllenAyres Re: javascript pop-up and parent pages - 01/04/2001 8:23 AM
Nice... thanks guys.

------------------
Allen

- http://www.stand318.com
© UBB.Developers