Click to See Complete Forum and Search --> : hide toolbar and status bar


macsym
07-13-2004, 10:25 AM
Hi everybody,

I am trying to launch a pop-up from a link on my website but some anti-popup software block pop-up windows (javascript:window.open()) even if the user clicked on a link!

My idea is to create a regular Href (_blank) link on the main page and store a little script (in the page that is opened) that would resize the window, hide the status bar, hide the toolbar...

I know how to resize the browser's window with Javascript but I can't find how to hide the status bar and the toolbar. Is it possible?

Thanks in advance for any help,

Macsym

Vladdy
07-13-2004, 10:26 AM
How about staying within the window USER prefers to give to your website?

macsym
07-13-2004, 10:31 AM
Hi Vladdy,

Thanks for your VERY QUICK answer!

can you please elaborate a little more? What do you mean by "window USER prefers"?

Thanks in advance,

Macsym

Vladdy
07-13-2004, 10:36 AM
When I browse the web I have my browser sized the way I like it. I expect the sites to stay within the browser. My (real) browser will not allow pop-ups nor it will allow any manipulation of the window such as moving and sizing.

If you want visitors to stay on your site, design it in a respectful manner - make it adjust to user preferences.

macsym
07-13-2004, 10:43 AM
Hi Vladdy,

I guess, I have to explain a little more what my end goal is. I am creating a mp3 player in Flash. To keep a good design, the player must be embedded into a popup window that fits exactly its size.

As I explained in my first post, there is a problem with the javascript:window.open() function since some anti-popup software block them even if the user clicked on a link.

Do you know if Javascript is able to hide the status bar and the toolbar in another way than window.open()?

Thanks again,

Macsym

Vladdy
07-13-2004, 10:58 AM
There is no connection between "good design" and having to have a popup of exactly the same size.
Having pop-up is bad design to begin with, beyond that it's your job to come up with a design that adjusts to user window the best it can.

macsym
07-13-2004, 11:14 AM
Vladdy,

it is extremely hard to build a flash application that would scale on the user's window size. Of course, you can change this parameter when you embed the animation but all the components within the application don't move which is almost impossible to solve. I also HATE popups when unwanted but in my case, the user CLICKS on a link to launch the popup...

Anyway, I am not here to debate about design, I think everybody will have a different opinion. The only reason I am here is to ask if Javascript is able to hide the status bar and the toolbar in another way than javascript:open()...

Vladdy
07-13-2004, 11:25 AM
As I told you, real browsers can be set to prevent window manipulation and most people who have them use this option.

As far as design goes, so far I presented you with facts, not opinions.

You do not have to scale your flash application with the window. Centering it within a window that has a fitting background is much more user friendly than spawning new windows or messing with existing window.

macsym
07-13-2004, 11:42 AM
mm,

What do you mean by "real browsers" (Mozilla, IE, Opera, Safari??). The main reason of why I want to create a pop up is hiding the toolbar. There are really bad software such as SWF decompiler that are able to get the code of Flash movies. It means that everybody can steel your hard work in a matter of minutes. This software has an icon in the toolbar that is able to download your flash movie and decompile it. By hiding the toolbar, I can avoid the most stupid thefts to steel my code (it's still possible bu harder with no toolbar).

so here comes my question that you didn't answer yet: IS IT POSSIBLE TO HIDE THE TOOLBAR WITH JS?

Macsym

Vladdy
07-13-2004, 12:38 PM
Which part of "does not allow window manipulation" does not answer your question?
As far as preventing someone from decompiling your flash movie.... as with the rest of the web coding that reaches client:
1. You can not prevent someone who really wants it from having it
2. The desire to hide the code is inversly proportional to that code quality
:rolleyes: :D :D