iframe image http to https - image

I am trying to create my first iframe tab in Facebook. Every time I try to add in a photo code (it is http and shows up properly in preview) it tells me it must be https, so I change it manually and then it will only show as a broken thumbnail file in the preview? Frustrated! Help please!

Related

Images uploading, never being requested once finished

In short, using CKEditor with the Upload Image plugin (http://ckeditor.com/addon/uploadimage). The URL is configured properly (/services/api/ticket/3/upload), and when an image is dragged and dropped, the file is uploaded. My server handles the upload, and then sends the response:
{uploaded:1,fileName:"steve.jpg",url:"/attachment/20.aspx"}
Which matches what's required on the documentation (http://docs.ckeditor.com/#!/guide/dev_file_upload).
So, at the completion of the upload, a green messagebar shows, saying 'File uploaded successfully!', but the image is a small black square - there's no subsequent request for the URL image. Now, as I was working on the server side, a few times I WAS able to get CKEditor to then re-request the given URL and display the image, but when I got the final server-side code into place, it stopped that, and I'm not sure what I would have changed to stop CKEditor from re-requesting the file.
So I was wondering if maybe a response header is incorrect, or am missing something in the return data. I can post response/request headers if needed.
Thanks in advance ya'll..
--Mike
Well, tracked it down.
Apparently the 'LoopIndex Track Changes' addon, when enabled, prevents CKEditor from re-loading the image and displaying properly.
(Would have just deleted the question, but then realized that someone else may run into this, so..)

Asp.Net MVC3 Upload a new logo for page

In the application I'm working on I need to be able to upload a new logo for the site from a settings page. As of now the code replaces the logo-file on disk, but the redirect to the same settings page still shows the old image. Although after a refresh of the page I get the correct image.
I would like the Redirect to load the new image.
I've set these values for the ImageHeaders:
response.Cache.SetCacheability(HttpCacheability.Public);
response.Cache.SetExpires(Cache.NoAbsoluteExpiration);
response.Cache.SetLastModified(File.GetLastWriteTime(FileName));
Are there some sort of "stronger" redirect, or some other way to make this possible?

Embedded QR code image from google charts api is redirecting to broken https URL

I have a QR code image that's embedded from the Google Charts API. Recently it stopped working, but I haven't changed anything in my code.
Here's the page (note the broken images): [redacted]
As you can see, the images are embedded as http:// but when they are loaded, they're redirecting to the https:// URL on the google domain, which is broken.
Why is this redirect happening?
Edit: forgot to add -- what's even stranger is that if you view the image in a new tab, then change http to https (in effect, making the url the exact one that was originally requested),
it loads fine.
Edit #2 removed the link to my test site, as I've fixed the problem.
Turns out the google charts domain has changed. The new one is:
https://chart.googleapis.com
do not use
http://chart.apis.google.com

How to capture screen application to .jpg and post it on wall

now i'm making application for facebook with javascript.but I don't know method to change my screen application to .jpg file.
So,I would like to know how to change my application and post it
Thank you for your help.
You cannot get the screenshot done client side, however you can grab the HTML code of the page being viewed and AJAX it up to your server, have your server component transform that HTML into an image.
Use this to get the HTML content of the page at the moment they want the screen capture document.getElementsByTagName('html')[0].innerHTML;
AJAX the HTML to your server
Have your server transform that HTML into an image (depending upon server-side technology you're using, there are solutions to this) (eg http://www.converthtmltoimage.com/)
two choice, store the image on your server to be the permanent place sending back the new URL for the image, or send the content back to the client.
Have the client HTTP Post the image content to Facebook for the post, or reference the URL
It's a big project, but I commend you for tackling something like this.

plain http image on https/ssl page = warning

I've found the page that plain http images with a https/ssl page can't be displayed without warnings. Are there any way to display a picture from another http:// web-site on your https://web-site without warnings? (suppose you have a permission to display that picture on you web-site).
Chrome put a yellow triangle on SSL locker: "...However, this page includes other resources, that are not secure..."
IE displays a warning when a page loads: "Do you want to view only the webpage content that was delivered securely?"
So, how to display a picture on https:// page if it is on another web-server?
You can use the information on this article on Encosia. Basically you have to use a // syntax for your urls in order to use the same protocol in all cases. For example, if you have a https request, the following
//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
will hit google's CDN using the https protocol. However, if you don't have control over the other server, i think you're out of luck. If you do have control over the other server i'd recommend using the method described in the article above by allowing your content server to serve both protocols.

Resources