Trouble with Phantom URL Parameter

Posted on 2008-11-19
Last Modified: 2012-06-21
I am working with a cms system made by a company called Ektron.  I have contacted them on this issue, but they have no idea how to fix it.  I figured this site was my best shot for an answer, so here goes the question:

In my URL, I have a value called ekmensel.  I do not need this value, but I can't find the code that's making it show up.  I want to get rid of this value, because it provides no functionality that I can see. I believe it is being added by some javascript, and I do not know how to track it down.  Here is the site that I'm working on:

From that site, click around on a few links, and you will see the ekmensel value show up in the URL.  Not all the links will work, because the site is still in transition from stage to live.  Please let me know if I need to provide anything else.  Thanks for reading.
Question by:thedeal56
    LVL 24

    Expert Comment

    The "ekmense" parameter is being explicitly added to the "Residents" link. Hover your mouse over that link, and you will see the parameter in the URL listed at the bottom of your browser.

    The line that creates that link is:

    <div  id="c57dfa7b_452_0"  class="ekmenu_submenu" ><a  id="c57dfa7b_452_0_btnlink"  class="ekmenu_submenu_btnlink"  onclick="ekMenuEx.itemLinkClickHdlr(event);" ondblclick="ekMenuEx.itemLinkClickHdlr(event);"  href="/stage/default.aspx?ekmenu=154&amp;id=3176&amp;ekmense" onkeydown="ekMenuEx.menuBtnKeyHdlr(event);" ><span  class="ekmenu_button"  id="c57dfa7b_452_0_button" onmouseover="ekMenuEx.menuBtnMouseOverHdlr(event);" onmouseout="ekMenuEx.menuBtnMouseOutHdlr(event);" onfocus="ekMenuEx.menuBtnMouseOverHdlr(event);" onblur="ekMenuEx.menuBtnMouseOutHdlr(event);" onkeydown="ekMenuEx.menuBtnKeyHdlr(event);" tabindex="0"  ><img src="/stage/images/residents.gif"  class="ekmenu_button_image"  id="c57dfa7b_452_0_button_image"  alt="Residents Top"  /></span></a><div  id="c57dfa7b_452_0_submenu_items"  class="ekmenu_submenu_items_hidden" >

    Notice also that "ekmenu" is referenced several times in that line, as if it is part of the structure of the application.
    LVL 15

    Expert Comment

    Its being added from your menu in ek_menu_ex.js

    function __ekMenuEx_ekMenu_selectMenuItem(el) { on line 1997

    I think its meant to be there to enable the menu style sheet to change to the selected page? not sure but I would definitely leave it there.
    LVL 15

    Expert Comment

    The details for that function are:

    // ekMenuEx Instance Member Helper Function.
    // Called when a menu-item (such as a link) is clicked,
    // modifies the items href parameter to pass the selected
    // item info over the querystring:

    Author Comment

    I was thinking that too, but if you remove ekmensel from the url, the page is still highlighted.  
    LVL 15

    Accepted Solution

    Try commenting out the line 992:


    and see if that a) removes it and b) the menu still works. THat is where the function above is being called.

    Author Comment

    That seems to work!  Thank you very much.  I will need to make another post for my next question, but I would appreciate some preliminary input on it:

    What I am wanting to do is stop the remaining URL values from being sent through the URL, and have them function like a html form's post method.  How difficult a task am I looking at if I choose to go that route?  Thanks again for you help.

    Author Closing Comment


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    How to convert code to a png file 22 81
    Handling empty sub-menus with CSS 2 19
    Spacing between <li> 3 13
    Search box won't work. 22 19
    This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now