Link module: enhancement suggestion

Last post 11-23-2005 8:02 PM by Wow. 1 replies.

Sort Posts:

  • Link module: enhancement suggestion

    09-23-2004, 5:59 AM
    • Member
      5 point Member
    • oetievant
    • Member since 09-23-2004, 5:46 AM
    • Posts 1
    Hello,

    I found out a quite anoying issue about the link module.

    If you choose "open in new window" for the links, you'll see that the whole page is posted back to the server, ans then the new window opens.

    This causes problems, especially if using an IFrame in the caller, as it will be refreshed, and you may loose the transaction you are in, inside this IFrame.

    You can see what I mean at http://www.ladycaronline.de/de/home/default.aspx?tabid=33
    In this page, there is an insurance premium calculator in an Irame, and some links to FAQs subject at the bottom of the page. When I was using the "link" module, I would loose my premium claculation whenever selecting a link: bad, isn't it?

    I did a quick an dirty hack, which I think should be intergrated in the link module.
    There is ofcourse room for improvement, but that's a start.
    This hack is for the "dropdownlist" display type:

    <SCRIPT language=javascript>
    function HandleFAQChange()
    {
    targetUrl = "/DE/Home/Default.aspx?tabId=";

    selectedFaqIdx = document.all["FAQSelectList"].selectedIndex;
    selectedFaqId = document.all["FAQSelectList"].options[selectedFaqIdx].value;

    if (selectedFaqId != "")
    document.all["FAQGoLink"].href = encodeURI(targetUrl + selectedFaqId);
    else
    document.all["FAQGoLink"].removeAttribute("href","false");
    }
    </SCRIPT>

    <SSELECT class=NormalTextBox style="WIDTH: 500px" onchange=HandleFAQChange()
    name=FAQSelectList>
    <OPTION value="" selected>Please select text</OPTION>
    <OPTION value=TabId1>Link1</OPTION>
    ...
    <OPTION value=TabIdN>Linkn</OPTION>
    </SELECT>
    &nbsp;
    <A class=CommandButton target=_blank name=FAQGoLink>Go</A>


  • Wink [;)] Place coding

    11-23-2005, 8:02 PM
    • Member
      55 point Member
    • Wow
    • Member since 10-18-2005, 9:08 PM
    • Posts 11
    May I ask you where you put the coding at........ THANKS!
Page 1 of 1 (2 items)