The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Jun 08, 2011 3:32 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Fri Aug 19, 2005 12:12 pm
Posts: 255
Location: Out of my mind ...sometimes
Hi,
Following this project by Rouven Weßling, an update to Mootools 1.3 of Squeezebox script, ie modal.js and modal-uncompressed.js in /media/system/js/ :
--> http://joomlacode.org/gf/project/joomla ... m_id=26083

I copied this file here :
http://joomlacode.org/gf/project/joomla ... iew=markup

and compressed it using YUI compressor.
Files below.

Update modal.css accordingly, around line 87

Code:
/* Shadows */
#sbox-window.shadow {
   -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
   -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}


USE MY COMPRESSED MODAL.JS AT YOUR OWN RISK
even though I tested it in a joomla 1.6.3 environment --> no glitch


You do not have the required permissions to view the files attached to this post.

_________________
Joomla People's Portal - Mootools Group admin
http://people.joomla.org/groups/viewgro ... tools.html


Top
 Profile  
 
PostPosted: Thu Jul 28, 2011 10:00 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Jul 28, 2011 9:54 am
Posts: 96
I tried this, but I still get the error:

Fout: uncaught exception: [Exception... "Could not convert JavaScript argument arg 0 [nsIDOM3Node.compareDocumentPosition]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://mywebsite.nl/media/system/js/mootools-core.js :: <TOP_LEVEL> :: line 1" data: no]

steps:
- replaced modal.js
- replaced modal-uncompressed.js
- updated modal.css

:(


Top
 Profile  
 
PostPosted: Thu Jul 28, 2011 5:30 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Fri Aug 19, 2005 12:12 pm
Posts: 255
Location: Out of my mind ...sometimes
Hi,
I posted this when Joomla 1.6.3 was still in debug process.
You should check with the above mentioned files present in Joomla 1.6.5 or Joomla 1.7.
Hope you will find the proper solution.

_________________
Joomla People's Portal - Mootools Group admin
http://people.joomla.org/groups/viewgro ... tools.html


Top
 Profile  
 
PostPosted: Wed Dec 14, 2011 7:58 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Jul 28, 2011 9:54 am
Posts: 96
this is the fix for Joomla 1.7:

http://joomlacode.org/gf/project/joomla ... m_id=27239

Worked right out of the box!


Top
 Profile  
 
PostPosted: Wed Dec 28, 2011 11:23 pm 
Joomla! Intern
Joomla! Intern

Joined: Thu Jun 18, 2009 5:03 pm
Posts: 89
Thanks very much, I stumbled on this post with the exact same problem and the proposed fix works perfectly! Hopefully it will make it into the next Joomla release!


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 7:51 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Jul 28, 2011 9:54 am
Posts: 96
bug returned in J2.5...

Trying to find a new solution


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 8:39 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Thu Jul 28, 2011 9:54 am
Posts: 96
Found a great patch !!

I can't take the credit though, it's from this webpage:
http://www.p-o.co.uk/tech/tech-articles ... rface.html

Quote:
The version of modal.js may need to be patched (both modal.js and modal-uncompressed.js) at media/system/js by adding the following script at the end.

Code:
SqueezeBox.handlers.extend({
   ajax: function(url) {
      var options = this.options.ajaxOptions || {};
      this.asset = new Request.HTML(Object.merge({
         method: 'get',
         evalScripts: false,
            onSuccess: function() {
            this.applyContent(this.asset.response.html);
            if (options.evalScripts !== null && options.evalScripts) Browser.exec(this.asset.response.javascript);
            this.fireEvent('onAjax', [this.asset.response.html, this.asset]);
            this.asset = null;
         }.bind(this),
         onFailure: this.onError.bind(this)
      }, this.options.ajaxOptions));
      this.asset.send.delay(10, this.asset, [{url: url}]);
   }
});


The above instantly solved my problems with my modal

    Mootools 1.4
    Joomla 2.5


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 9:13 am 
Joomla! Explorer
Joomla! Explorer

Joined: Fri Aug 19, 2005 12:12 pm
Posts: 255
Location: Out of my mind ...sometimes
Thanks for the fix and great article.

-->Using Ajax with Joomla and Mootools to create a rich and efficient popup user interface
http://www.p-o.co.uk/tech/tech-articles ... rface.html

_________________
Joomla People's Portal - Mootools Group admin
http://people.joomla.org/groups/viewgro ... tools.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group