Subject:Need Help on XSL with Javascript... Please help... Author:Ryan Chan Date:14 Dec 2006 12:25 PM
Thank you for viewing this post.
I'm new on XSL, recently have a project.
In my project, I have a link which need to generate it's href URL dynamically. Thus, I used javascript to populate the URL.
==============================
===== below are the code =====
==============================
=============================================
===== below are some code in function.js =====
=============================================
function aLink(title)
{
var link = "http://www.aa.com/post?url=" + extractLoc(location);
//window.location = link;
return link;
};
function bLink(title)
{
var link = "http://www.bb.com/submit?url=" + extractLoc(location);
//window.location = link;
return link;
};
Above is my code...
At first, I used the //window.location = link; // to perform the navigation. But if using // javascript:aLink('{$header}') // when the cursor hover the link the status bar will show // javascript:aLink('aa') // instead of the url.
I need to show the entire URL on the status bar.
At first I though is easy, just like normal calling a function and get the return value and populate the link. But it doesn't work.
Anyone willing to give me some hints or help.
Thank you in advance.