mootools element is null using calendar EightySix plugin

Posted by I Like PHP on Stack Overflow See other posts from Stack Overflow or by I Like PHP
Published on 2010-04-23T07:46:33Z Indexed on 2010/04/23 7:53 UTC
Read the original article Hit count: 686

Filed under:
|

i m using mootools Eighty six calendar from this link

i download the code and customize according to my need , it's working good on single HTML page but when i embed this code with my php page then it display below error

element is null
[Break on this error] element.appendChild(context);\n 
(on line 1712 of js/mootools-1.2.4-core.js)

i m unable to debug this kind of error... please tell me where is the problem and how to solve it?

one more thing: it was working fine with mootools v 1.2

i m using Jquery on header file of that php page, but also written jQuery.noConflict() in header.php file my basic code is here

<link rel="stylesheet" type="text/css" href="css/calendar-eightysix-default.css" media="screen" />

<script type="text/javascript" src="js/mootools-1.2.4-core.js"></script>
<script type="text/javascript" src="js/mootools-1.2.4.2-more.js"></script>
<script type="text/javascript" src="js/calendar-eightysix-v1.0.1.js"></script>
<script type="text/javascript">
 window.addEvent('domready', function() {           
 new CalendarEightysix('myCalendar',{
             'format': '%a %D %B %Y',
             'theme': 'default red', 
             'defaultDate': 'today',
             'minDate': 'tomorrow',
             'offsetY': -4 })       
    }); 
</script>

and later

<input id="myCalendar" name="myCalendar" type="text" maxlength="10" > 

please take intrest and help me Thanks always

© Stack Overflow or respective owner

Related posts about mootools

Related posts about php