Linux and JavaScript popup problem
I am building a simple web page, and I have one uses who uses firefox and Linix. Non of my javaScript is working for him. For example, this link should pop up a new window, but does not for him. It's very basic javaScript, and I'm wondering if there is anything I should know b/c it's Linux.
<A HREF="#" onclick="javascript:openWindow(content='../includes/repHelpEE.cfm?id=4')">How do I correct my balances?</A> function openWindow(content) { PopUp=window.open(content,"PopUp","width=600,height=325,scrollbars=1,toolbar=0,menubar=0,top=0,left= 300,"); PopUp.focus(); } |
Perhaps its blocking it cause he has popups disabled? I've seen some javascript do such things where Firefox is thinking its an unrequested popup. Or he simply doesn't have javascript enabled in his browser.
|
I asked and he said javaScript is enabled, and he doesn't have a popUp blocker.
|
Quote:
|
right, but he said it's disabled.
there is also some additional javaScript that isn't working. for example, form validations. Basic stuff to make sure there are no blank fields. everything is fine on IE, Netscape, Mozilla, Camino, Firfox, Mac and XP. UGH! |
Quote:
|
Not knowing anything about Linux, does it handle javaScripting more stringently than other OS's and browsers.
For example, I have a variable that is set to either a number or nothing, do you think that would trip it up. sometimes it's this: var vacation = 12; and sometimes it's this: var vacation = ; |
At times. IE is the worst to comply with the w3c standards for web pages and development. Something that might work in IE since it renders everything and usually renders it when it shouldn't usually won't work in the browsers that comply with these standards, like every other browser besides IE. Can you tell, I hate IE.. ;)
|
Re: Linux and JavaScript popup problem
Quote:
If you'll permit, I think href="#" is a bad habit. It is meaningless, and I've seen this kind of URL badly handled by some browsers. I usually had better luck with href="javascript:void()". But none of the two is the perfect solution, though. There just shouldn't be a href at all, or it should at least be empty, but I'm not sure most browsers would appreciate that :) I don't know if this will solve your problem, but it's worth a try... Yves. [edit:]I don't understand! I tried editing this post twice, but the ONE-WORD "javascript" above keeps breaking into two words! It should read: "javascript:void()" all without any space at all.[/edit] |
All times are GMT -5. The time now is 10:56 AM. |