Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2003
    Posts
    6

    Web Browser - New page in IE

    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

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

  3. #3
    Join Date
    Nov 2003
    Posts
    6
    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 ?

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    As far as I know you cannot squelch someone else's remote links...

    Corey Milner
    Creative Director, Indigo Rose Software

  5. #5
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    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.

  6. #6
    Join Date
    Nov 2003
    Posts
    6
    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

  7. #7
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts