Detecting If Somebody Manually Saves An Image To Their Computer?
Nov 23, 2011
I'm trying to keep record of how many times an image has been downloaded. Is it possible to detect if a client manually saves an image through their browser?
i have a small (LAN only) web server running on my computer, and i would like to be able to make a web page in which i can run a program on the server computer from another compuer. say, for instance, i click a button on the web page running on the server, i want that action to run a .exe on the server. i came up with this code, but it doesn't run it server side, it runs it on the computer with the browser.
I have some CSS/javascript which takes an image and re-sizes it on a page with a hover-over state which causes it to expand. However, this will only re-size to specific proportions (in this case 1:1).
This is fine in the case of e.g. an 86x86 image but what I want to be able to do is detect if the image has a height greater than it's width, and if so, crop the image accordingly to make it a square.
I have an ajax function which passes form field values to a PHP script which in turn saves the data to my database. all works great.
I now need to add a file input to my form and pass the file upload ot the same PHP script.
I have read an article [url] which explains how to do this but this would suggest it is a completely separate function.
My question is, is there anyway I can expand my existing function (below) to inlude the file upload process to save having 2 functions doing the same process?
I'm playing around with forms and wrote a JavaScript function that loops through all form elements and displays every option in every select field with an alert for each one.
var els = form.elements; var l = els.length; for (var i=0; i<l; i++) // loop through all form elements { if (els[i].type.substring(0,6) == 'select') { var options = els[i].options; for (var j=0, len=options.length; j<len; j++) { alert(els[i].name + ' option ' + j + ' = "' + options[j].text + '"') }}}
In the form I am using this results in many alert boxes popping up.
This seems like a very, very basic question, but I've Googled it quite a bit and can not find an answer. Is there a way to manually abort that script (other than closing my browser) or do I have to keep clicking OK until the loop has run it's complete course?
So what im doing is actually in php, but just wanted to know whats the working logic of what im trying to do. I currently have 2 servers(virtual machines). i have a php file in ubuntu server that calls some other files on the windows server and vice versa. as of now, i am able to call the files just fine. the problem im having is the ip changes every time i reboot the machines(duh. so i have to manually go change the ip address every time in my php files for them to find the other server. is there a way that each server gets the ip of the other automatically so i dont have to do it manually?.
My javascript quits working when I am rendering the html? (It works perfectly fine if the page is opened from http address directly). I did some research and concluded that "JavaScript is executed on page load", so when I render my html, my JavaScript functions are not automatically called.how should I call the javascript functions manually?
verify.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD> <Title>form</Title>
Is it possible to execute a JS function in a website, by using the JS console? Facebook has a function Facebook.streamPublish() for instance, which displays a dialog box to send a story to your Wall.Is it possible to call this from the JS console manually?I'm developing a Facebook application. I tried to call the above function from the Firebug console to test but with no success.
I would like user to be able to switch photos manually (with "next" and "previous" links ) or automatically, i.e., to have a link on the page that says "play slideshow" or something, then the slides switch automatically, like this guy has here, [URL] ("play" link in the middle switches photos automatically; he doesn't use cycle plugin, but I'd like to do this w/cycle plugin if possible..)
I have a page with content. Upon a certain action, two images get updated/replaced. Because the images are on another server, it sometimes takes a couple of seconds.
* I would like to block specific actions (click on a button/other image) UNTIL the images are loaded.
* How do I detect when the images are done loading? Something like readyState, complete, or something?
I am looking for an example/code to get MAC Address with JavaScript or any other technology for a php based web application. The collected MAC Address will be stored in a MySQL table, 'login' to generate reports. I have found some php scripts helping me do this but it does not get the client computers MAC Address. And these examples work only on localhost. While running it on the server the MAC Address is different than the local one.Can we find out the MAC Address for a clients computer anyways to use in the application and which will be cross browser compatible?
I am looking for an example/code to get MAC Address with JavaScript or any other technology for a php based web application. The collected MAC Address will be stored in a MySQL table, 'login' to generate reports. I have found some php scripts helping me do this but it does not get the client computers MAC Address. And these examples work only on localhost. While running it on the server the MAC Address is different than the local one. Can we find out the MAC Address for a clients computer anyways to use in the application and which will be cross browser compatible?
I want to find real IP Address of computers that are connected to my company's website. All users who want to see our website pass from our ISA Server. So, if I want to get their real IP Address with javascript commands, I'll get one and only one IP Addres from anywhere that is our ISA Server address. How I can get real ip address of those computers and compare it with predefined address?
We have a form on our website, which ends up being sent to an e-mail address. The only problem is that some people access this form using public computers. When they press submit , the Internet Mail Wizard pops up and tries to make them setup a new account. Obviously because they are using a public computer we can't have them setting up e-mail accounts on that computer.
Is there any way one can retrieve the local IP Address of a computer? For example 192.168.0.1 as opposed to the internet connection IP address. Or is there a way to retrieve a unique identity of a computer using either PHP or javascript. Or any other sort of code?
I need to create a constructor for a computer object. This object must have three properties: speed, and mem_live mem_dead. Then I need to create a new object using this constructor and then have its properties displayed on the screen.Look at what I'm up to so far:
function Computer(speed, mem_live, mem_dead) { this.speed = speed;
jQuery script I wrote works nicely on one computer, fails on 3 othersManaged to get jQuery datepicker to work nicely with $wpdb.This all seems correct to me:
<li><label for="from">From</label> <input readonly="true" type="text" name="from" id="from" value="Click here to choose!" class="requiredField" style="position: relative; z-index: 100000;" />
On many pages like Yahoo or similar, if we try to save the page by File>Save many of items like images or JavaScripts does not get saved on computer how is this achieved.