2
Bump.
No replies. Does this mean that I should just forget about using XoopsForm and start building forms manually?
require_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$dateForm = new XoopsThemeForm("Set date", 'setDate', XOOPS_URL."/path/to/my/file.php", POST);
$dateForm->addElement(new XoopsFormDateTime("Date: ", 'setDate'));
$dateForm->addElement(new XoopsFormButton("", 'setDate', 'Submit', 'submit'));
$dateForm->display();
This code will work OK in XOOPS 2.0.x in Firefox and IE, but in Opera the popup ignores mouse input (though it still works with arrows and enter).
In XOOPS 2.2.x the calendar control isn't properly initialised (the text field shows YYYY/MM/DD instead of today's date). When I click the button the popup calendar will show in Firefox and Opera, but not in IE. The calendar will seem to work in both Firefox and Opera (keyboard response only in Opera), but no response is sent back to the webpage (probably because of the init problems). I also suspect that the init problem is why it won't show in IE.
So, either things must be broken in 2.2.x or there must be something wrong with my setup. Questions:
1. Is this a known problem?
2. If so, is there a way to solve it while using the XoopsForm classes?
Hope so,
Earplane