PDA

View Full Version : Web Browser - New page in IE


Para
11-02-2003, 09:58 PM
Hi again,

Sorry to keep posting i dont wanna seem like im just gettin everything done without checking or finding out myself i am trying and have looked.

The problem im running into now is when you click on a link that opens a new page it opens it in IE or your default web browser. Is there anyway of getting it to open another Media Studio browser ??

Thanks Again

Corey
11-02-2003, 10:07 PM
OK if you have 1 window and you wish to open a link in a new window this will result in 2 windows. If you wish your second window to be a new AutoPlay Studio app window rather than IE then simply create a new application with a web browser object pointed to your desired web page, publish that, and then just call that from your link instead of the existing web link.

You can detect links in browsers by using named anchors such as

#launchApp

and then using a WEB OBJECT > GET PROPERTY > URL action and a STRING > GET DELIMITED STRING action (set to index item 1 with # as the delimiter) in the On Navigate Complete event to retrieve the link into a variable. From there it's easy to attach any given action(s) to any specific links using IF statements.

:)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Para
11-02-2003, 10:11 PM
ok i think i got all that but what if for e.g. i goto www.indigorose.com within a AutoPlay Studio app window i then click on a link that opens a new window.

I have no control over the links on sites i dont controll, how would i work round that ?

Corey
11-02-2003, 10:32 PM
As far as I know you cannot squelch someone else's remote links...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

JimS
11-02-2003, 10:35 PM
When a link on a web page opens in a new window, it uses your default browser to open that new window. So whatever a person has as a default browser, Internet Explorer, or Netscape, or whatever, that’s what it will use. So no, I can’t think of any way to do it directly.
Technically it could probably be done. I can think of a way, but it would be ugly, and quite slow.

The way I’m thinking of would require your AMS browser to download the web page as a web file, then re-write the page, removing all instances of” _blank”. Then displaying the new page in your browser.
It’s tougher than that, because you’d have to replace all relative links with absolute paths, when you re-write the page.

It might be an interesting project, but I’m not up for it.

Para
11-02-2003, 10:52 PM
might give it a shot in a few years once i know the prgm like the back of my hand lol

Thanks for your help guys

Corey
11-02-2003, 11:12 PM
True JimS, you could set up a loop which kills all standalone IE windows a couple times per second. In fact given enough tinkering you might even be able to grab the URL it's headed to and send that to the main window browser for opening even as a new link window is being destroyed by the loop.

Also ringing true for me is your statement, "Might be an interesting thing to do but I'm not up for it right now..." :)

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)