Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mootools - domready doesn't fire

Posted on 2009-05-04
5
Medium Priority
?
448 Views
Last Modified: 2013-11-10
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

0
Comment
Question by:dzash2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:bugada
ID: 24297593
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.
0
 

Author Comment

by:dzash2000
ID: 24297847
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
<!-- * Animated Collapsible DIV -->
<script type="text/javascript" src="_scripts/jquery.min.js"></script>

Open in new window

0
 
LVL 10

Accepted Solution

by:
bugada earned 2000 total points
ID: 24298005
I think you should read this:

http://forum.mootools.net/viewtopic.php?pid=26204

I think you'd better to choose your preferred framework and dismiss the other.
I'm sorry but i can't see a better solution.
0
 

Author Closing Comment

by:dzash2000
ID: 31577634
bugada -
Understood.  I had no idea they would conflict with each other so this is a valuable piece of information.
Thanks,
d2
0
 
LVL 10

Expert Comment

by:bugada
ID: 24299152
glad have helped you!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question