Hi!
I have problems with js in IE. I have such script:
Code:
<script type="text/javascript">
 $(document).ready(function(){
        cl = new commentsController();
}
</script>
After that I have an onclick event:
Code:
<a href="#" class="write writereview" onClick="return cl.addCommentUnauth();">
    <?php echo $msg['write_a_review']; ?>
</a>
commentController is defined in an external file. This works fine in all browsers except IE. In IE I have error 'cl' is undefined.
I tried to connect comment-controller file
Code:
<script type="text/javascript" src="/media/js/comments/comments-controller.js">
 $(document).ready(function(){
        cl = new commentsController();
}
</script>
but then I have the same error in firefox too.
Please help me to resolve this.
Thank you!