Hi, i'm glad to read that you made it work. Yes, the jQuery/Prototype is quite a topic. I did some research in the extensions you have currently installed and figured out that most of them are running jQuery in "noConflict" mode by default. Actually the "noConflict" mode only has to be "activated" once. For all Ontoprise extensions the ScriptManager [1] takes care of this.
I think that richmedia.js is not the perfect place for making jQuery work in "noConlict" mode because this RichMedia version isn't even using the jQuery library. I assume that it should be the task of each extension to provide compatibility with other JavaScript libraries. If the developer does not want to resign the use of $ for jQuery calls he could wrap his code into the ready-function like this jQuery(document).ready(function($){ // Do jQuery stuff using $ $("div").hide(); }); But i would really like to read some opinions of other extension developers about this. Kind regards, Benjamin Langguth PS: Does the HeaderTab extension still work for pages you're using RichMedia with your modification? [1]: http://smwforum.ontoprise.com/smwforum/index.php/Help:Script_Manager_extension Am 24.11.2010 21:45, schrieb don undeen: > > Hi, I've made a little progress here, but it's also raised some more > questions in my mind. > > I was researching the topic of jQuery/Prototype conflicts, and came > across this: > http://docs.jquery.com/Using_jQuery_with_Other_Libraries > > So, to the doUpload function in richmedia.js, I added the line: > > jQuery.noConflict(); > > Right at the top of the function call. > > and now the upload page seems to work. > > Now, I'm not sure that I added that call in the right place to fix > every instance of possible prototype/jquery conflict, or if this will > create other problems with other jquery or prototype code, or if it > isn't just a symptom of some other problem. > > what's the current state of jquery/prototype issues in SMW? > > thanks for listening! > > Don > > ------------------------------------------------------------------------ > *From:* don undeen <donund...@yahoo.com> > *To:* smw dev list <semediawiki-devel@lists.sourceforge.net> > *Sent:* Wed, November 24, 2010 12:12:31 PM > *Subject:* RichMedia Javascript prototype errors... > > hey all, > I'm trying to get the RichMedia extension up and running. > I've got all the various patches installed, for SemanticForms 1.9.1 > and MW core (checked all the files and confirmed every patch) > > and I can put the RichMedia template on a page, > and when I click ">> Attach File" the richMedia-enable window pops up > (with all those metadata fields) > > but in the background (When the upload window comes up), I get the errors: > element.dispatchEvent is not a function > http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207 > Line 4071 > And > elementClassName is undefined > http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207 > Line 1837 > > each appearing twice in a row. > > Then, when I select an image to upload, and click "upload image", > Nothing happens, and I see the javascript error: > uncaught exception: [Exception... "Component returned failure code: > 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]" > nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: > http://ssemtestdb00.metmuseum.org/metwikiupgrade/extensions/SMWHalo/scripts/prototype.js?207 > :: anonymous :: line 1528" data: no] > > Line 0 > > Also appearing twice. > That last error, I can trace back to the execution, in richmedia.js, of > (in doUpload method) > var sForm = $$('form.createbox')[0]; //array > particularly the $$('form.createbox') bit. > > I notice in my source that richmedia.js is being called in twice. > Is that why the error appears twice? I made some modifications so the > js file is only called once, but the error remains. > > > Anyone have any idea what could be up here? > some sort of extension conflict? I've tried disabling the usual > suspects (headertabs, maps, resultsformat, wysiwyg editor) to no avail. > > Version info: > MediaWiki <http://www.mediawiki.org/> 1.15.3 (r76688 > <http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/?pathrev=76688>) > PHP <http://www.php.net/> 5.2.9 (apache2handler) > MySQL <http://www.mysql.com/> 5.1.33-community > > > /Semantic Forms > <http://www.mediawiki.org/wiki/Extension:Semantic_Forms> (Version > 1.9.1_1)/ > /Character Escapes > <http://www.mediawiki.org/wiki/Extension:Character_Escapes> (Version > 0.9.1)/ > /External Data <http://www.mediawiki.org/wiki/Extension:External_Data> > (Version 0.6.1)/ > /Header Tabs <http://www.mediawiki.org/wiki/Extension:Header_Tabs> > (Version 0.8)/ > /Maps <http://www.mediawiki.org/wiki/Extension:Maps> (Version 0.7.2 rc1)/ > /ParserFunctions <http://meta.wikimedia.org/wiki/ParserFunctions> > (Version 1.1.1)/ > /Rich Media Extension > <https://sourceforge.net/projects/halo-extension> (Version > 1.4.1_1-for-SMW-1.4.x)/ > /Semantic MediaWiki <http://semantic-mediawiki.org/> (Version 1.5.1_1)/ > /SMWHalo Extension <https://sourceforge.net/projects/halo-extension> > (Version 1.5.1_4-for-SMW-1.5.1 [B47])/ > /StringFunctions > <http://www.mediawiki.org/wiki/Extension:StringFunctions> (Version 2.0.3)/ > /ARCLibrary <http://smwforum.ontoprise.com/> (Version > Template:$VERSION > <http://ssemtestdb00.metmuseum.org/metwikiupgrade/index.php?title=Template:$VERSION&action=edit&redlink=1&mode=wysiwyg> > [BTemplate:$BUILDNUMBER > <http://ssemtestdb00.metmuseum.org/metwikiupgrade/index.php?title=Template:$BUILDNUMBER&action=edit&redlink=1&mode=wysiwyg>])/ > /LDAP Authentication Plugin > <http://www.mediawiki.org/wiki/Extension:LDAP_Authentication> (Version > 1.2c)/ > /Semantic Maps <http://www.mediawiki.org/wiki/Extension:Semantic_Maps> > (Version 0.7.2 rc1)/ > /Semantic Result Formats > <http://semantic-mediawiki.org/wiki/Help:Semantic_Result_Formats> > (Version 1.5.0_1)/ > /Validator <http://www.mediawiki.org/wiki/Extension:Validator> > (Version 0.4.2 rc1)/ > /Woogle4MediaWiki > <http://www.mediawiki.org/wiki/Extension:Woogle4MediaWiki> (Version > 1.0-RC2 ($Rev: 3844 $))/ > /WYSIWYG extension > <http://smwforum.ontoprise.com/smwforum/index.php/Help%3AWYSIWYG_Extension> > (Version 1.3.2_1, FCK 2.6.4 Build 21629)/ > > > thanks for your time, and have a happy thanksgiving (to those of you > in the U.S.) > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > > > _______________________________________________ > Semediawiki-devel mailing list > Semediawiki-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel -- Benjamin Langguth Halo Team ontoprise GmbH – know how to use Know-how - - - Halo Extension - Want to get involved? http://smwforum.ontoprise.com/development - - - An der RaumFabrik 29; 76227 Karlsruhe; Germany Tel.: +49 721 509809-0; Fax: +49 721 509809-11 mailto:langg...@ontoprise.de, www: http://www.ontoprise.com Registered Office: Karlsruhe, Germany, HRB 109540 Managing Directors: Prof. Dr. Juergen Angele, Hans-Peter Schnurr ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel