Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I need to be able to delete a node using javascript (same as used in the tree right-click menu).
I've tried UmbMgr.appActions().actionDelete() but I need to be able to send in a nodeId.
Any takers?
I tried calling umbraco.presentation.webservices.legacyAjaxCalls.Delete() without success.
Got it working with jquery.ajax... this is what I did:
// Call web method to delete node $.ajax({ type: "POST", url: "webservices/legacyAjaxCalls.asmx/Delete", data: "{'nodeId': '" + nodeId + "', 'alias': '', 'nodeType': '" + nodeType + "'}", contentType: "application/json; charset=utf-8", dataType: "json", async: true });
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Delete content node with javascript
I need to be able to delete a node using javascript (same as used in the tree right-click menu).
I've tried UmbMgr.appActions().actionDelete() but I need to be able to send in a nodeId.
Any takers?
I tried calling umbraco.presentation.webservices.legacyAjaxCalls.Delete() without success.
Got it working with jquery.ajax... this is what I did:
is working on a reply...