зеркало из https://github.com/mozilla/gecko-dev.git
NEw rss load page function.
This commit is contained in:
Родитель
96565dde52
Коммит
f863843c56
|
@ -24,6 +24,20 @@ function rssfetch(refTab,targetDoc, targetElement) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function rssfetchpage(targetDoc, targetElement) {
|
||||||
|
|
||||||
|
|
||||||
|
var testLoad=new blenderObject();
|
||||||
|
testLoad.xmlSet(document.location.search.split("?url=")[1]);
|
||||||
|
testLoad.xslSet("rss_template_html.xml");
|
||||||
|
testLoad.setTargetDocument(targetDoc);
|
||||||
|
testLoad.setTargetElement(targetElement);
|
||||||
|
testLoad.run();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
////
|
////
|
||||||
/// loads the XSL style and data-source and mix them into a new doc.
|
/// loads the XSL style and data-source and mix them into a new doc.
|
||||||
//
|
//
|
||||||
|
@ -88,13 +102,9 @@ blenderObject.prototype.apply = function () {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
this.targetElement.appendChild(htmlFragment.firstChild);
|
this.targetElement.appendChild(htmlFragment.firstChild);
|
||||||
//this.targetElement.setAttribute("test");
|
|
||||||
|
|
||||||
|
|
||||||
/* has to be the actual browser */
|
document.getElementById("loadmessage").style.display="none";
|
||||||
|
|
||||||
this.refTab.setAttribute("image","chrome://minimo/skin/rssfavicon.png");
|
|
||||||
this.refTab.label="SB: "+gRSSTag;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,4 +121,3 @@ blenderObject.prototype.run = function () {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче