Hello

document.id should work fine.

The problem is that you are including MooTools 1.12 - document.id is supported 
from 1.3 upwards (I think - it may be supported earlier than that).

The syntax changed a fair bit from 1.12 to 1.2, it would be worth upgrading to 
1.3 or even 1.4 if that is possible.


On 13 Jun 2012, at 16:50, iiminov wrote:

> al right so here is the update. after squashing some of the obvious bugs and 
> updating code to animate transitions everything looked well and good on my 
> pc. in other words no errors and everything working as i would expect. loaded 
> the code on the server and included the .js file. unfortunately just to be 
> disappointed.
> 
> this is the temp location of not yet working example: 
> http://www.cheapremovals.ie/contact-us/20.html
> 
> now i am getting document.id is not a function error on line 11 in my .js 
> file. so i tried replacing 
> var slider = document.id('slider'),  // same as $('slider')
>    numbers = document.id('numbers'); // same as $('numbers')
> declarations with $('slider') and $('numbers') respectively all over the 
> script file. however that worsened the situation even more.
> 
> i also have tried to include the mootools library i was using for testing on 
> my pc (notice commented script files). however they seems to have problems of 
> their own and the coded does not work either.
> 
> i've been scanning internet & joomla forum for a solution or for an 
> indication of what to look for to help me troubleshoot the issue. however 
> with not much luck. i guess my problem is that i can't put in words what my 
> problem is apart from saying it does not work blah blah. so i guess my 
> questions for now are:
> can anyone spot that spud mistake(s) i am making here?
> or
> where(what) i should look?
> 
> 
> i would appreciate any pointers or advise regarding this issue.
> thank you for your time,
> iiminov

Reply via email to