Web Browser inside blogspot? (Browser inside a browser) - browser

I was curious if I can place a web broswer (most basic one) inside a blog post(in a webpage)?
To clarify:
webpage that has a browser lead to another webpage, sub browser in a sense.
Please save all the silly comments and/or jokes. I'm just curious

What you are probably searching for is to use iframe tags. A quick search shows a few tutorials that should help you.
http://www.ehow.com/how_12109858_add-iframe-code-blogspot.html
http://www.bloggerhacking.com/2010/04/iframe-to-add-another-blog-into-your.html
Also more details on iframes
http://www.w3schools.com/tags/tag_iframe.asp
Be warned it wont do wonders for your SEO

Related

"chrome://favicon/myurl" doesn't load the on the webpage but loads in new tab

I am developing a personal productive app. The bookmark manager is part of it.
I use a lot of two-step verification websites so it is difficult to bypass that to get the webpage favicon.
However, when I use "chrome://favicon/https://stackoverflow.com/" I can easily get the favicon of any website.
But the issue is that it works when I open in a new tab but they don't work on my webpage however, in the
For example.
<img src="chrome://favicon/https://stackoverflow.com/" />
Any suggestions on how to fix it. Thanks a mill in advance.
You can Get favicon by https://stackoverflow.com/favicon.ico Of any website. Just add /favicon.ico at the domain. There is no need of using chrome://favicon
Often you can get icon of site by requesting <website>/favicon.ico. For example, it works perfectly for https://stackoverflow.com/favicon.ico. (and it is 32x32, not 16x16 using chrome://favicon).

How does the browser know the correct URL path?

Sorry for the basic question, but couldn't find a similar answer.
If I write this link: click me.
On my HTML page, and host that page at google.com - When I navigate to that page the link will automagically link to google.com/about.
My question is, how does it do that? Does the browser just know the internal link from the page you are currently on? Is it the server calculating the links? How does it know to add the google.com?
I'm building a web crawler that finds links on a site (including these internal links), and not sure if I can just add in the google.com or if browsers work out internal links a different way.

AngularJs Routing without hashtag in link?

I've recently began learning AngularJs for web development and am loving it so far. However, I'm not so sure about having hashtags withing the link when routing between views. My main concern is how Google will cache the pages on the site and whether the links will work both ways, i.e. whether users can just click www.sampledomain.com/#/orders/450 and be directed straight to the order page. Is this an okay method or is there a way to route views without the hashtag?
When I remove the hashtag, the reload the page and gets 404 error. Can anyone give me a decent explanation of what is going on. Thanks
When I remove the hashtag, the reload the page and gets 404 error
That's because in your server side code you are probably not handling a request like "www.sampledomain.com/orders/450"
You can have your server-side code handle this request by either returning a redirect to the new URL ("www.sampledomain.com/#/orders/450") or just return the correct HTML directly. The "right" solution will depend on your needs.
User can just click link with a hashtag and it will be directed straight to the order page.
Google treats links with hashtags as different URL's when the content is different. It's more about SEO then angular.js, but here is an article about that: The First Link Counts Rule and the Hash Sign - Does it Change PR Sculpting?
You might want to set Angular's $locationProvider to use html5Mode.
FTA:
$location service has two configuration modes which control the format of the URL in the browser address bar: Hashbang mode (the default) and the HTML5 mode which is based on using the HTML5 History API. Applications use the same API in both modes and the $location service will work with appropriate URL segments and browser APIs to facilitate the browser URL change and history management.
html5Mode will give you "normal" urls in modern browsers while falling back to hash bangs on older browsers.
An html5Mode url:
http://foo.com/bar?baz=23#baz
a hashbang url:
http://foo.com/#!/bar?baz=23#baz

Is there any way to tell a browser that this is a bad URL to remember?

I'm sending emails to customers, and I'm providing a custom URL for each, which when they go to, will log them in.
This is fine, except if they are using a shared browser that will remember the URL.
Is there any way at all to suggest to the browser that it shouldn't remember a URL?
Edit: This question has nothing to do with caching of the page.
Have the link log them in once. Then make them create credentials that let them access the site in the future. Whats to stop a random person from typing in the url and gaining access to the content?
Yes. You can redirect them with a 301 or 302. Then the browser won't save the URL they went to. At least that work with the Mozilla based browsers and I would imagine others too.
Another way, it is uglier though is to reply with an error and include a body which does a refresh. Whether that works in most browsers, probably not. However, browsers do not cache pages that return an error (404 Page Not Found would work, you could also use 403 Forbidden.)
Other than that, there isn't much you can do. JavaScript does not allow you to temper with the history anymore...

SSL: Why does Chrome report mixed content? (Drupal 6)

I've just got a site running nicely with the whole site running through SSL, but Google Chrome is throwing a "This page contains some insecure elements" message, which isn't good in terms of end user trust-ability. All other browsers work fine, and give the golden padlock.
The site is a Drupal 6 e-commerce site, running on apache2, and the error appears in the front end as well as the admin area.
Does anyone know of any methods to find out exactly which elements are being considered insecure?
Edit: I've used Fiddler to check the traffic, and it really is all HTTPS. It even complains on the site holding page, which is very light and has no javascript etc on it...
It could be a browser issue? Have you tried restarting, or clearing all of your cache?
In Chrome, this is trivial. Hit ctrl+shift+j to open the developer tools, and it will plainly list the URL of the insecure content.
Try it on https://www.fiddler2.com/test/securepageinsecureimage.htm, for instance.
I just had a similar problem. Turns out it was a hardcoded background image URL in a CSS file.
You should particularly check any 3rd party stylesheets you are using, as they may hotlink to an image on another server.
Easy solution? Save those images to your server and change the URLs to relative paths in the CSS file.
Hope this helps!
Search the source for http:? Something like <Ctrl-U> <Ctrl-F> http: in firefox should do.
The insecure element is something loaded over insecure — non-https — connection, e.g. image, stylesheet, etc. you obviously need fully qualified URL to load insecure element/
Use Firebug plugin of Firefox. In the NET tab all file locations are shown clearly. Try to find any files that are obtained from http protocol.
It's probably related to this bug:
http://code.google.com/p/chromium/issues/detail?id=24152
Which is why a restart fixed it.

Resources