By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,931 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,931 IT Pros & Developers. It's quick & easy.

Table scroller script by Richard Cornford

P: 4
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
Share this Question
Share on Google+
7 Replies


acoder
Expert Mod 15k+
P: 16,027
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

P: 4
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
Expert Mod 15k+
P: 16,027
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

P: 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
Expert Mod 15k+
P: 16,027
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

P: 4
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
Expert Mod 15k+
P: 16,027
You're welcome. Thanks for posting.
Feb 6 '08 #8

Post your reply

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