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 1.15.3 (r76688)
PHP 5.2.9 (apache2handler)
MySQL 5.1.33-community
Semantic Forms (Version 1.9.1_1)
Character Escapes (Version 0.9.1)
External Data (Version 0.6.1)
Header Tabs (Version 0.8)
Maps (Version 0.7.2 rc1)
ParserFunctions (Version 1.1.1)
Rich Media Extension (Version 1.4.1_1-for-SMW-1.4.x)
Semantic MediaWiki (Version 1.5.1_1)
SMWHalo Extension (Version 1.5.1_4-for-SMW-1.5.1 [B47])
StringFunctions (Version 2.0.3)
ARCLibrary (Version Template:$VERSION [BTemplate:$BUILDNUMBER])
LDAP Authentication Plugin (Version 1.2c)
Semantic Maps (Version 0.7.2 rc1)
Semantic Result Formats (Version 1.5.0_1)
Validator (Version 0.4.2 rc1)
Woogle4MediaWiki (Version 1.0-RC2 ($Rev: 3844 $))
WYSIWYG 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