LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2004, 10:25 AM   #1
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Rep: Reputation: 30
Question window.open() function problems (web java)


I have a quick question for anyone / everyone that can help. I recently, yesterday, designed a website for a class project. In it I used the following java script to popup predefined windows from links. It worked fine in Mozilla FireFox (used on my linux box). However, when I got to work and tried it with IE6 on WinXP the java script didn’t work. It also doesn’t work with IE5 on Win98. Could someone lend a hand at explaining this? How can I change it to work on all browsers?
Code:
Function in head:
<SCRIPT LANGUAGE="JavaScript">
<!--
function L_details(newURL, high, widt, sc) {
var st = "height="+high+",width="+widt+",
          menubar=0,resizable=0,scrollbars="+sc+",status=0,toolbar=0"
open(newURL, "More Details", st);
}
// -->
</SCRIPT>

Function call in body:
<a href="javascript:L_details('i_q.html', 450, 400, 0)" class="note">details</a>
Also, I never thought I would see the day when IE really just couldn’t do it. I have always like Linux, but the IE browser always seemed to be more advanced than those available on Linux. You could guess my surprise when my page, which uses sever semi-transparent png files, flopped on IE. I assumed that since FireFox renders the png files with transparency so would IE. Even FireFox running on windows renders the images correctly. I guess I will have to put up with the gray boxes IE replaces the transparency with. Oh, well….. Some day all browsers will render the same…. Wishful Thinking I Know.

Well, any help with the above script would be great!!

Thanks,

PhilD
 
Old 05-03-2004, 04:15 PM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Original Poster
Rep: Reputation: 30
Never mind.... I tracked down the error. The window name, "More Detail", in this case can not have a space in it. I find it odd that FireFox would execute it. Oh well.

PhilD
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java and Web Browser problems. RHLinuxGUY Linux - Software 1 09-25-2005 11:01 AM
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 08:28 AM
Open terminal window from web browser anoop_cn Linux - General 3 07-27-2004 03:10 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:43 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