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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.