LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2005, 08:43 AM   #1
turk99
LQ Newbie
 
Registered: May 2005
Posts: 4

Rep: Reputation: 0
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="javascriptpenWindow(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();
}
 
Old 05-19-2005, 09:02 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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.
 
Old 05-19-2005, 09:12 AM   #3
turk99
LQ Newbie
 
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I asked and he said javaScript is enabled, and he doesn't have a popUp blocker.
 
Old 05-19-2005, 09:16 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by turk99
I asked and he said javaScript is enabled, and he doesn't have a popUp blocker.
Firefox has a built-in popup blocker..
 
Old 05-19-2005, 09:20 AM   #5
turk99
LQ Newbie
 
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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!
 
Old 05-19-2005, 09:31 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by turk99
everything is fine on IE, Netscape, Mozilla, Camino, Firfox, Mac and XP. UGH!
If you've tested it but it doesn't work on his and only his.. something wrong with his browser.. so its something he should worry about. Perhaps he should test it with a different browser on his machine.. but I wouldn't let one machine worry you.. if you provide a link, I'm sure dozens here would test it for you..
 
Old 05-19-2005, 10:20 AM   #7
turk99
LQ Newbie
 
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
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 = ;
 
Old 05-19-2005, 10:23 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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..
 
Old 05-19-2005, 10:44 AM   #9
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Re: Linux and JavaScript popup problem

Quote:
Originally posted by turk99 <A HREF="#" onclick="javascriptpenWindow(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();
}
From my experience, Gecko's handling (Firefox, Mozilla, Ns7+...) of Javascript is the best available.

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]

Last edited by theYinYeti; 05-19-2005 at 10:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with a POP popup problem BajaNick General 1 12-26-2004 07:58 PM
SAMBA VSCAN Popup problem decafranky SUSE / openSUSE 0 11-16-2004 02:30 PM
LICQ - popup problem ugenn Linux - Software 2 04-13-2004 04:12 AM
Javascript in Linux problem? BajaNick Linux - Software 5 10-20-2003 12:41 PM
javascript popup tincat2 LQ Suggestions & Feedback 3 07-13-2003 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration