mauser319
02-03-2009, 09:55 PM
Script: Animated Collapsible DIV 2.01
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
Hi there,
I recently adapted Animated Collapsible DIV to show/hide an embedded Vimeo object of my demo reel on my portfolio site (http://jflynnpost.tumblr.com). While editing my page source offline and viewing the page from there, the script works beautifully and the effect is great. However, once I upload the new page source to Tumblr, the collapse-toggling link appears but doesn't function.
I've tried this using IE7, Firefox (Mac & PC), Chrome, and Safari; all these browsers seem to ignore the script altogether.
A factor that might matter, or not:
Originally, since Tumblr doesn't have a way (that I know of) of letting me upload and direct-link external files, I replaced the references to the two Javascript files (animatedcollapse.js and jquery-1.2.2.pack.js) with the actual code in my page source. That code still exists in the page source, although through my subsequent troubleshooting experiments I've commented it out and replaced the original references, citing the absolute URLs of the two files from dynamicdrive.com in place of the relative paths provided.
In both cases (having the script code present in the page source and just referencing the external files) the effect works perfectly during offline editing, but neither way works at all once it's uploaded.
Since I do not own any hosting space, it would be ideal if I'm able to adapt this script to run from one html file, as I originally attempted. If there is any trick to integrating full-on Javascript with an html page, that would be excellent knowledge to have at first!
I should admit here that I'm not much of a coder. I'm comfortable enough with xhtml, css and java that I was able to cannibalize the script to suit my needs just fine, but I may have done something terribly wrong, and my debugging skills are shaky at best. It may also have something to do with the way that Tumblr handles the pages it hosts, but I have no idea.
Any help you can provide would be much appreciated! Thanks very much in advance.
-Jared
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
Hi there,
I recently adapted Animated Collapsible DIV to show/hide an embedded Vimeo object of my demo reel on my portfolio site (http://jflynnpost.tumblr.com). While editing my page source offline and viewing the page from there, the script works beautifully and the effect is great. However, once I upload the new page source to Tumblr, the collapse-toggling link appears but doesn't function.
I've tried this using IE7, Firefox (Mac & PC), Chrome, and Safari; all these browsers seem to ignore the script altogether.
A factor that might matter, or not:
Originally, since Tumblr doesn't have a way (that I know of) of letting me upload and direct-link external files, I replaced the references to the two Javascript files (animatedcollapse.js and jquery-1.2.2.pack.js) with the actual code in my page source. That code still exists in the page source, although through my subsequent troubleshooting experiments I've commented it out and replaced the original references, citing the absolute URLs of the two files from dynamicdrive.com in place of the relative paths provided.
In both cases (having the script code present in the page source and just referencing the external files) the effect works perfectly during offline editing, but neither way works at all once it's uploaded.
Since I do not own any hosting space, it would be ideal if I'm able to adapt this script to run from one html file, as I originally attempted. If there is any trick to integrating full-on Javascript with an html page, that would be excellent knowledge to have at first!
I should admit here that I'm not much of a coder. I'm comfortable enough with xhtml, css and java that I was able to cannibalize the script to suit my needs just fine, but I may have done something terribly wrong, and my debugging skills are shaky at best. It may also have something to do with the way that Tumblr handles the pages it hosts, but I have no idea.
Any help you can provide would be much appreciated! Thanks very much in advance.
-Jared