LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-14-2005, 08:12 AM   #1
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
simple javascript hangs IE


The following function makes several div elements the same height:

Code:
//function adjust()
//{
//     hgtc=document.getElementById('content').offsetHeight;
//     hgtl=document.getElementById('left').offsetHeight;
//     document.getElementById('content').style.height=(hgtc<hgtl)? hgtl+"px" : hgtc+"px";
//     document.getElementById('left').style.height=(hgtc>hgtl)? hgtc+"px" : hgtl+"px";
//     document.getElementById('right').style.height=(hgtc>hgtl)? hgtc+"px" : hgtl+"px";
//}
//window.onload=adjust;
//window.onresize=adjust;
The divs are three columns next to each other layed out with CSS. It works in Firefox and Konqueror, but IE hangs. What should I change??

Last edited by Moloko; 01-14-2005 at 08:41 AM.
 
Old 01-14-2005, 08:21 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
It works in Firefox and Konqueror, but IE hangs. What should I change??
IE

Last edited by Hko; 01-14-2005 at 08:22 AM.
 
Old 01-14-2005, 08:33 AM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
Tell me about it...just about EVERY problem I can have using div's, css and some scripting comes from IE...it's a really sad, pitifully browser.
 
Old 01-14-2005, 05:41 PM   #4
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Original Poster
Rep: Reputation: 30
This seems to be the culprit: //window.onresize=adjust;

Last edited by Moloko; 01-15-2005 at 05:18 PM.
 
  


Reply



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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Simple JavaScript help please Jaster Programming 1 11-12-2004 05:05 AM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM
net driver causes system hangs (keyboard hangs) yjchen Linux - Networking 0 10-21-2004 10:12 PM
Simple JavaScript Question jacksmash Programming 0 12-24-2003 04:27 PM

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

All times are GMT -5. The time now is 07:48 AM.

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