Jump to content
xisto Community
Skepticus

Star Rating In Iframe Script

Recommended Posts

Does anybody know of a script which produces a star rating, like the ones on youtube? I'm guessing that there's no reason it can't be displayed in an iFrame. The purpose is to deliver this star rating tool along with ads to allow customers to rate them. I hope it can be delivered with normal ad server technology and still be handled in the usual manner. Any ideas?

Share this post


Link to post
Share on other sites

Does anybody know of a script which produces a star rating, like the ones on youtube? I'm guessing that there's no reason it can't be displayed in an iFrame. The purpose is to deliver this star rating tool along with ads to allow customers to rate them. I hope it can be delivered with normal ad server technology and still be handled in the usual manner. Any ideas?

Right, I've just eaten a massive king prawn curry so i'm gonna have a lie down for an hour, but when I come back i'll show you how to do it using PHP and the $_GET variable! Unless that's not what you're looking for, if you don't want the page to refresh then I can show you how to do it with PHP and ajax

Share this post


Link to post
Share on other sites

Right, I've just eaten a massive king prawn curry so i'm gonna have a lie down for an hour, but when I come back i'll show you how to do it using PHP and the $_GET variable! Unless that's not what you're looking for, if you don't want the page to refresh then I can show you how to do it with PHP and ajax

Wow! That was quick. Thanks man. No hurry-worry, king prawn curry, but I'd hafta go with the PHP/ajax, page refreshments aren't the nicest kind. ;)

Share this post


Link to post
Share on other sites

Ya know, I hate to throw a spanner in your very helpful works 8nnett, but I think I found one. A pretty good one too by the looks. I still don't know if it will do iFrame thing and integrate with ad servers like I want, but I don't know that would have to be a problem anyhow. From what I understand you can put just about anything in an iFrame. iHope ;) I'll attach that file and you can tell me what you think if you like. Cheers!

Share this post


Link to post
Share on other sites

Ya know, I hate to throw a spanner in your very helpful works 8nnett, but I think I found one. A pretty good one too by the looks. I still don't know if it will do iFrame thing and integrate with ad servers like I want, but I don't know that would have to be a problem anyhow. From what I understand you can put just about anything in an iFrame. iHope ;)
I'll attach that file and you can tell me what you think if you like. Cheers!


Had a quick skim through the code, not bad actually. I was going to go with a slightly more simple one but effective none the less. Not sure what it is you mean when you talk about iframes and ad sites. Where does the iframe come in to a star rating service? or is it ad servers you're rating? I don't quite understand sorry.

Share this post


Link to post
Share on other sites

Had a quick skim through the code, not bad actually. I was going to go with a slightly more simple one but effective none the less. Not sure what it is you mean when you talk about iframes and ad sites. Where does the iframe come in to a star rating service? or is it ad servers you're rating? I don't quite understand sorry.

OK. As I understand it, the ad server software always uses iframes to load the ad into as an industry convention. Well, the websites do belong to anybody who wants to publish ads, and the ads could be anything that is targeted to that publisher as suitable for that space, or just to fill it up with best biding contenders. Every visitor produces loading/refreshing events and every page load/refresh event is an impression. To the ad network & advertisers, that impression, is just an opportunity to deliver an ad. What is delivered could be any ad that the middle guys have that somebody was willing to pay to have displayed by that publisher. Point is, the ads themselves are not usually known or specified by the publisher.

The server on the publishers end I think, will provide the code to paste into the web page (and I have never done this, so I'm greener than Eve's fig leaf) that must at least define the position where the ad(s) will be placed. That much stays the same on each page and can even be hard coded I suppose. But perhaps the iFrame is placed on the page to define the target location. After this it's just a matter of the publishers server automatically requesting an impression for each ad container, on each page for each load/refresh event and the network supplies the ad to the machine which loaded it. What is going on between those ad boxes an the ad servers, I think, is a miniature version of what web pages and web servers do to request and deliver web pages, but the ad doesn't come from the same place that the web page does. They both get delivered to the same web page visitor to be rendered on the page by the visitors browser at the time of loading but the ad could be from anywhere. Hence the need for a defined container to receive a regular size ad.

So the iFrame I believe, is the industry standard. If I want to create ads with a star ratting tool, I think they will have to to be able to be delivered in an iFrame and be delivered by the standard ad server technology such as OpenX. Hope that leaves you more confused than you were before I started. ;)

Share this post


Link to post
Share on other sites

Right, i understand exactly what you're saying now, however the advertising banners etc. I've used in the past from companys has never once been in an iframe. It's usually javascript which calls either an embed object or something similar from the advertising server. My sites always use break-out-of-frames scripts which prevents any frames, including iframes from being used on the page anywhere. This is quite a common practice and advertisers are fully aware of this which is why they tend to use flash, javascript or some such technique. The way it works, the javascript calls for a specific response and the ad server returns what ever, the last site i used you could specify what genre of adverts were displayed and so on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.