473,498 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to take imagename from image path using javascript?

56 New Member
Hello
I have got image path in javascript from php code.
That is:http://localhost/fotolia/photos/9.jpg
I want to take only photos/9.jpg from that full path.How can i do that?Please help me......



Thanks...........
Sep 4 '08 #1
3 2856
Dormilich
8,658 Recognized Expert Moderator Expert
you can use a regular expression for this.

regards
Sep 4 '08 #2
Markus
6,050 Recognized Expert Expert
PHP or JavaScript?

You say 'using javascript' but have posted this in the PHP forum...

Please clarify.
Sep 4 '08 #3
Atli
5,058 Recognized Expert Expert
Hi.

Take a look at the basename function.
Sep 4 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
13045
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
0
4939
by: amita | last post by:
hi, 1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page. 2.This '.tif' type image can be shown better with 'Kodak Image Control'. 3.To...
6
30614
by: Ross M. Greenberg | last post by:
If I have a variable named 'fred', the contents looking like this: '/gif/picture1.gif', how can I display that image? Thanks! Ross
19
1484
by: amit | last post by:
Hi group, Long story short, I'm new to JavaScript and have started it less than 3 weeks. My question is 1) how can I create a situation that when user clicks on gif or ... image file an event...
4
2692
by: yatin | last post by:
hi, friend. i have a problem in image validation plz check it. i have to include a image validation in foam 1. but i sending a details through form2. But when i include a image validation in foam1,...
3
1286
gangste85™
by: gangste85™ | last post by:
Hello, i am having a C# convert problem. I am using a XML to save positions of all the items on screen so you can customize. I am having a image right now. Its Called Image1. I have a string...
2
8309
by: Tim Streater | last post by:
The following test page is intended to allow the user to choose an image file, and then display it. It works as expected in Safari 3.1.1, FF 2.0.0.14 (Mac), and IE7 (XP). But, it fails in FF...
11
2986
by: Evolution445 | last post by:
I got this code, and it somehow doesnt work. <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"> <TR> <TD background="{image-path}navfiller.gif" HEIGHT=40...
3
4400
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4590
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.