Re: ANN: Finally! DBpedia and Wikipedia switched to Topic Maps!
Benjamin Bock <[email protected]>
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Lars and others,
it works fine for me in Firefox, but it doesn't work in Chrome 6.0.447.0 dev.
The problem is the undefined "$" function, obviously because JQuery is
not loaded, it looks like Chrome does not handle the @require
directive.
I tried to autoload it if it is not available but that didn't work.
Here's my try:
if(typeof(window["$"]) == "undefined") {
alert("$ is undefined");
jq=document.createElement('script');
jq.setAttribute("type","text/javascript");
jq.setAttribute("src",
"http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js");
document.getElementsByTagName("head")[0].appendChild(jq);
alert("jq loaded? " + (typeof(window["$"]) != "undefined"));
}
In Chrome both alerts show up, the latter still showing "false". I
don't know how to force download of appended scripts after the page
finished loading, maybe a JS guru can help here.
As a quick fix just inlined JS inside the extension and then it works
in Chrome, too.
By the way, the JQuery team claims that 1.4.x is much faster than
1.3.x, so maybe you could upgrade to 1.4.2. Unfortunately the
1.4.2-min file is about a third bigger....
Benjamin
On Wed, Jun 30, 2010 at 11:19 PM, Lars Heuer <[email protected]> wrote:
> Hi all,
>
> So, I've got your attention.. ;)
>
> Anyway, Mappify provides a browser plugin [1] (requires GreaseMonkey
> [2]) to use the DBpedia / Wikipedia -> Topic Maps service [3] within
> your browser (tested with Firefox 3.6.x, only).
>
> I like to thank Robert Barta [4] who gave feedback, although all bugs
> depend on the author (me).
>
> [1] <http://ws.mappify.org/wp/browser-plugin/>
> [2] <https://addons.mozilla.org/en-US/firefox/addon/748/>
> [3] <http://ws.mappify.org/wp/url/>
> [4] <http://kill.devc.at/>
>
> Best regards,
> Lars
> --
> Semagia
> <http://www.semagia.com>
>
> <http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list
> <http://tinytim.sourceforge.net/> Open Source Topic Maps engine
> <http://mappa.semagia.com/> Mappa - Python Topic Maps engine
> _______________________________________________
> topicmapmail mailing list
> topicmapmail-Zo64W7twoUFWk0Htik3J/[email protected]
> http://www.infoloom.com/mailman/listinfo/topicmapmail
>