PDA

View Full Version : script fault !!!


Stenner
06-25-2007, 08:11 PM
Hi,

I am using fabrik 1.04b... (Windows XP Prof.)

In the backend when I edit the forms - i get a script error on the bottom of the page by the internet explorer:

- line 70, char 115, "this.tab is zero or no object", code = 0, url:..../administrator/index2.php?option=com_fabrik&task=editForm&hidemainmenu=1&cid=1

when i move the mouse over one of the caption-text (example: FORM WIDTH) the popup with the information for the hovered caption comes up.. then after 1 or 2 seconds the script error on the bottom of the page disappears..

BUT - on the website - choosing the form i have again 2 script errors and the selected form on my page freezes:

a.) line 2, char 1, "the object doesnt support the feature or method", code = 0, url.......
b.) line 74, char 4, "the object doesnt support the feature or method", code = 0, url.......


thanks for help

erwin


ps: i tryied to find out if this fault is coming up on other computer - indeed - on one using Windows 2000 and another one using also Windows XP Prof. !!

rob
06-29-2007, 07:42 AM
Hi Erwin

I've fixed the error in the admin page.
Could you post a link to the form please, so I can see what's causing that error?

Cheers
Rob

Stenner
06-29-2007, 08:50 AM
Hi Rob

...and from where can i have the patch for the adminpage ?

...I have posted you the link for the form as a private message.




regards

erwin

rob
06-29-2007, 09:58 AM
The update is in the SVN - details of how to get it are here:
http://joomlacode.org/gf/project/fabrik/scmsvn/

For your form it looks like an incompatibility between your sites template javascript and fabrik's javascript. The offending code is in /templates/yt_core/lib/js/yt_tools:


/* Include addons */
include: function(library) {
$ES('script').each(function(s, i){
var src = s.getProperty('src');
if (src && src.match(/yt_tools\.js(\?.*)?$/)) {
var path = src.replace(/yt_tools\.js(\?.*)?$/,'') + 'addons/';
document.write('<script language="javascript" src="' + path + library + '" type="text/javascript"></script>');
}
});
},


I've changed js libraries for the 2.0a version of fabrik, which fixes this compatibility issue. You can download that from the SVN as well. But be warned that the code is in alpha and some features don't work correctly yet.

Stenner
06-29-2007, 10:13 AM
thanks rob !

... meanwhile i figured out, my template is using mootools ... so that should be the problem with fabrik javascript...

by the way is it possible to update on fabrik 2.0 from 1.04 without loosing created elements, forms and tables ?

... and what are the not propper working features in fabrik 2.0 ???


greets

erwin

rob
07-02-2007, 07:52 AM
Hi Erwin

Its not possible to update from 1.04 to 2.0 as there have been some changes to the database structure. When thats settled in 2.0 I will provied an upgrade script to convert 1.0.4 data to the 2.0 structure. These database changes are primarily to do with how elements are stored, as in 2.0 all elements are plugins.

Whats not yet working in 2.0 is the plugin installer in Joomla 1.5 and the package management.