Hi ,

I have a input field which on select a local file sents a ajax request with the file name . I use this filename to create a <img> tag with src to this filename but i got a issue with this...

img.src=c://Documents and settings//All users// and so...

how would i remove the extra '/' in the responce <img> which i use to replace the div holding no image.

Thanks in advance for the consideration

harish

The thing you are trying to do is not recommended. Read this thread as a reference which discusses a similar issue.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.