Page 1 of 1

depselect issues: (no getModuleURL in ModuleTool and more)

PostPosted: Thu May 24, 2012 9:46 am
by pignus
Helllo

I'm trying to activate the depselect module with xataface 1.3.2 with no success so I'm here to ask for your help.

I took the source code with svn, copied it in xataface/modules/depselect and correctly enabled it in the [_modules] section of my conf.ini
The issues I encountered were:

1) the xatajax module, required by depselect is not loaded by default (it is commented in Application.php source), so i had to enable it in the [_modules] section it. just a small issue per se easily solved.
2) depselect.php uses Dataface_ModuleTool::getModuleURL(), but this method has disappeared from the ModuleTool.php source. I know it was there in previous xataface releases (1.3.rc4 i think).
I found the 1.5.x svn branch so i checked it out; found the getModuleURL method in there and added it to the 1.3.2 ModuleTool.php source so i could proceed further.

3) depselect.js requires jquery-ui.min.js which is not in the xataface package (i changed it in jquery-ui-1.7.2.custom.min.js and want to the next step)
4) depselect.js requires jquery-ui/jquery-ui.css but this is also missing in the package , so i tried to skip it because i could not find a substitute for it in the package.

Now i finally see the two depselect widgets i am trying to place on my page but i get two javascript alerts telling me "SyntaxError: Unexpected token ';'" and my selects are empty

I also get this message in console:
PHP Fatal error: Cannot use object of type PEAR_Error as array in /Library/Webserver/Documents/xataface/modules/depselect/actions/depselect_load.php on line 123

Anyone has encountered similar issues?
Do i have to give up using depselect and stick to the dynamic_select javascript solution described in the wiky?

Thank you for your help

Re: depselect issues: (no getModuleURL in ModuleTool and mor

PostPosted: Thu May 24, 2012 10:22 am
by shannah
The depselect module is not compatible with Xataface 1.3.x. It requires 2.0 which isn't yet released.

-Steve

Re: depselect issues: (no getModuleURL in ModuleTool and mor

PostPosted: Thu May 24, 2012 11:53 pm
by pignus
Thank you Steve,

You're right. It was clearly stated in the wiki that depselects are for 2.0.
My fault, I had to read the wiki with more attention.
I'll go on with dynamic selects and json.