Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

baSetWindowState & Javascript

Status
Not open for further replies.

hkella

Technical User
Feb 1, 2005
1
US
Hello I've a few URL and PDF links in the projector that I'd like these links to "stay on top" of the projector always.. I have searched and found some info on this but still couldnt make it work for some reasons..

1) I'm using BuddyAPI and I also want to know if there's another way of doing this without using the Xtra.

Here is my code:

on mouseUp
openhere = baWinHandle()
baSetWindowState( openhere, "StayOnTop" )
end

2) Also I am trying to use gotonetpage and javascript to open a new window with specific size, etc.. but this code does not work...

on mouseUp
gotoNetPage("javascript:window.open('
end

I apologize for all these questions...Please help me! THANK YOU SO VERY MUCH
 
You can create a "modal" MIAW window without any Xtra. With MIAW, you have full control of the window (size, position etc). However you have to use Xtra to embed PDF/HTML in the MIAW, so this is not entirely "Xtra-free" solution.

Your question 1: baWinHandle() returns the main Director window. This is not what you want. You have to get the target window (using baFindWindow, baWindowList, baActiveWindow etc) before calling baSetWindowState.

2: You can't simply do gotoNetPage("javascript:window.open(…)") from a Projector. (You can from Shockwave embedded in HTML.) One way to get around this is to use the browser ActiveX control or WebXtra and tell that sprite to navigate to the pseudo page "javascript:window.open(…)".

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top