473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Table scroller script by Richard Cornford

Trying to tweak a great looking table script that is better than some commercial or css solutions:
http://www.litotes.demon.co.uk/examp...bleScroll.html by Richard Cornford.

The script works fine, and I'm able to customize it. However, it's conflicting with all my other java applets. I've tried searching for solutions for what must be a common problem, duplicate onload event handlers, but I'm not even sure that that's the problem. Moving an onload to the body tag doesn't seem to make any since, as there aren't any windows.onloads but four global.onloads.

I've been able to modify and play around with Perl scripts, but I am a complete newbie when it comes to js.

Checked multiple forums, and all I can find are issues with the first column header not showing up, which I can definitely live with.

-Rob
Jan 20 '08 #1
7 3455
acoder
16,027 Expert Mod 8TB
Hi Rob, welcome to TSDN!
The script works fine, and I'm able to customize it. However, it's conflicting with all my other java applets. I've tried searching for solutions for what must be a common problem, duplicate onload event handlers, but I'm not even sure that that's the problem. Moving an onload to the body tag doesn't seem to make any since, as there aren't any windows.onloads but four global.onloads.
It probably won't be conflicting with your Java applets because Java and JavaScript are two very different languages unless you're interfacing with the Java applets with JavaScript in one of the other onload event handlers. Show your code for the multiple onload handlers.
Jan 21 '08 #2
Hi Rob, welcome to TSDN!
It probably won't be conflicting with your Java applets because Java and JavaScript are two very different languages unless you're interfacing with the Java applets with JavaScript in one of the other onload event handlers. Show your code for the multiple onload handlers.
Thank you for answering. I need to revise my question, as the conflict is affecting javascript statements, not actual applets.

[HTML]<script language="JavaScript1.2" type="text/javascript">var ace_path = 'menu/';</script>
<script language="JavaScript1.2" type="text/javascript" src="menu/acemenu_loader.js"></script>
<script language="JavaScript1.2" type="text/javascript">ACECreateMenu();onload=ACELoadMenu;</script>[/HTML]
Jan 23 '08 #3
acoder
16,027 Expert Mod 8TB
You can only have one onload. If you have multiple onloads, each one will overwrite the previous one. To avoid this problem, you could try using the advanced event registration models - see event normalization.
Jan 24 '08 #4
Thanks very much for your help... unfortunately I have to admit that this is way over my head.

I even found this thread
Re: adding to a BODY-onload function from within the page

Richard's solution is the best one I found yet, especially since it doesn't solely rely on CSS. The best commercial solution I've found is at activewidgets, but this is a library for the do-it-yourselfer.
Jan 25 '08 #5
acoder
16,027 Expert Mod 8TB
See if this link is any easier to understand. Read about the problems of the normal window.onload type model and how the advanced model (which is quite easy to understand once you get the hang of it) solves it.
Jan 25 '08 #6
I was able to find two other solutions that are easier to implement:

Karin's blog, which allows locked 1st row and left column: http://www.cubido.at/Default.aspx?tabid=176&EntryID=94

(this is the version that I am implementing)

Brett Merkey: http://web.tampabay.rr.com/bmerkey/e...olumn-csv.html

Thanks again for your help.

-Robert Higgins
Feb 6 '08 #7
acoder
16,027 Expert Mod 8TB
You're welcome. Thanks for posting.
Feb 6 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Amir Hardon | last post by:
I'm new to DOM and can't figure out this thing: I'm trying to add a row to a table with a form field in one of it's cells, but if I'm appending the field to a form it gets out of the table. Can...
3
by: Markus Fischer | last post by:
Hi, I'm experiencing a wierd problem with IE 6 in Windows with two _slightly_ different Version. Give the following HTMl-Code, ideally the output of offsetTop should be "105"; a few pixel...
31
by: Royal Denning | last post by:
I am designing a table with 2 columns and 20 rows. I want to insert small images (each with a link) and a text title in each cell of the table. On refresh of the page, I would like to have the...
8
by: Andy Fish | last post by:
Hi, I am trying to show/hide a group of table rows using javascript and CSS. if I group them in a <tbody> element I can do: my_tbody_element.style.display="none"; to hide them and ...
11
by: Matt Kruse | last post by:
This is a common requirement - "freeze panes" in a table, so that some header rows and some columns on the left are frozen while the body content scrolls. This makes large tables more usable on...
1
by: Les Buchanan | last post by:
I'm trying to figure out why the script that Richard Cornford wrote to scroll a table loses the column headers when you add a row header. For example: <table> <tr> <th>Name</th>...
1
by: jhillriegel | last post by:
I'm using Richard Cornford's table scroll script (http://www.litotes.demon.co.uk/example_scripts/tableScroll.html), and I've discovered that I can "freeze" as many cells as I want by making them "th"...
14
by: mistral | last post by:
Below is Typewriter Scroller script. I want adjust is as follows: remove lower dash "_" out; display text not in form, but inside div, without any borders (style="visibility:hidden"). Also I need...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.