I found the (surprisingly simple) solution to recent versions of jQuery
breaking SRF Exhibit.

All you have to do is replace : rel=exhibit/data with : rel=”exhibit/data”

in the following lines :


(the missing quotes is the issue)



1- Exhibit\exhibit\exhibit-bundle.js(373):
Exhibit.Database._Impl.prototype.loadDataLinks=function(fDone){var
links=SimileAjax.jQuery("head > link[rel=exhibit/data]").get();



2- Exhibit\exhibit\scripts\data\database.js(139): var links =
SimileAjax.jQuery('head > link[rel=exhibit/data]').get();


Source (or rather, inspiration for a solution):
http://www.thalesjacobi.com/Jquery_error_uncaught_exception_Syntax_error_unrecognized_expression

SRF Exhibit works without javascript error with jQuery 1.5.1 and 1.6.1 (two
versions that used to break without quotes).

Adding the quotes doesn't seem to break SRF qith jQuery 1.4.3 either, so the
change seems safe at this time.

- Laurent

On Wed, Jun 29, 2011 at 1:07 AM, Yaron Koren <ya...@wikiworks.com> wrote:

> Hi Laurent,
>
> Starting with version 1.16, MediaWiki came bundled with its own copy of
> jQuery - so MW skins that use jQuery should use MW's copy whenever possible,
> which would eliminate problems of jQuery incompatibility. You can see the
> 6th bullet point here, for one way to do that for a custom skin:
>
>
> http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Semantic_Forms_issues
>
> -Yaron
>
>
> On Fri, Jun 24, 2011 at 2:11 PM, Laurent Alquier <laur...@alquier.org>wrote:
>
>> Hi
>>
>> I am running a custom skin based on jQuery.
>>
>> I recently switched from jQuery 1.4.3 to 1.6.1 and noticed that pages with
>> the Exhibit format are now blank.
>> Reverting to 1.4.3 brings them back.
>>
>> There is a javascript error as well :
>>
>> Error: uncaught exception: Syntax error, unrecognized expression:
>> [rel=exhibit/data]
>>
>> Something to look into as people are going to eventually upgrade.
>>
>> --
>> - Laurent Alquier
>> http://www.linfa.net
>>
>>
>> ------------------------------------------------------------------------------
>> All the data continuously generated in your IT infrastructure contains a
>> definitive record of customers, application performance, security
>> threats, fraudulent activity and more. Splunk takes this data and makes
>> sense of it. Business sense. IT sense. Common sense..
>> http://p.sf.net/sfu/splunk-d2d-c1
>> _______________________________________________
>> Semediawiki-devel mailing list
>> Semediawiki-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>>
>>
>
>
> --
> WikiWorks · MediaWiki Consulting · http://wikiworks.com
>



-- 
- Laurent Alquier
http://www.linfa.net
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to