Note: To use this with HTTPS correctly. You should copy http://code.jquery.com/jquery-latest.js to the folder where this will run so that you are NOT mixing HTTP and HTTPS. A working Example of this as well as more details can be Found here: http://foscam.us/forum/showing-secure-methods-using-php-to-display-your-ip-cameras-t8721-20.html#p46871