1
offmct
javascript for calendar appears before the html tag
  • 2004/10/29 7:35

  • offmct

  • Just popping in

  • Posts: 3

  • Since: 2004/9/9 2


Why is it that the javascript for calendar appear before the opening html tag? I think it is calendarjs.php that gets written before the opening html tag (even before the dtd). I am using XOOPS version 2.0.5.1. Thanks in advance!

Here is my script:
<?php
include "header.php";
$xoopsOption['template_main'] = "grpsched.html";
include 
XOOPS_ROOT_PATH "/header.php";
include_once 
XOOPS_ROOT_PATH "/class/xoopsformloader.php";

$tform = new XoopsSimpleForm('''topform''index.php''POST');
$calNow = new XoopsFormTextDateSelect('Now''DateNow'15time());
$tform->addElement($calNow);
$tform->assign($xoopsTpl);

include 
XOOPS_ROOT_PATH "/footer.php";
?>


and here is my template:
<{$topform.javascript}>
<
form name="<{$topform.name}>" action="<{$topform.action}>" method="<{$topform.method}>" <{$topform.extra}>>
  <
table>
    <{foreach 
item=element from=$topform.elements}>
      <{if 
$element.hidden != true}>
      <
tr>
        <
td><{$element.body}></td>
      </
tr>
      <{else}>
      <{/if}>
    <{/foreach}>
  </
table>
</
form>

2
zoullou
Re: javascript for calendar appears before the html tag
  • 2004/10/29 7:50

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0



3
offmct
Re: javascript for calendar appears before the html tag
  • 2004/10/29 8:22

  • offmct

  • Just popping in

  • Posts: 3

  • Since: 2004/9/9 2


I couldn't view the forum. It says I don't have the permission to view it. I tried to register but I still can't view it.

4
theCat
Re: javascript for calendar appears before the html tag
  • 2005/2/7 7:29

  • theCat

  • Just popping in

  • Posts: 77

  • Since: 2004/2/2 2


Up !
No problem with this class in the administration, but I cannot use it in a form for the members.
A solution?

Login

Who's Online

209 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

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

Latest GitHub Commits