by san » Sat May 19, 2007 9:58 am
Hi andrew....
Sorry for the late reply..,
Dont fear with %20, it is nothing but ascii for spaces ....
why u got this is we are escape() the string while passing....
Inside the ddrivetip() function u have to unescape() the sting...
function ddrivetip(thetext, thewidth, thecolor){
thetext = unescape(thetext);
....
...
}
If u dont want to see the full description in the tooltip,
U can pass the string upto u want ,
Suppose u want to see 300 charactors in the description,
Change the showRSSData() function.
for(var no=1;no<tokens.length;no++){ // Looping through RSS items
var itemTokens = tokens[no].split(/##/g);
//i have added these two lines now
var str = itemTokens[2].substr(0,300);
str = str + ' ... ';
str = escape(str);
string = string + '<tr><td><img src="' + src_smallRightArrow + '"><td><p class=\"boxItemHeader\"><a class=\"boxItemHeader\" href="' + itemTokens[3] + '" onclick="var w = window.open(this.href);return false" onmouseover="javascript:ddrivetip(\''+ str +'\' , \'300\')" onmouseout="javascript:hideddrivetip()">' + itemTokens[0] + '<\/a><\/p><\/td><\/tr>';
}
Regards,
San