imagemOver: "/Portal/G1V2/img/ico_estrela_on.gif", imagemOut: "/Portal/G1V2/img/ico_estrela_off.gif", container: "rating", containerIframe: "iframe", urlInformacao: "http://"+location.host+"/webmedia/RatingInformacao", urlDarNota: "http://"+location.host+"/webmedia/RatingDarNota", urlAdicionarHit: "http://"+location.host+"/webmedia/RatingAdicionarHit", maximoImagens: 5, nomeCookie: "GloboRatedItem", textos: { 1: "", 2: "", 3: "", 4: "", 5: "" }, textoDeSuaNota: "Dê sua nota: ", textoSuaNota: "Sua nota: ", textoMediaNotas: "Média geral: ", textoHits: " ", idItem: 176746, idSessao: 8491, idEntidade: 5, agregado: true } window.onload = function() { //var host = location.host; //var index = host.indexOf('.'); //var domain = host.substring(index+1, host.length); //document.domain=domain; document.domain='globo.com'; var configChild = { imagemOver: "/Portal/G1V2/img/ico_estrela_on.gif", imagemOut: "/Portal/G1V2/img/ico_estrela_off.gif", container: "ratingCabecalho", containerIframe: "iframe", urlInformacao: "http://"+location.host+"/webmedia/RatingInformacao", urlDarNota: "http://"+location.host+"/webmedia/RatingDarNota", urlAdicionarHit: "http://"+location.host+"/webmedia/RatingAdicionarHit", maximoImagens: 5, nomeCookie: "GloboRatedItem", textos: { 1: "", 2: "", 3: "", 4: "", 5: "" }, textoDeSuaNota: "Dê sua nota: ", textoSuaNota: "Sua nota: ", textoMediaNotas: "Média geral: ", textoHits: " ", idItem: 176746, idSessao: 8491, idEntidade: 5, agregado: true } var rating = new Rating(config); var ratingChild = new Rating(configChild); rating.child = ratingChild; ratingChild.child = rating; rating.show(); } Media geral: De sua nota: Rating.init -> inicioRating.init -> fimRating.hit -> inicioRating.carregando -> id = rating_hitsRating.carregando -> fimRating.getUrlAdicionarHit -> inicioRating.getUrlAdicionarHit -> retorna http://g1.globo.com/webmedia/RatingAdicionarHit?1=1&idItem=176746&idEntidade=5&idSessao=8491&agregado=true&nocache=1194726493781Rating.hit -> sendObj = { url: 'http://g1.globo.com/webmedia/RatingAdicionarHit?1=1&idItem=176746&idEntidade=5&idSessao=8491&agregado=true&nocache=1194726493781', obj: '[object Object]', func: 'loadInformacao', onError: 'loadErro', args: '' }IframeEmuleAjax.prototype.load - inicioIframeEmuleAjax.prototype.load - iframe.id = IframeEmuleAjax_1194726493781IframeEmuleAjax.prototype.load - fimRating.hit -> fimIframeEmuleAjax.prototype.onData - inicioIframeEmuleAjax.prototype.onData - iframe.id = IframeEmuleAjax_1194726493781IframeEmuleAjax.prototype.onData -> erro: undefinedOcorreu um erroIframeEmuleAjax.prototype.onData - fimRating.init -> inicioRating.init -> fimRating.init -> inicioRating.init -> fimRating.carregando -> id = rating_mediaRating.carregando -> fimRating.show -> inicioRating.getUrlInformacao -> inicioRating.getUrlInformacao -> retorna http://g1.globo.com/webmedia/RatingInformacao?1=1&idItem=176746&idEntidade=5&idSessao=8491&agregado=true&nocache=1194726494750Rating.show -> sendObj = { url: 'http://g1.globo.com/webmedia/RatingInformacao?1=1&idItem=176746&idEntidade=5&idSessao=8491&agregado=true&nocache=1194726494750', obj: '[object Object]', func: 'loadInformacao', onError: 'loadErro', args: '' }IframeEmuleAjax.prototype.load - inicioIframeEmuleAjax.prototype.load - iframe.id = IframeEmuleAjax_1194726494750IframeEmuleAjax.prototype.load - fimRating.show -> fimIframeEmuleAjax.prototype.onData - inicioIframeEmuleAjax.prototype.onData - iframe.id = IframeEmuleAjax_1194726494750Rating.loadInformacao -> inicioRating.loadInformacao -> media = 0Rating.printMedia -> inicioRating.printMedia -> fimRating.printSuaNota -> inicioRating.getSuaNota -> inicioRating.getNomeCookie -> inicioRating.getNomeCookie -> return GloboRatedItem_8491_5Rating.getSuaNota -> cookie = nullRating.getSuaNota -> return 0Rating.printSuaNota -> fimRating.printHits -> inicioRating.printHits -> fimRating.loadInformacao -> child = [object Object]Rating.printMedia -> inicioRating.printMedia -> fimRating.printSuaNota -> inicioRating.getSuaNota -> inicioRating.getNomeCookie -> inicioRating.getNomeCookie -> return GloboRatedItem_8491_5Rating.getSuaNota -> cookie = nullRating.getSuaNota -> return 0Rating.printSuaNota -> fimRating.printHits -> inicioRating.printHits -> fimRating.loadInformacao -> fimIframeEmuleAjax.prototype.onData - fim var rating = new Rating(config); rating.hit();