alert in SSJS Library
<p>I have a function in SSJS Library. I would like get Client Side alert in Library. What i tried was not worked. I think I miss something. :( </p>

<pre><code>function docAlive()
{
    try 
    {
        var otherDoc:NotesDocument= null;
        if (funcDoc.getItemValueString("DocUNID")!="")
        {
            var otherDoc:NotesDocument = dbKontak.getDocumentByUNID(funcDoc.getItemValueString("DocUNID"))
            if (otherDoc==null)
            {
              hataKod = "10001";
              hataMsg = "There is no document :( Created One";
              print (hataKod +": "+hataMsg);
              view.postScript("alert('"+hataKod + " - " +hataMsg+"');");
            }
        }
        return otherDoc;
    }
    catch (e) 
    {
        e.toString();
    }    
}
</code></pre>