Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

It is good ideas, but I never seem any web site do that.

 

In normal way, you can't do this, because the image file in client harddisk, server cannot access client harddisk to display the image, even scripting languages like javascript also can't do that. It is due to security issue. Because if you can display image from user harddisk, mean you can do anything in your user harddisk, like delete a file...

 

But you can do it using ActiveX control if user agree to install your ActiveX control in their machine (automatic install).

Posted
You should be able to do this in javascript.I think.Just give them a textbox where they type in the path and change the src of a img tag.
Programmers are trying to create bigger and beter idiot proof programs.The universe is trying to create bigger and beter idiots and so far the universe is winning.
Posted

This works.

 

<HTML>

 

 

<input type='textbox' id='txtimage'>

<input type='button' onclick='document.getElementById("im").src = document.getElementById("txtimage").value' >

 

 

<img id=im src='d.gif'>

 

</HTML>

Programmers are trying to create bigger and beter idiot proof programs.The universe is trying to create bigger and beter idiots and so far the universe is winning.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...