Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Adding sendmail option to doc lib menu

  Asked By: Marcus Peterson         Date: Aug 04, 2004      Category: Sharepoint      Views: 218
 

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.

code:

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);


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:              

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].