dzash2000
asked on
mootools - domready doesn't fire
Hi - I've gotten pretty deep into this not knowing what I'm doing so I hope my question makes sense to someone. I'm trying to duplicate the tab interface shown here:
http://www.cssmenubuilder.com/tutorial-files/mootools-tabs/example
After successfully downloading and replicating the example in an aspx website, I wanted to integrate it into a quite more complicated aspx page. It didn't work. IE says "Resource cannot be found", but the resource is another div on the same page. So I put an alert inside the first line of "domready.js" and found that the big aspx file didn't see that code and therefore - the rest of the mootab code wouldn't fire.
Does anyone have any experience with this and maybe give me a lead as to how to get this to work?
Thanks,
d2
http://www.cssmenubuilder.com/tutorial-files/mootools-tabs/example
After successfully downloading and replicating the example in an aspx website, I wanted to integrate it into a quite more complicated aspx page. It didn't work. IE says "Resource cannot be found", but the resource is another div on the same page. So I put an alert inside the first line of "domready.js" and found that the big aspx file didn't see that code and therefore - the rest of the mootab code wouldn't fire.
Does anyone have any experience with this and maybe give me a lead as to how to get this to work?
Thanks,
d2
Most likely mootools library isn't being loaded before you try to call it. Make sure that you are including the mootools library before you try to run your code.
ASKER
bugada - thanks for the reply. I discovered that one of the other js that I'm loading into the same page is causing the issue. If I take out the attached code line, the moo trick will work.
The jquery.min.js is being used to do similar duty on the page (open up hidden divs) except with links and buttons instead of tabs. Maybe I'll look for a tab script using jquery.
I don't know of any other way to handle this. You?
d2
The jquery.min.js is being used to do similar duty on the page (open up hidden divs) except with links and buttons instead of tabs. Maybe I'll look for a tab script using jquery.
I don't know of any other way to handle this. You?
d2
<!-- * Animated Collapsible DIV -->
<script type="text/javascript" src="_scripts/jquery.min.js"></script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
bugada -
Understood. I had no idea they would conflict with each other so this is a valuable piece of information.
Thanks,
d2
Understood. I had no idea they would conflict with each other so this is a valuable piece of information.
Thanks,
d2
glad have helped you!