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