Results 1 to 1 of 1

Thread: How to add "Add dashlet" as shortcut menu?

  1. #1
    jollyguy77 is offline Member
    Join Date
    Nov 2009
    Posts
    18

    Default How to add "Add dashlet" as shortcut menu?

    Hi,

    I want to have the "Add Dashlet" to be displayed as shortcut menu. I have done the following
    1) Added a new $module_menu[] =Array("return SUGAR.mySugar.showDashletsTree();", "Add Dashlet","CreateEmails", 'Emails'); It's not working..
    2) I assigned href = "#" and also added a onclick event for the above <a href> tag using javascript. I am not able to get the alert message for the onclick message. I added the following script in the index.php of the Home Modules.
    Code:
    echo "<script type='text/javascript'>";
    echo "var test = document.getElementById('4_ah');test.href ='#';";
    echo "test.onclick = function(){alert('Event added');};</script>";
    When i run the above script in a Test HTML page, it's working fine. But the same code when i add in php it's not working...

    Can someone tell me how to add dashlet as shortcut?

    Thanks,
    Jollyguy
    Last edited by jollyguy77; 2009-11-25 at 12:16 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 2009-06-29, 05:15 PM
  2. Replies: 1
    Last Post: 2009-05-23, 06:02 AM
  3. Replies: 4
    Last Post: 2009-03-26, 04:57 AM
  4. Replies: 1
    Last Post: 2008-03-02, 06:53 PM
  5. Replies: 0
    Last Post: 2006-08-24, 01:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •