1
MIchaelMcA
Formatting problem - XoopsFormDateTime - maybe Javascript related
  • 2005/11/19 22:36

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


I've been having a problem using the XoopsFormDateTime and XoopsFormTextDateSelect in a form on a module I'm building. As soon as I put it into a form, the theme becomes slighly corrupted - a white border appears at the edge of the browser, a large border appears around the table and the menu looks wrong. Compare this http://www.thirdsectordesign.org/xoops_problem/right.jpg with this http://www.thirdsectordesign.org/xoops_problem/wrong.jpg

The code I'm using to general the form is

Quote:
$org_search_list_form = new XoopsSimpleForm(_MD_NIGIDB_ORG_SEARCH_CRIT, 'org_search_list_form', 'org_search_list.php', 'GET');
$org_search_list_form->addElement(new XoopsFormTextDateSelect('caption', 'datetime', 15, 0));
$org_search_list_form->assign($xoopsTpl);


And my template looks like this (excuse the uninentionally rendered html)
Quote:



<{foreach item=element from=$org_search_list_form.elements}>
<{if $element.hidden != true}>

<{else}> <{$element.body}>
<{/if}>
<{/foreach}>

<{$element.caption}>"><{$element.body}>



I've noticed that the problem disappears when I copy the source code of the displayed page into a new html document and delete the Javascript at the top.

I'd be really grateful to know what I am doing wrong and / or why this is happening. I'm running XOOPS 2.0.13 on a localhost.

Thanks,
Michael

PS. I'll be releasing the module - a database for voluntary sector infrastructure organisations - when it is presentable, as it a limited number of people should find it useful.

2
skaldrom
Re: Formatting problem - XoopsFormDateTime - maybe Javascript related
  • 2006/6/25 19:27

  • skaldrom

  • Just popping in

  • Posts: 1

  • Since: 2006/5/6 9


Problem still exists... I had a look at the code and filed a bug report....http://sourceforge.net/tracker/index.php?func=detail&aid=1512249&group_id=41586&atid=430840

Workaround:
define in your Template:

<{$calendarjavascript}>

In your code:

ob_start();
$absenzform->assign($xoopsTpl);
$calendarjavascript=ob_get_contents();
$xoopsTpl->assign("calendarjavascript",$calendarjavascript);
ob_end_clean();

Login

Who's Online

476 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 476


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits