Open URL in Previous Browser

This is a discussion on "Open URL in Previous Browser" within the Flash & Multimedia Forum section. This forum, and the thread "Open URL in Previous Browser are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 14th, 2006, 13:02
New Member
Join Date: Sep 2006
Location: Michigan
Age: 36
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Open URL in Previous Browser

On my page, I have a link to a virtual catalog that I am working on. Once the user clicks on the catalog it opens in a new window. When viewing the catalog the user can click on any of the images which in turn is suppose to redirect to a different browser window to go to that page. As of right now, I am using the

GetUrl("http://ToThePage.com","_blank"); which opens a new browser window.

What I would like to do is to have the flash document redirect the request back to the original browser that had made the request for the flash document in the first place. So if I start with browser A and clicking a link in that browser opens browser B which has an embedded flash document, I would like the flash document to redirect the GetUrl back to browser A.

Thanks,

Kneale
Reply With Quote

  #2 (permalink)  
Old Sep 14th, 2006, 16:01
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Open URL in Previous Browser

Did you Name browser A?
You can reference it that way, Target "Browser_A"

But you have use Javascript it to bring it to front.

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old Sep 14th, 2006, 18:28
New Member
Join Date: Sep 2006
Location: Michigan
Age: 36
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Open URL in Previous Browser

I did a little research and I added the following code to browser "A".

<SCRIPT TYPE="text/javascript">
<!--
window.name = 'PageFlip';
//-->
</SCRIPT>

and in the action script I am using

GetUrl("http://ToThePage.com","PageFlip");

When I run in IE I do not have any problems but when I run in Mozilla or Firefox a new page opens each time.

Kneale
Reply With Quote
  #4 (permalink)  
Old Sep 15th, 2006, 12:38
New Member
Join Date: Sep 2006
Location: Michigan
Age: 36
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Open URL in Previous Browser

I figured it out. When using Firefox, the domain name of the flash document has to be the same domain name of the name window. I had browser A on my local machine and browser B on the network.

Kneale
Reply With Quote
  #5 (permalink)  
Old Sep 15th, 2006, 13:43
Junior Member
Join Date: Sep 2006
Location: reston, virginia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Open URL in Previous Browser

Well that makes sense.
Have a nice day.
Reply With Quote
  #6 (permalink)  
Old Sep 15th, 2006, 14:38
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: Open URL in Previous Browser

The proper way is to use "window.opener" (window object pointing to the originating window)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
Reply

Tags
previous browser, url in browser

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open in a New Browser Window Berk Bonebonce Web Page Design 11 Feb 10th, 2008 21:35
try to open php and asks if i want to open or save file steven rowlands PHP Forum 6 Feb 20th, 2007 21:42
open new browser window snappy Web Page Design 4 Nov 3rd, 2006 17:49
Open Browser Window Galaxyblue Web Page Design 11 Feb 14th, 2004 18:37


All times are GMT. The time now is 22:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43