Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image that runs a script

Status
Not open for further replies.

tfhwargt3

Programmer
Sep 19, 2006
61
US
Hi All,

I want to have a clickable image that runs a script that will parse the webpage the image is on for a specific word. Once I find the word I am going to use it to search in a mysql 5.0 database. I want to do this the most efficient way. My only constraints are that the image click must trigger the script, and in the end the script will need to interact with the mysql database.

Please let me know what language I should look into, and also if you know, the most efficient way to embed the language or file in the image.

Thanks for any help.
 
This question doesn't really belong in this forum, but you're going to need javascript, and you'll most likely need to go the AJAX route, unless you want to use less-efficient postbacks in, say, ASP.Net.
 
I'm not sure I understand what you're doing... you might not need AJAX if you're not dynamically changing the content on the page. You probably just need CGI, PHP, ASP or a similar server-side scripting technology.
 
If this is a continuation of your post Images with Secure DB Scripts , the short answer is that it cannot be done.

There is nothing you can do to ensure that your image can't be copied and used elsewhere. There are ways to confound the average user (display the image with javascript, etc.), but a determined person with moderate skills will be able to find it and copy it.

The image itself can not (thankfully) contain any code.

I'm pretty sure this is not the answer you are looking for. I suggest that you use lo res and / or watermarked images depending on the use you have in mind.

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
One could write a custom ActiveX control that grabs a bit stream from the server via a TCP socket connection and then decodes that stream onto a panel in the ActiveX control, which sits inside Internet Explorer. This bit stream would of course contain the image data and could be encrypted (or even be in your own custom image format) to prevent it from being captured by a network sniffer or taken from the browser cache. However, someone could always capture the screen with <Alt> + <Print Screen>. Therefore, I agree with traingamer; your idea won't fly.
 
BTW, if you figure out how to prevent people from copying media off the web, the motion picture and recording industries will gladly pay you millions for the technology!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top