slipperyfish Posted March 29, 2006 Share Posted March 29, 2006 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" />[code]var imageSrc = anImage.src;[return base filename of the variable]document.write([filename]);[/code]or is this just a ridiculous question? Link to comment https://forums.phpfreaks.com/topic/6114-retrieving-the-filename/ Share on other sites More sharing options...
slipperyfish Posted March 30, 2006 Author Share Posted March 30, 2006 doesn't matter anymore, i have found a way around it. Link to comment https://forums.phpfreaks.com/topic/6114-retrieving-the-filename/#findComment-22245 Share on other sites More sharing options...
GBS Posted April 19, 2006 Share Posted April 19, 2006 Hi there,,cool,.... & it was,... ? :)It would be pretty nice to show us the solution,... ;)l8tr,, Link to comment https://forums.phpfreaks.com/topic/6114-retrieving-the-filename/#findComment-28780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.