Comments on: Widgets – iframe vs. inline http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/ by Ran Tavory Mon, 01 Aug 2011 08:29:01 +0000 hourly 1 http://wordpress.org/?v=3.2 By: Ran Tavory http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-7001 Ran Tavory Mon, 04 Apr 2011 04:56:52 +0000 http://prettyprint.me/?p=71#comment-7001 Google's app engine is certainly a good option. It's limited in some ways, so it's not a general purpose backend, but for hosting a scalable service for a widget it's pretty good. By browser's security model, an iframe does not have access to the hosting page and this includes the URL of the hosting page. You can, however, pass that URL as you call your widget, e.g instead of simply embedding an iframe with a link to your widget, embed a script which builds this iframe and passes the link of the hosting page to it. Google’s app engine is certainly a good option. It’s limited in some ways, so it’s not a general purpose backend, but for hosting a scalable service for a widget it’s pretty good.
By browser’s security model, an iframe does not have access to the hosting page and this includes the URL of the hosting page. You can, however, pass that URL as you call your widget, e.g instead of simply embedding an iframe with a link to your widget, embed a script which builds this iframe and passes the link of the hosting page to it.

]]>
By: Dhanika http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-7000 Dhanika Mon, 04 Apr 2011 04:39:12 +0000 http://prettyprint.me/?p=71#comment-7000 Thanks for the nice post! I'm writing a widget these days & thought to prefer iframe method for that. But I have few questions regarding this. 1. Is there any free reliable site where we can host our server side code & which can also handle the load? (Will Google Code or Google app engine help for this) 2. When using iframe method, can I track the URLs of the sites who use my widget & any method to get that stats? Waiting for your answers. Thanks in advance! Thanks for the nice post!

I’m writing a widget these days & thought to prefer iframe method for that. But I have few questions regarding this.
1. Is there any free reliable site where we can host our server side code & which can also handle the load? (Will Google Code or Google app engine help for this)
2. When using iframe method, can I track the URLs of the sites who use my widget & any method to get that stats?

Waiting for your answers. Thanks in advance!

]]>
By: Neeraj http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-5353 Neeraj Wed, 12 Jan 2011 10:20:48 +0000 http://prettyprint.me/?p=71#comment-5353 Links inside iframe (on our php page) wont be read by search engines. But link in iframe tag itself will get the google juice from client page. In short we can get get google juice for our widget page but not Homepage or any other page that we want to. Add a link outside iframe, then we get juice but in this we cant prevent user from removing our link(most precious in the world). Links inside iframe (on our php page) wont be read by search engines. But link in iframe tag itself will get the google juice from client page. In short we can get get google juice for our widget page but not Homepage or any other page that we want to. Add a link outside iframe, then we get juice but in this we cant prevent user from removing our link(most precious in the world).

]]>
By: rantav http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-21 rantav Sat, 26 Sep 2009 08:06:36 +0000 http://prettyprint.me/?p=71#comment-21 The answer re what search engines would do actually depends on the search engine itself and different engines may behave differently. My bet is that search engines currently don't index javascript generated content at all (although I read that google is experimenting this) and if your widget is javascript generated, as many widgets are, then your content is not indexed no matter if it's an iframe or not. If your widget isn't javascript generated (it's generated on the server side, such as a wordpress plugin) then my *bet* is that google would associate any iframe content to the actual page it's included at and not to your server. Again, this is partially guess work and is really up to the search engine to decide on that. The answer re what search engines would do actually depends on the search engine itself and different engines may behave differently.
My bet is that search engines currently don’t index javascript generated content at all (although I read that google is experimenting this) and if your widget is javascript generated, as many widgets are, then your content is not indexed no matter if it’s an iframe or not.
If your widget isn’t javascript generated (it’s generated on the server side, such as a wordpress plugin) then my *bet* is that google would associate any iframe content to the actual page it’s included at and not to your server. Again, this is partially guess work and is really up to the search engine to decide on that.

]]>
By: Forest http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-20 Forest Thu, 24 Sep 2009 15:09:38 +0000 http://prettyprint.me/?p=71#comment-20 I'm just conjuring up the idea of building a widget for my niche. If I produced this as an iframe widget and the widget it would simply be called a php page that I created that is the widget.... So will the hyperlinks in that iframed php page be read by the search engine as coming from the origin of the iframe or from the page hosting the widget? I basically wanted to know if I got 1000 people to install my widget that had a link back to my site, would I get 1000 new backlinks or would they not be counted because they are within an iframe? I started to look at an inline javascript widget and it's just too much for me!! Php seems easier. I’m just conjuring up the idea of building a widget for my niche.

If I produced this as an iframe widget and the widget it would simply be called a php page that I created that is the widget….

So will the hyperlinks in that iframed php page be read by the search engine as coming from the origin of the iframe or from the page hosting the widget?

I basically wanted to know if I got 1000 people to install my widget that had a link back to my site, would I get 1000 new backlinks or would they not be counted because they are within an iframe?

I started to look at an inline javascript widget and it’s just too much for me!! Php seems easier.

]]>
By: rantav http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-19 rantav Sat, 30 May 2009 18:32:15 +0000 http://prettyprint.me/?p=71#comment-19 Hi Ori, that's a valid point, I agree, with inline gadgets the main document may finish loading slower so this is another point in favor of iframes. Hi Ori, that’s a valid point, I agree, with inline gadgets the main document may finish loading slower so this is another point in favor of iframes.

]]>
By: Ori Lahav http://prettyprint.me/2009/05/30/widgets-iframe-vs-inline/comment-page-1/#comment-18 Ori Lahav Sat, 30 May 2009 08:33:24 +0000 http://prettyprint.me/?p=71#comment-18 Ran nice post. one thing to mention about this issue is load time and page delay. with IFrame based widgets, as they are running on an "inner window" the widget load is not disturbing the main page load. however - with inline widgets, if not implemented correctly, they can delay content loading which is sometimes... very bad! Ran
nice post.
one thing to mention about this issue is load time and page delay.
with IFrame based widgets, as they are running on an “inner window” the widget load is not disturbing the main page load. however – with inline widgets, if not implemented correctly, they can delay content loading which is sometimes… very bad!

]]>