[Javascript] parse question

tedd tedd at sperling.com
Mon Feb 26 10:36:57 CST 2007


At 2:21 PM +0000 2/26/07, Nick Fitzsimons wrote:
On 26 Feb 2007, at 14:03:49, Mike Dougherty wrote:
At 9:03 PM +0000 2/25/07, Jonathan Buchanan wrote:
At 8:01 AM +0100 2/26/07, Emmanuel wrote:

-snip-

To all:

Here's where I show my ignorance, but I can't seem to crack this nut 
-- so here goes.

The following is the function that's giving me problems.

HsExpander.prototype.writeCredits = function ()
{
var credits = hs.createElement
('a',
{
href: this.a,
className: 'highslide-credits',
innerHTML: hs.creditsText,
title: hs.creditsTitle
}
);
this.createOverlay(credits, 'top left');
};

When the "credits" are shown "this.a" will produce:

http://www.mydomain.com/firstdir/secondir/myfile.txt

However, no matter what I've tried, including all your suggestions 
and more, I can't reduce this to "myfile.txt".

There's something different going on here that I don't understand -- 
any explanation or solution?

Thanks for your time and review.

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list