Jump to content


Photo

Retrieving the filename?


  • Please log in to reply
2 replies to this topic

#1 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 29 March 2006 - 05:49 PM

Is it possibile to get the src of say an image, then find the filename of that source?

For example:

<img src="blah.jpg" id="anImage" />


var imageSrc = anImage.src;

[return base filename of the variable]

document.write([filename]);


or is this just a ridiculous question?


#2 slipperyfish

slipperyfish
  • Members
  • PipPipPip
  • Advanced Member
  • 40 posts

Posted 30 March 2006 - 10:08 AM

doesn't matter anymore, i have found a way around it.

#3 GBS

GBS
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 19 April 2006 - 10:50 PM

Hi there,,

cool,.... & it was,... ? :)

It would be pretty nice to show us the solution,... ;)

l8tr,,
Sorry for my english,... I do my best, but sometimes,...
1st intention: understand the problem
2nd intention: try to solve it
3rd intention: try to understand how to solve it :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users