AnsweredAssumed Answered

how to display created document using javaScript API?

Question asked by dark_rider on Sep 15, 2010
Hi,
In Document Details page, I have to display the new created document using Javascript API.
The following transformDocument method creates a new document in same folder and returns the new node. I want to display the new node… Could you please help me?
Here is the code;



     var newNode;
     var regExp = " " + type;
     if (regExp.search(/image/i) > 0 ){
   newNode = node.transformImage(type);
     } else {
   newNode = node.transformDocument(type);
     }

     node = newNode; // this is not working

….

Outcomes