Multibox for MooTools 1.2 - working version
Posted: Sat Oct 25, 2008 5:54 pm
Ok, I know Samuel is working on v1.4 but I have updated Phatfusions multiBox to work with MooTools v1.2.
view/download it here Multibox for MooTools 1.2 & 1.2.1.
It was more time consuming than I thought it would be. The Ajax request and html element were real puzzlers. I have managed to get the Ajax request working fine (you can view the code to see what’s in place), but I feel the following code should go in its place as this is how the MooTools docs says how to use Ajax requests. I don’t get any errors with the following code, but the Ajax isn’t put into the container…
Proposed Ajax request code:
new Request({
url: this.contentObj.url,
method: 'get',
update: 'MultiBoxContentContainer',
evalScripts: true,
autoCancel: true
});
I am sure it is 99% correct but if anyone knows what I'm doing wrong, then please let me know, either on this forum, my email address which is in the scripts, or via my website.
I have added the following options whilst I was in there modifying them:
- hover transition
- icon-overlay
- resize options (max width and height)
- chain transition through the images if any
- download option for each piece of media
One thing I would like to add is the ability to put files into groups so the user will only be able to navigate through items belonging to same group.
I fixed a few IE6 bugs in the CSS, changed the sizing script in the overlay so it works better in IE6 (not sure why it didn’t work with
MooTools 1.2.1 so I just did it a slightly different way and it seems to work fine).
This updated version of multiBox is tested in IE6 & 7 and Firefox 3. I made sure all original file types work fine, and they are all included on the default page within the zipped folder. It would be good if other people could test it in different browsers.
Enjoy!
view/download it here Multibox for MooTools 1.2 & 1.2.1.
It was more time consuming than I thought it would be. The Ajax request and html element were real puzzlers. I have managed to get the Ajax request working fine (you can view the code to see what’s in place), but I feel the following code should go in its place as this is how the MooTools docs says how to use Ajax requests. I don’t get any errors with the following code, but the Ajax isn’t put into the container…
Proposed Ajax request code:
new Request({
url: this.contentObj.url,
method: 'get',
update: 'MultiBoxContentContainer',
evalScripts: true,
autoCancel: true
});
I am sure it is 99% correct but if anyone knows what I'm doing wrong, then please let me know, either on this forum, my email address which is in the scripts, or via my website.
I have added the following options whilst I was in there modifying them:
- hover transition
- icon-overlay
- resize options (max width and height)
- chain transition through the images if any
- download option for each piece of media
One thing I would like to add is the ability to put files into groups so the user will only be able to navigate through items belonging to same group.
I fixed a few IE6 bugs in the CSS, changed the sizing script in the overlay so it works better in IE6 (not sure why it didn’t work with
MooTools 1.2.1 so I just did it a slightly different way and it seems to work fine).
This updated version of multiBox is tested in IE6 & 7 and Firefox 3. I made sure all original file types work fine, and they are all included on the default page within the zipped folder. It would be good if other people could test it in different browsers.
Enjoy!