|
|
|
| cp.loadModule cp.loadModule( URL ) Requires Javascript 1.2 This one is pretty cool, it gives users an opportunity to load self-registering add-on modules and crossProbe extensions into your environment to provide extended functionality to the crossprobe API. The method is highly influenced by PERL's "use" and C/C++'s "include", so if you are familiar with one of these, you'll get the idea of how things hang in no-time. crossProbe also keeps track of what urls have been loaded, so the occurance of loading a module into memory twice, resetting custom user-settings cannot happen. Each module loaded will create a self-identifying entry in the cp.modules array and place itself as an object under the crossProbe default object "navigator.crossProbe / cp", i.e. cp.crossExt_dragTarget |
|
| At the time these very words are written, there
are only one loadable module available, namely crossDrag. It provides layer-targets to become dragable per object. With the crossDrag extension loaded the crossProbe gets three new methods and related properties, these are inherited by every new instance you create. * [object Instance].enableDrag( ) * [object Instance].disableDrag( ) * [object Instance].zIndexNext( ) * cp.crossExt_dragTarget.name * cp.crossExt_dragTarget.version * cp.crossExt_dragTarget.zIndexOffset * cp.crossExt_dragTarget.zRaiseOnFocus * cp.crossExt_dragTarget.cursorOnMouseOver Read more about crossProbe modules here. or see them in action right here. |
|
| Reference
Index. |
|