If you declare the public method inside $.fn.pluginname then it will
be able to access the private things too, but this way the public
function won't be declared just after $().pluginname() was called. So
you can't call $.fn.pluginname.doSomethingPublic() before that.

But you can get around this by calling methods like in jMaps:
http://jmaps.digitalspaghetti.me.uk/#init
which would look like this: $().pluginname('doSomethingPublic',
param0, param1, ...)
and call the methods by a switch statement inside the plugin.

You can also store your plugin under $.pluginname instead and use
$.fn.pluginname only to create a new instance of it.

Some tutorial would be indeed really good about things like this, but
you can also inspect how other plugins handle it.

Hope I helped
Balazs

On Sep 2, 12:10 pm, mwk <[EMAIL PROTECTED]> wrote:
> Is there realy nobody out there, who can point me into the right
> direction?
> A link to a tutorial would be already great.
> If somebody doesn't understand the question, please tell me, i will
> try to explain it further.

Reply via email to