Log in

View Full Version : DOM problems transfering a script to MediaWiki



urbanvintner
09-27-2010, 10:37 AM
Firstly here is what I am trying to add to my mediawiki skin. http://www.urbanvintner.co.nz/books/ It's a quick and dirty hack of Simple Modal using Google's Book Preview and Dynamic Link APIs. Problem being I can't for the life of me figure out how to address the elements within the mediawiki installation. At least I'm assuming thats the problem. Here are the same links in wiki http://www.urbanvintner.co.nz/GBooks_Widget and here is the js in my skins directory http://www.urbanvintner.co.nz/skins/roundedblue/js/gb.js

Unless I can figure out how to stop Mediawiki stripping attribute tags I am going to have to alter this code anyway, to re-enable page numbers and linking, but right now it isn't even running the first loop, because - and I'm guessing - $('span.gb') is returning an empty object array. I have to say DOM architecture confuses me considerably

djr33
09-27-2010, 05:00 PM
You will probably get better help for this at a forum specifically for mediawiki support. This isn't a "general HTML" question, so many users here will have no information or relevant experience.

I have used mediawiki, but I found it to be very awkward to modify and gave up. In fact, I then wrote my own wiki software instead. So at least I can say that I understand the frustration at trying to add components to the software. Good luck.


(Note: I'm not suggesting that it's impossible someone will have an answer for you, but I do think it is not very likely.)