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>
<A class=CommandButton target=_blank name=FAQGoLink>Go</A>