Click to See Complete Forum and Search --> : Popups in Javascript


VBsix2net
March 11th, 2005, 02:18 AM
I made a javascript function that works through a link. The function uses the age old window.open method to create a popup when the link is clicked. Only one thing bugs me. When I test in on my computer it's perfect, but on the server it seems as though the status feature setting is being ignored. I tried setting status to "no" and to "0". No matter what, the status bar shows on the popup when viewing it as-is on the server. It looks fine on my computer.

What gives?

Dr. Script
March 11th, 2005, 05:45 AM
First, move the function from the href="" property to the onclick="" event handler. Also, you won't need javascript:window.open(...), just the window.open(...) part. The rule for all these features is that when you change one of them. Preferably, the only thing necessary other than height and width would be scroll (set to yes or no). The window should then lose its status bar.

Dr. Script

VBsix2net
March 11th, 2005, 03:17 PM
"First, move the function from the href="" property to the onclick="" event handler"

Since I have multiple pages that use it, I just put it in a .js file as a function and I call it in link tags using onClick when necessary.

"Also, you won't need javascript:window.open(...)"

Had that covered as well.

"Preferably, the only thing necessary other than height and width would be scroll (set to yes or no). The window should then lose its status bar."

Ok, I went ahead and simplified it a bit. The status bar is still absent when I test it on my computer, but it's there when I test it online.

Dr. Script
March 11th, 2005, 07:33 PM
Hmm ... OK. I assumed you were a beginner. But I was wrong in that assumption. Do you have the code online anywhere that you could link us to?

VBsix2net
March 12th, 2005, 04:05 AM
No need. The problem apparently isn't my code. I ran the page on 3 different computers and it all worked perfectly fine on all of them. This probably means that the problem is local to my system, or maybe specifically to my browsers. What could be throwing this off?

Dr. Script
March 12th, 2005, 06:33 AM
Wow ... an unsolvable problem ;) What browser are you running? If you use Firefox, I believe there is a setting that prohibits the removal of the status bar that might be activated.

VBsix2net
March 12th, 2005, 09:39 PM
On all three computers I tested it in IE6 and Firefox 1. I also tested it using Netscape 7.2 on my computer and it actually turned out fine. So it's only acting up when viewed through Firefox and IE on my computer. That leads me to believe it's an IE setting since I just redownloaded and installed Firefox and Firefox imports a ton of IE settings. Any ideas?

Dr. Script
March 12th, 2005, 10:11 PM
Its possible, but unlikely to be an IE setting. All IE has about Javascript is to enable or disable it. Contrarily, FF has advanced options regarding JS.

VBsix2net
March 12th, 2005, 11:23 PM
Well, considering those are the only two browsers that are retaining the status bar when I load the popup, it has to be something common between them.

Update: I just went into FF and I went to Tools > Options > Web Features > JavaScript/Advanced > and clicked "Hide status bar". It now works fine in FF but it still is fussy in IE6. Since IE6 just flat out accepts JS as it is, why would it be doing this?

Dr. Script
March 13th, 2005, 07:13 AM
Hmmm. I'm clueless on what IE is doing here. I never had a problem with it. However, it seems to be less of a problem since its only doing that fror you.

VBsix2net
March 14th, 2005, 12:32 AM
Good point. But I'm the type of person that'll stress over this kind of stuff. I really wanna know what is causing it!

Dr. Script
March 14th, 2005, 05:47 AM
I'm the same way when there is just the smallest of problems ;)