Hello Everyone!I have made a webscript for moving a docuemnt from userhome folder to another folder.When i click on button and ajax call the document is moved but change are reflected after manually reloading the page.Any solution for this? i do not want to reload the page.If any body have any idea than please reply as early as possible. my code for yui lies here:
onUploadToKb:function DLTB_onFileUploadWithTooltip(e, p_obj)
{
var uniqueIdOfFolder=this.doclistMetadata.parent.nodeRef;
Alfresco.util.PopupManager.displayMessage(
{
text: "Show Document"+uniqueIdOfFolder
});
Alfresco.util.Ajax.request(
{
url:"http://127.0.0.1:8080/alfresco/service'+'/components/alfresco/uploadToKb?parentNode='+uniqueIdOfFolder,
method: Alfresco.util.Ajax.GET,
successCallback:
{
fn :this.onTemplateLoaded,
obj: this,
scope:this
},
scope: this,
execScripts: true,
failureMessage: "Could not Upload the Document"
});
},
onTemplateLoaded : function()
{
Alfresco.util.PopupManager.displayMessage(
{
text: "Document is Moved Successfully"
});
},