I've got the Scriptaculous slider implemented and working on a page.
I've then needed to put the exact same code on another page, but when I do so
the slider no longer works.
I've tracked the problem down to a call to the $ function inside makePositioned.
I've added a couple of alerts like so...
makePositioned: function(element) {
alert('before:'+element);
element = $(element);
alert('after:'+element);
And from these alerts I get:
before:[object HTMLDivElement]
after:null
And this null then gets fed through to getStyle which then cannot work because
"element has no properties".
Everything still works in the previous location, and the scripts are identical,
so I'm stumped.
(the two locations are front-end and back-end registration forms, both calling
the same custom tag which implements the slider, but each with local copies of
the slider.js and prototype.js)
Does anyone have any ideas what might be going wrong?
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:3631
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33