depselect issues: (no getModuleURL in ModuleTool and more)

A place for users and developers of the Xataface to discuss and receive support.

depselect issues: (no getModuleURL in ModuleTool and more)

Postby pignus » Thu May 24, 2012 9:46 am

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
pignus
 
Posts: 3
Joined: Thu May 24, 2012 9:22 am

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

Postby shannah » Thu May 24, 2012 10:22 am

The depselect module is not compatible with Xataface 1.3.x. It requires 2.0 which isn't yet released.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

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

Postby pignus » Thu May 24, 2012 11:53 pm

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.
pignus
 
Posts: 3
Joined: Thu May 24, 2012 9:22 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved