Plus - I'm a little weary of relying on Javascript redirects for anything important. For example, you could add some validation of the curl'd $data to make sure it's really what you want before displaying it - for example, test to make sure it's not a 404, and have alternate content of your own ready if it is. The upside, though, is it's more flexible. Consider these things in the context of your own site. This is just a MINIMAL example to illustrate the idea - it doesn't sanitize the URL, nor would it prevent someone else using the redirect.php for their own purposes. I know this is an old post, but another solution would be to use cURL, for example: Also note that these 'hacks' may become obsolete over time. Note, that you can disable this security measure in most browsers (yourself, not for others). There are no completely kosher ways around this security risk so the above are just current work arounds. The real issue is that having http elements inside a https site represents a security issue. Unless you can get the http site owner to create an ssl certificate, the most secure and permanent solution would be to create an RSS feed grabing the content you need (presumably you are not actually 'doing' anything on the http site -that is to say not logging in to any system). If for no other reason than it increases seo. You could/should also recommend to the http site owner that they create an ssl connection. Which has a simple js redirect script like.Īlternatively, you could add an RSS feed or write some reader/parser to read the http site and display it within your https site. Something like: (you can use any langauge/method) You can paste it in any place on your page whereyou want to add image gallery. Use a Third party such as embed.ly (but it it really only good for well known http APIs).Ĭreate your own redirect script on an https page you control (a simple javascript redirect on a relative linked page should do the trick. Visual LightBox generates a special code. The best solution I created is to simply use google as the ssl proxy. Navigating or redirecting to an HTTP URL in an iframe embedded in an HTTPS page is not permitted by modern browsers, even if the frame started out with an HTTPS URL. The skin used on the sample site is Galleria.Note: While this solution may have worked in some browsers when it was written in 2014, it no longer works. On this site you will see an example of what an album embedded using the method described above might look like. We have put together a small sample site called "My Travels". Tip! One of the most flexible skins around is Mr.Burns5, it will be able to adapt to most any size. Browse through the skins section and explore the different skin options to find your perfect fit. The desktop application has tons of skins to choose from. Make sure that you pick a skin and style that matches the color and layout of your website. To make your album smaller, go back to the jAlbum application and reduce the image size (see the "Images" tab of the album settings) and reduce the number of visible thumbnails (how you do this depends on which skin you are using). To avoid scrollbars you need to make sure that your album fits into the intended area. Here's a few tips on how to better make your album blend into your site: In such cases you have to use one of the other options to integrate your album. Some skins will require a larger dimension than others, in order to look their best or even make sense.Īlso note that some blog sites will not allow you to add iframes for security reasons. If you get really stuck, press the Show solution button to see an answer. If you make a mistake, you can always reset it using the Reset button. Insert it into the Input box below, and see what the result is in the Output. In the same dialog box, you can also set a preferred size for the embedded album allowing it to use as much screen space as you wish. Select the Embed map option, which will give you some
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |