Properties Methods Events Config Options Direct Link
Action
  Action.Submit
    SlingSubmitAction

Class CQ.form.SlingSubmitAction

Package:CQ.form
Class:SlingSubmitAction
Subclasses:Submit, UploadSubmitAction
Extends:CQ.Ext.form.Action.Submit
Clientlib:cq.widgets
A class which handles submission of data from Forms and processes Sling specific POST responses. The response is HTML which will be parsed and returned as response object.

Instances of this class are only created by a Form when submitting.

The response must contain the information as shown in the following sample:
<html>
<head>
    <title>Content modified /content/geometrixx/jcr:content/par/title</title>
</head>
    <body>
    <h1>Content modified /content/geometrixx/jcr:content/par/title</h1>
    <table>
        <tbody>
            <tr>
                <td>Status</td>
                <td><div id="Status">200</div></td>
            </tr>
            <tr>
                <td>Message</td>
                <td><div id="Message">OK</div></td>
            </tr>
            <tr>
                <td>Location</td>
                <td><a href="/geometrixx/_jcr_content/par/title" id="Location">/geometrixx/_jcr_content/par/title</a></td>
            </tr>
            <tr>
                <td>Parent Location</td>
                <td><a href="/geometrixx/_jcr_content/par" id="ParentLocation">/geometrixx/_jcr_content/par</a></td>
            </tr>
            <tr>
                <td>Path</td>
                <td><div id="Path">/content/geometrixx/jcr:content/par/title</div></td>
            </tr>
            <tr>
                <td>Referer</td>
                <td><a href="http://localhost:4502/content/geometrixx.html" id="Referer">http://localhost:4502/content/geometrixx.html</a></td>
            </tr>
            <tr>
                <td>ChangeLog</td>
                <td><div id="ChangeLog"><pre>
                        modified("/content/geometrixx/jcr:content/par/title/jcr:title");<br/>
                        modified("/content/geometrixx/en/services/jcr:content/par/title/sling:resourceType");<br/>
                        modified("/content/geometrixx/en/services/jcr:content/cq:lastModified");<br/>
                        modified("/content/geometrixx/jcr:content/cq:lastModifiedBy");<br/>
                </pre></div></td>
            </tr>
        </tbody>
    </table>
    <p><a href="http://localhost:4502/content/geometrixx.html">Go Back</a></p>
    <p><a href="/geometrixx/_jcr_content/par/title">Modified Resource</a></p>
    <p><a href="/geometrixx/_jcr_content/par">Parent of Modified Resource</a></p>
    </body>
</html>

Config Options

Config Options Defined By
  url : String
The URL that the Action is to invoke.
Action

Public Properties

Property Defined By
  response : Object
The XMLHttpRequest object used to perform the action.
Action
  result : Object
The decoded response object containing a boolean success property and other, action-specific properties.
Action
  type : String
The type of action this Sling Submit Action instance performs. The value is "slingsubmit".
SlingSubmitAction

Public Methods

This class has no public methods.

Public Events

This class has no public events.