Results 1 to 3 of 3

Thread: Omnislide menu: can't get "mailto" to work in "menuItems.js" file

  1. #1
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Omnislide menu: can't get "mailto" to work in "menuItems.js" file

    1) Script Title: Omni Slide Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lide/index.htm

    3) Describe problem: Can't get "mailto" to work in "menuItems.js" file

    Hi,

    In the "menuItems.js" file, when I insert my "mailto" code in the email section, it doesn't work. My (obviously wrong) code:

    /***********************************************
    * Omni Slide Menu script - John Davenport Scheuer
    * very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
    * as first mentioned in http://www.dynamicdrive.com/forums
    * username:jscheuer1
    ***********************************************/

    //One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
    resizereinit=true;

    menu[1] = {
    id:'menu1', //use unique quoted id (quoted) REQUIRED!!
    fontsize:'100%', // express as percentage with the % sign
    linkheight:22 , // linked horizontal cells height
    hdingwidth:210 , // heading - non linked horizontal cells width
    // Finished configuration. Use default values for all other settings for this particular menu (menu[1]) ///

    menuItems:[ // REQUIRED!!
    //[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
    ["Pages"], //create header
    ["Page 1", "page_1.html", ""],
    ["Page 2", "page_2.html",""],

    ["Contact", "", ""], //create header
    ["Test email", "<a href=mailto:anyone@anywhere.com?subject=Request for information&body=Message Conten></a>", "_new"],
    ["Whatever", "http://www.smh.com.au", "_new"] //no comma after last entry

    ]}; // REQUIRED!! do not edit or remove



    ////////////////////Stop Editing/////////////////

    make_menus();

    Appreciate any help I can get on this.

    Cheers & thanks,
    Paul

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Change:

    Quote Originally Posted by paulzab View Post
    Code:
     ["Test email", "<a href=mailto:anyone@anywhere.com?subject=Request for information&body=Message Conten></a>", "_new"],
    to:

    Code:
     ["Test email", "mailto:anyone@anywhere.com?subject=Request for information&body=Message Content", ""],
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Hi John,

    Many thanks. Coming to grips with html, CSS, javascript and php reminds me of when I first starting learning Shakespeare in high school. The first play might as well have been written in a "real" foreign language. The second play was "understandable" and the third play was enjoyable.

    Once again, cheers.

    Paul Zab

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
  •