Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Adding sendmail option to doc lib menu

  Asked By: Marcus    Date: Aug 04    Category: Sharepoint    Views: 2966

We have added code to function AddDocLibMenuItems(m, ctx) in ows.js
in order to add "send mail" menu item to document lib menu. This
works for documents but if we perform action on folder it returns:
"javascript:SubmitFormPost() " as the URL.

Any suggestions? Thanks.


strDisplayText = L_sendmail_Text;
// parse the URL out of the itemTable
var URL = "";
var index = itemTable.innerHTML.indexOf("href=");
if (index > 0)
var str = itemTable.innerHTML.substr(index + 6);
index = str.indexOf('"');
if (index > 0)
URL = str.substr(0, index);
strAction = "SendMail('" + URL + "')";
strImagePath = ctx.imagesPath + "ICMSG.gif";
CAMOpt(m, strDisplayText, strAction, strImagePath);



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Adding sendmail option to doc lib menu Or get search suggestion and latest updates.