Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ image not loading

Posted by: tudsy Oct 16 2017, 09:28 AM

Hi

I am trying to retrieve the file path when a user clicks a link and opens a dialog box.

Can anybody help please?

Thanks.


Attached File(s)
Attached File  Cwp__1_.html ( 3.75k ) Number of downloads: 331

Posted by: pandy Oct 16 2017, 09:38 AM

I don't understand the question. And what image isn't loading?

Posted by: tudsy Oct 16 2017, 09:46 AM

QUOTE(pandy @ Oct 17 2017, 12:08 AM) *

I don't understand the question. And what image isn't loading?



When the user clicks on the link 'Choose image file', it opens a dialog box and chooses an image file. Then i want to display that image.

Thanks.

Posted by: pandy Oct 17 2017, 06:05 AM

I'm sorry. I downloaded your HTML file but accidentally opened another file I had downloaded before. I can only blame that I'm confused by my new OS. blush.gif

Firstly, I think you need to use input type file. Secondly, it won't work anyway. Because of security reasons browsers will only return the file name without path. I think you need to go over the server somehow, actually upload the image. Maybe Ajax.

Christian can probably give you a better answer.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)