[Javascript] parse question
Peter Brunone
peter at brunone.com
Mon Feb 26 13:31:02 CST 2007
> From: tedd
tedd at sperling.com
>
> 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".
Forgive me for coming in late, but what about this?
var arrURL = "http://www.mydomain.com/firstdir/secondir/myfile.txt".Split("/");
var myFile = myURL[myURL.length - 1];
Cheers,
Peter
----------------------------------------
From: tedd
tedd at sperling.com
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
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070226/b622c7b4/attachment.htm>
More information about the Javascript
mailing list