1) webanandaGroup: Members Posts: 3Joined: 21 Dec 2004Location: Northern CaliforniaIP: 67.180.--.--
Posted:
Hi Angus,
Awesome coding...thanks for making it available...its saving me a ton of work. I've learned more playing with your code than reading books.
I've successfully integrated your Tipster and Fader code into a single HTML page, both work great! But I'm having two problems: 1. I get random "Done, but with errors on page" messages when I load the page...sometimes, not always. 2. As soon as I try to use the Scroller code snippet here (I've pared it down to this): <script language="JavaScript1.2" type="text/javascript"><!-- var content = new DHTMLScroller('content', 'cb_main.html'); //--></script> I immediately start getting errors. If I omit the 'new DHTMLScroller' call, no problem. I can get the Scroller to work without the Tipster, and vice versa... maybe a clue here?
I'm a total newbie with JS, but I'm suspecting a problem with the two isDOM calls in tipster.js and dvscroll.js. Can you help?
Thanks.
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 210.54.--.--
Posted:
In case you're reading this here first -- thank you very much for your donation! I certainly appreciate it :).
The two (or rather, three) scripts *should* combine reasonably well together. What errors are you getting? If you're using a browser like Firefox http://www.mozilla.org or Opera http://www.opera.com you can select "Tools -> JavaScript Console" or "Window -> JavaScript Console" respectively to see a log of errors and their respective lines; much better than IE. It could be a simple syntax error somewhere.
Failing that... have you got a link to the page in question? I'd be quite happy to take a look and see if I can spot anything wrong.
Good luck - Angus.
3) webanandaGroup: Members Posts: 3Joined: 21 Dec 2004Location: Northern CaliforniaIP: 67.180.--.--
Posted:
Thanks Angus. Your tip on using Firefox for its JavaScript Console was great! I found several syntax errors, all mine. Once I'd removed them, things started working. I've got tipster, fader, and scroller all working on the same page now.
The site is a conversion of an existing commercial site for a friend...its very much still 'under construction', but any feedback, criticism, or suggestions you care to make would be much appreciated.
Thanks again for the great scripts!
4) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 219.88.--.--
Posted:
Hey, glad you managed to resolve the errors! Perhaps now you'll be tempted to stay with Firefox by the rest of its features like tabs, popup blocking, find-as-you-type and so forth, too ;).
I tested in FF 1.0 and the right-side images overlaid the scrollbar a little, so perhaps reduce the width of the scroller a little. Other than that, all good.