6 Replies Latest reply on Sep 9, 2009 2:22 PM by Tols (UK)

    browserName()

    Steveorevo Level 1

      Does Director no longer support the launching of a web browser to a specific page?

       

      When creating a projector on WinXP with the code:

       

      -- Lingo

      open "http://www.google.com" with browserName()

       

      // Javascript

      _player.open("http://www.google.com", browserName());

       

      Director just launches the browser attempting to pass the webpage as a command line parameter which doesn't fly on OSX or Windows with IE7 and greater now.

       

      Can anyone confirm?

       

        • 1. Re: browserName()
          Chunick Level 3

          scarroll wrote:

           

          Does Director no longer support the launching of a web browser to a specific page?

           

          When creating a projector on WinXP with the code:

           

          -- Lingo

          open "http://www.google.com" with browserName()

           

          // Javascript

          _player.open("http://www.google.com", browserName());

           

          Director just launches the browser attempting to pass the webpage as a command line parameter which doesn't fly on OSX or Windows with IE7 and greater now.

           

          Can anyone confirm?

           

          I'm running Vista. It works for me in FF3.5 and IE8 from MX2004, but not D11.5. I'm assuming you're running D11+?

          • 2. Re: browserName()
            Steveorevo Level 1

            I'm using Director 11. I guess in MX2004 it used the proper DDE channel or whichever to tell IE to go to the given URL? Its obvious in D11 that its passing it as a command line parameter which is not working for me. Instead IE attempts to navigate to something like

             

            http://files/Internet%20Explorer/IEXPORE.EXE%20http://www.google.com

             

            when executing

             

            open "http://www.google.com" with browserName()

             

            Which is odd. It appear that it launches the browser in browserName, it knows the parameter is a URL. Why it inject http://files/Internet%20Explorer/IEXPLORE.EXE into the URL is beyond me.

             

            See the attached image.

            • 3. Re: browserName()
              Chunick Level 3

              scarroll wrote:

               

              I'm using Director 11. I guess in MX2004 it used the proper DDE channel or whichever to tell IE to go to the given URL? Its obvious in D11 that its passing it as a command line parameter which is not working for me. Instead IE attempts to navigate to something like

               

              http://files/Internet%20Explorer/IEXPORE.EXE%20http://www.google.com

               

              when executing

               

              open "http://www.google.com" with browserName()

               

              Which is odd. It appear that it launches the browser in browserName, it knows the parameter is a URL. Why it inject http://files/Internet%20Explorer/IEXPLORE.EXE into the URL is beyond me.

               

              See the attached image.

              yup. That's what I got in IE8 using D11.5... so, I'd say it's broken. I'll see about submitting a bug report about it.

              • 4. Re: browserName()
                Sean_Wilson Adobe Community Professional

                In the meantime (assuming this will ever be addressed by engineering...) you might use Buddy API's baOpenURL()

                • 5. Re: browserName()
                  Chunick Level 3

                  Sean_Wilson wrote:

                   

                  In the meantime (assuming this will ever be addressed by engineering...) you might use Buddy API's baOpenURL()

                  Well, we do know how quirky engineering can be about fixing the stuff they broke in updating the code base for D11 & D11.5... but I'm crossing my fingers that they deal with this and other issues.

                  • 6. Re: browserName()
                    Tols (UK)

                    what's wrong with gotonetpage(url)?

                     

                    or am I missing something?!

                     

                    though i recommend checking what the default app for html files is first, because if its 'chrome' and your url is actually a web page on your computer then you'll want to change any spaces in the pathname to %20 - me, I have a handler called gotonetpage which does this in place of the standard director one.

                     

                    I guess you can use browsername() to return the default app. Actually I've just looked in the help: that's what its intended for!

                     

                    Plus I thought 'open filename with programname' was dodgy anyway, especially if the app is open... the bug you are talking about is there I would imagine. Or, the url parameter that a browser app is passed is slightly different (syntax-wise) to a file which an app is asked to open and its only the latter that open ... with... was designed to handle.