jquery problem with GumaxDD and Semantic Forms

If you are having problems with GuMax, post here.
Post Reply
User avatar
krabina
Rank 4
Rank 4
Posts: 20
Joined: June 8th, 2009, 7:14 am

jquery problem with GumaxDD and Semantic Forms

Post by krabina »

Hi,

I use the GumaxDDE skins togehter with Semantic MediaWiki [1] and Semantic Forms [2]. Since the version 2.0 of Semantic Forms it also uses jquery libraries instead of the yahoo ones.

The problem now is that there is a problem with GumaxDD (tested on 1.3 and 1.1) with Semantic Forms 2.0 as the autocomplete features in Semantic Forms do not work anymore in the GumaxDD skin.

Does anybody have an idea on how to solve the problem?

The SF developer wrote
maybe if you just edited the skin file so that it added all its own Javascript in before the other stuff, instead of afterwards, that would do it;
How can I do that? I moved the jquery call in gumaxdd.php from near </head> up to right after <head>, but nothing changed.

Here you can see it:
* http://www.municipal-cooperation.org/in ... n=monobook
this one works, just enter an "a" in the form and autocomplete works
* http://www.municipal-cooperation.org/in ... m:Practice
this one doesn't because it uses the GumaxDD skin as default...

regards,
Bernhard

[1] http://www.semantic-mediawiki.org
[2] http://www.mediawiki.org/wiki/Extension:Semantic_Forms
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: jquery problem with GumaxDD and Semantic Forms

Post by Paul »

I guess there might be conflict with jQuery, since GuMaxDD skin is using jQuery as well.

Can you check if the jQuery gets loaded twice in the page?
User avatar
krabina
Rank 4
Rank 4
Posts: 20
Joined: June 8th, 2009, 7:14 am

Re: jquery problem with GumaxDD and Semantic Forms

Post by krabina »

Thanks to Yaron Koren, developer of Semantic Forms, a solution has been found.

In gumaxdd.php, remove or comment out the line

Code: Select all

	<script type="<?php $this->text('jsmimetype') ?>" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/scripts/jquery-1.4.2.min.js?<?php echo $GLOBALS['wgStyleVersion'] ?>"></script>
at the top of the file, right after

Code: Select all

if( !defined( 'MEDIAWIKI' ) )
    die( -1 );
add the following:

Code: Select all

global $wgOut;
$wgOut->includeJQuery();
Now the drop down menus work as expected AND autocompletion in Sementic Forms works.

By the way, I am using GumaxDD 1.1 as the versions 1.2 and 1.3 don't work at all for me: the main menu items in the newer versions are not clickable...

I also use MW 1.16.0 ans SF 2.0.7RC

regards,
Bernhard
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: jquery problem with GumaxDD and Semantic Forms

Post by Paul »

Thanks for the solution, the new wiki has the jQuery built-in....
Post Reply