Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-27 13:47:59

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

moo.fx JavaScripts as txp plugin

This plugin won’t be updated any more! See here.

Hello,

I’m using moo.fx on some sites, so I thought it would make sense to put these into a plugin. Maybe you can use them, too.

moo.fx consists of three javascripts which add various functionality to your website. This plugin stores these three in the txp database, so that you don’t have to take care of these in the case of a txp upgrade. Information on how to call these scripts is included in the plugin.

EDIT: Version 0.2 includes the new moo.ajax script.

EDIT: Version 0.3 updates to moo.fx version 1.2.

EDIT: Version 0.3.1 updates to moo.fx version 1.2.1

vdh_js_0.3.1.txt

Last edited by larf (2006-09-23 10:13:02)

Offline

#2 2005-12-02 12:00:22

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: moo.fx JavaScripts as txp plugin

Yay! Thanks for this. Presumably this mean you have to update the plugin everytime moo.fx is updated?


Cheers,
Jon VC#9

Offline

#3 2005-12-02 13:42:19

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: moo.fx JavaScripts as txp plugin

Nice little thing to make a dumb client shut up :) However, their claim to be standard compliant is a bit superficial… even their homepage doesn’t support a simple texte-size change if javascript is activated.

Offline

#4 2005-12-10 23:47:32

The Human Museum
Member
From: Toronto, Canada
Registered: 2005-11-21
Posts: 64
Website

Re: moo.fx JavaScripts as txp plugin

Is this link no longer working?


“I was born to hustle roses down the avenues of the dead.” – Charles Bukowski
The Human Museum

Offline

#5 2005-12-22 08:32:09

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: moo.fx JavaScripts as txp plugin

I’m sorry the link was not working, I did not update my file path after moving to TextDrive.

Offline

#6 2006-01-03 06:39:33

jamiew
Archived Plugin Author
From: NYC
Registered: 2005-01-08
Posts: 74
Website

Re: moo.fx JavaScripts as txp plugin

Plugin is a great little timesaver, thanks so much.

Offline

#7 2006-02-23 16:10:19

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: moo.fx JavaScripts as txp plugin

Does anyone care to post how they are using this for some of us who are new to the implementation from a TXP point of view? I am hoping to use it in a menu structure with sections and articles.

Thanks,

Matthew


Offline

#8 2006-09-14 21:35:36

filip baraka
Member
Registered: 2006-06-05
Posts: 24

Re: moo.fx JavaScripts as txp plugin

Can somebody please update this plugin with newmoo.fx code and maybe even add a possibility to choose full prototype, (that way we can integrate it with cbs_livesearch, that would be cool:) i would do it myself via edit plugin, but im constantly getting errors,
emm how can i get source code?

Offline

#9 2006-09-14 21:44:54

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: moo.fx JavaScripts as txp plugin

It would probalby be just as easy to simply download the JS and upload it to your server, instead of messing around with plugins.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#10 2006-09-14 21:58:27

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: moo.fx JavaScripts as txp plugin

I’m using those libraries too , however I’ve noticed, that the scroll function won’t work on Opera.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#11 2006-09-14 22:32:31

filip baraka
Member
Registered: 2006-06-05
Posts: 24

Re: moo.fx JavaScripts as txp plugin

akokskis wrote:

It would probalby be just as easy to simply download the JS and upload it to your server, instead of messing around with plugins.

jep, i know, BUT
if i load scripts directly into page, some of functionality is gone, seems that onLoad hide part is not working. probably because of textpatern way or loading of page, you can check it on sibenik if I use direct links to scripts footer is not hidden and I don’t wan’t that:) now hide is working but smooth link to bottom of page is not, ehhh

Offline

#12 2006-09-19 15:17:59

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: moo.fx JavaScripts as txp plugin

I personnaly also think that it’s a better idea to load the js from an external file instead of a plugin. If that causes you problems, it’s probably because of conflicts between javascripts or becauseyou don’t load scripts in the right order (example, you load moo.fx.js before loading prototype.js).

If you want to make the scripts lighter to load, you have 2 options (you can use both at the same time):
  1. Gzipping the CSS on-the-fly to the browser, like you do with HTML pages. You can achieve that with mod_gzip in Apache, or with PHP (you can create a PHP script that reads your CSS file and gzip it on the fly). This will achieve the best compression.
  2. You can also use a compression tool like Shrinksafe to combine and shrink all javascripts into a single file. Be warned, prototype.js cannot be compressed with Shrinksafe. If you want I can provide you a home-made compressed version of prototype version 1.4.0 (about 34Kb instead of 46kb).

Using both compression schemes, my prototype.js is now about 8kb to download for the user instead of 46kb.

For your information, I’m now writing a new version of Lightbox v2, visually equivalent to the original but with much better code. The CSS now validates, the main code is half the size of the original one, and it uses moo.fx instead of the Scriptaculous effects library. I think the scriptaculous effects library is way too heavy and complicated to use compared to moo.fx, and it uses more memory.

Finally, a word about prototype.js and prototype.lite.js. Most of the time, when you write a complex script (like Lightbox or cbs_live_search), you’ll need the full version. The light version is enough for basic “click-and-launch a simple effect” scenarios. But when you need to deal with events registration, monitoring, XMLHTTPRequest, etc., you need the full version or your code will become a nightmare.


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

Board footer

Powered by FluxBB