|
Prev: Help with lingo.ini
Next: Custom Cursors
From: Jorg Mann on 27 Nov 2006 03:52 Hi I need to start browser from director, with some definite link and than close it when user klicks a button How can this be done? Thanx Jorg
From: Rob Dillon - Adobe Community Expert on 27 Nov 2006 07:45 You can open a browser window from Director by using the gotoNetPage() function. Just specify the URL that you want. To close this window from Director is a whole different operation. Browser windows can only be closed remotely using Javascript. If this same browser window was not opened using js, then the window may not be closable using js. Each browser reacts differently to remote js commands. A window.X.close(), where X is the name of the window that was opened, will work from some browsers, it will generate an error message from others. Internet Explorer will generate a message that will make you think that this action will cause a change in the Earth's rotation. This is because Microsoft did not invent Javascript. You have no control over what browser the end user will be using, and you have no control over how the user's browser will react. If you can generate the page that you want to show using a cgi, then you can usually close the page using Javascript. The best method to close the window is to use a JS function on the page to be closed. Call the function from Director. -- Rob _______ Rob Dillon Adobe Community Expert http://www.ddg-designs.com 412-243-9119 http://www.macromedia.com/software/trial/
From: Jorg Mann on 27 Nov 2006 08:40 Thank you Rob. But how do I call a JS function in definite browser window? How Do I know which of the opened browser windows is "my", opened by my application? Probably I can use badapi Xtra to define window actual for me and close it to with budApi Functions? Or is there any other approach? "Rob Dillon - Adobe Community Expert" <rob@-remove-ddg-designs.com> wrote in message news:rob-5F2255.07454727112006(a)forums.macromedia.com... > You can open a browser window from Director by using the gotoNetPage() > function. Just specify the URL that you want. To close this window from > Director is a whole different operation. > > Browser windows can only be closed remotely using Javascript. If this > same browser window was not opened using js, then the window may not be > closable using js. Each browser reacts differently to remote js > commands. A window.X.close(), where X is the name of the window that was > opened, will work from some browsers, it will generate an error message > from others. Internet Explorer will generate a message that will make > you think that this action will cause a change in the Earth's rotation. > This is because Microsoft did not invent Javascript. > > You have no control over what browser the end user will be using, and > you have no control over how the user's browser will react. > > If you can generate the page that you want to show using a cgi, then you > can usually close the page using Javascript. The best method to close > the window is to use a JS function on the page to be closed. Call the > function from Director. > > -- > Rob > _______ > Rob Dillon > Adobe Community Expert > http://www.ddg-designs.com > 412-243-9119 > > http://www.macromedia.com/software/trial/
From: Rob Dillon - Adobe Community Expert on 27 Nov 2006 08:53 If you use a cgi to open the window, you can add a name parameter in the head of the document, you can also just write in a name parameter. Look at the window.name object in any Javascript reference. You may be able to use BuddyAPI for this. I've never tried. Remember that BuddyAPI only works from a projector. In article <ekeps8$4u6$1(a)forums.macromedia.com>, "Jorg Mann" <jorg.mann(a)gmx.de> wrote: > Thank you Rob. > > But how do I call a JS function in definite browser window? > How Do I know which of the opened browser windows is "my", opened by my > application? > > Probably I can use badapi Xtra to define window actual for me and close it > to with budApi Functions? > Or is there any other approach? > > > "Rob Dillon - Adobe Community Expert" <rob@-remove-ddg-designs.com> wrote in > message news:rob-5F2255.07454727112006(a)forums.macromedia.com... > > You can open a browser window from Director by using the gotoNetPage() > > function. Just specify the URL that you want. To close this window from > > Director is a whole different operation. > > > > Browser windows can only be closed remotely using Javascript. If this > > same browser window was not opened using js, then the window may not be > > closable using js. Each browser reacts differently to remote js > > commands. A window.X.close(), where X is the name of the window that was > > opened, will work from some browsers, it will generate an error message > > from others. Internet Explorer will generate a message that will make > > you think that this action will cause a change in the Earth's rotation. > > This is because Microsoft did not invent Javascript. > > > > You have no control over what browser the end user will be using, and > > you have no control over how the user's browser will react. > > > > If you can generate the page that you want to show using a cgi, then you > > can usually close the page using Javascript. The best method to close > > the window is to use a JS function on the page to be closed. Call the > > function from Director. > > > > -- > > Rob > > _______ > > Rob Dillon > > Adobe Community Expert > > http://www.ddg-designs.com > > 412-243-9119 > > > > http://www.macromedia.com/software/trial/ -- Rob _______ Rob Dillon Adobe Community Expert http://www.ddg-designs.com 412-243-9119 http://www.macromedia.com/software/trial/
From: Jorg Mann on 27 Nov 2006 10:13
but if I do no use Budapi, I still not get it, how can I close the window of browser? How can I communicate from director to window, opened with command gotoNetPage? Director Movie is working as projector, not as shockwave "Rob Dillon - Adobe Community Expert" <rob@-remove-ddg-designs.com> wrote in message news:rob-BD9969.08531627112006(a)forums.macromedia.com... > If you use a cgi to open the window, you can add a name parameter in the > head of the document, you can also just write in a name parameter. Look > at the window.name object in any Javascript reference. > > You may be able to use BuddyAPI for this. I've never tried. Remember > that BuddyAPI only works from a projector. > > In article <ekeps8$4u6$1(a)forums.macromedia.com>, > "Jorg Mann" <jorg.mann(a)gmx.de> wrote: > > > Thank you Rob. > > > > But how do I call a JS function in definite browser window? > > How Do I know which of the opened browser windows is "my", opened by my > > application? > > > > Probably I can use badapi Xtra to define window actual for me and close it > > to with budApi Functions? > > Or is there any other approach? > > > > > > "Rob Dillon - Adobe Community Expert" <rob@-remove-ddg-designs.com> wrote in > > message news:rob-5F2255.07454727112006(a)forums.macromedia.com... > > > You can open a browser window from Director by using the gotoNetPage() > > > function. Just specify the URL that you want. To close this window from > > > Director is a whole different operation. > > > > > > Browser windows can only be closed remotely using Javascript. If this > > > same browser window was not opened using js, then the window may not be > > > closable using js. Each browser reacts differently to remote js > > > commands. A window.X.close(), where X is the name of the window that was > > > opened, will work from some browsers, it will generate an error message > > > from others. Internet Explorer will generate a message that will make > > > you think that this action will cause a change in the Earth's rotation. > > > This is because Microsoft did not invent Javascript. > > > > > > You have no control over what browser the end user will be using, and > > > you have no control over how the user's browser will react. > > > > > > If you can generate the page that you want to show using a cgi, then you > > > can usually close the page using Javascript. The best method to close > > > the window is to use a JS function on the page to be closed. Call the > > > function from Director. > > > > > > -- > > > Rob > > > _______ > > > Rob Dillon > > > Adobe Community Expert > > > http://www.ddg-designs.com > > > 412-243-9119 > > > > > > http://www.macromedia.com/software/trial/ > > -- > Rob > _______ > Rob Dillon > Adobe Community Expert > http://www.ddg-designs.com > 412-243-9119 > > http://www.macromedia.com/software/trial/ |