Description

Allows the user to choose or create a resource for a dropzone by using a dialogue box. If no src is provided the href attribute of the event.target will be used.

Signature

calli.createResource( event, [src] )

Parameter Description
event HTML click event
src (optional) URL of the page to display in the dialogue.

Example


<a href="Person?create" title="Create a Person"
      onclick="return calli.createResource(event)"
      class="ui-icon ui-icon-newwin" />