Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Simple Community Site Possible?
Hm. I must be still missing a crucial part. I downloaded and saved the mootools scripts library in “mooTools_lib.js” and I saved your script as “mooTools_menu.js”
I referenced the files in the header and made a simple “test page but still no success.
Any clues?
Thanks in advance!
Dada
Last edited by dada78 (2007-01-26 19:29:10)
Offline
Re: Simple Community Site Possible?
Dada,
I would recommend that you go back and grab the mootools scripts again. Make sure that you DO NOT compress them. I had that problem originally with mine, everytime I compressed the scripts, it would not work.
Try it again and let me know……only other thing I see is that you may want to place the h2 and the list in a container div.
*BTW*- you only need the bottom portion of the script that I provided earlier. The top section is commented out simply for my purposes only. The top half of that script that is commented out, you can get rid of.
Last edited by DigitalRealm (2007-01-17 20:38:01)
Offline
Re: Simple Community Site Possible?
I re-downloaded the script as you suggested — this time I chose “none” for the compression type and uploaded it to the server again. I also wrapped h2 and the list with a container div. But no success.
I have no idea what else to try.
Thanks you!
Dada
Offline
Re: Simple Community Site Possible?
My only other thought is that you may need to load the page before the javascript file. Place the javascript that I gave you, in the page and at the bottom right above the </body> tag. Try that out, if that does not work, I am lost as well, but I will look at it again later tonight and see if I can find the problem.
Cory
Offline
Re: Simple Community Site Possible?
Hi Cory,
I pasted the javascript before the body end tag but unfortunately with “no change in result.
I am at my wits end…
thanks for bearing with me!
Dada
Last edited by dada78 (2007-01-26 19:28:45)
Offline
Re: Simple Community Site Possible?
Looks like you have not loaded the Javascript nor the CSS file. Check the paths are correct, they are relative paths. You could try absolute paths like “src=“http://carinafuller.com/Mootools/mooTools_lib.js”
Also make sure you have the correct spelling in the path – capital letters are easy to miss if the actual path is in lowercase.
Offline
Re: Simple Community Site Possible?
Dada,
I am thinking that you may not have something loading correctly. As jstubbs mentioned above, make sure that your mootools.js is correct and loading properly. What you have should be working totally fine, as I have looked back at mine and it is the same. I think there may be a problem with your script and not the code that you have.
Last edited by DigitalRealm (2007-01-18 13:01:30)
Offline
Re: Simple Community Site Possible?
Dada,
Your page is throwing a js error, but I have no idea why! It looks totally correct and is the same as mine, mine does not throw the error-
document.getElementsByClassName is not a function
[Break on this error] var myToggler = document.getElementsByClassName('display');
I still think it has something to do with your mootools.js script. Did you try getting the script with ALL of the available downloadable components in it just to test?
Offline
Re: Simple Community Site Possible?
Hi Cory,
I will try this next.
Thanks so much for sticking with me through this.! (I am starting to lose hair over this). ;-)
Offline
Re: Simple Community Site Possible?
SUCCESS!
Thank you, thank you, thank you!!!
That actually did the trick! I downloaded all the scripts from mootools this time (whereas before I just downloaded the ones on the right of the downloads page and the ones that were are requirement for these).
Your awesome
*Dada
Offline
Re: Simple Community Site Possible?
Cool, glad you have it working finally!
Cory
Offline
Re: Simple Community Site Possible?
Hi Digital Realm and Dada,
I’m trying to sort through the MooTools javascripts to run both Slimbox and the accordion effect mentioned here.
I went to the MooTools site and downloaded the various files which were combined into a single file called mootools.release.83.js
. In my textpattern page I’m referencing the scripts (uploaded to a folder called Javascripts) as follows:
<script type="text/javascript" src="/javascripts/mootools.js"></script>
<script type="text/javascript" src="/javascripts/slimbox.js"></script>
I then use your sample code, but I can’t get anything to work! Am I missing some files or do I need to change the script type reference to mootools.release.83.js
instead of mootools.js
? I’m finding the whole mootools experience quite confusing!
Last edited by decoderltd (2007-01-18 18:26:26)
Offline