473,724 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table scroller script by Richard Cornford

4 New Member
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 3475
acoder
16,027 Recognized Expert Moderator MVP
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
robhmac
4 New Member
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="JavaS cript1.2" type="text/javascript">var ace_path = 'menu/';</script>
<script language="JavaS cript1.2" type="text/javascript" src="menu/acemenu_loader. js"></script>
<script language="JavaS cript1.2" type="text/javascript">ACE CreateMenu();on load=ACELoadMen u;</script>[/HTML]
Jan 23 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
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
robhmac
4 New Member
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 Recognized Expert Moderator MVP
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
robhmac
4 New Member
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 Recognized Expert Moderator MVP
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
2831
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 some one tell me what I'm doing wrong? it looks like this: var tbl=document.tbl; var frm=document.frm; var newcell=document.createElement("TD");
3
2870
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 plus minus would still be ok, whyever. I've tested this successfully on 6.0.2800.1106 on a german W2KPro machine, also with 6.0.2800.1106 on a german XPPro machine.
31
7033
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 contents of each cell (picture/link and associated text) rotate randomly. Note that the text titles must remain with their associated picture and link (I don't want to scramble all the elements--just rotate the entire contents of the table cell).
8
2513
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 my_tbody_element.style.display="block";
11
24082
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 screen. There are a number of solutions available. For example, http://www.litotes.demon.co.uk/example_scripts/tableScroll.html I'm just wondering if anyone knows of a "latest and greatest" script to solve this problem. My requirement at the...
1
2563
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> <th>City</th> <th>State</th> </tr>
1
1964
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" tags instead of "td" tags. I want to have the left 3/4 of the table frozen while scrolling the last 1/4 on the right...and that's where I ran into a problem. It seems like the scrollable area can't be smaller than the frozen area. I've been...
14
2630
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 control via css font size, color, family. How to adjust this? <script language="javascript" type="text/javascript"> <!-- begin var max=0; function textlist()
0
8741
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9160
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8062
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2612
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2149
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.