Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)SSI templates & HTML error
Pages: [1]   Go Down
Print
Author Topic: SSI templates & HTML error  (Read 341 times)
0 Members and 1 Guest are viewing this topic.
Lindau
New Member
*

Karma: 0
Offline Offline

Posts: 30


WWW
« on: March 21, 2006, 08:59:00 PM »

When the SSI templates are used, and there are no events, when I try to validate my page's HTML, I get an error.

What seems to happen is:

<table>
</table>

or

<dl>
</dl>

with nothing in between.

[This message has been edited by LindaU (edited March 27, 2006).]

Logged
Lindau
New Member
*

Karma: 0
Offline Offline

Posts: 30


WWW
« Reply #1 on: March 27, 2006, 12:13:00 AM »

I fixed it. I changed ssi.html to:

<%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->

  • ->
  • ;
    $EVENTS = $DAY->{events};
    $total_events=0;
    %>


    <%FOREACH EVENTLIST%>
    <%IF EVENTS EXIST%>
    <p>
    <strong><%$total_events++;%>
    <%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%></strong>
    <p>
    <%FOREACH EVENT%>
    <% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= $EVENT->{'schedule'}->{'start_time'} %><% } %>
    <% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= $EVENT->{'schedule'}->{'end_time'} %><% } %>
    <% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
    <%= $EVENT->{'details'}->{'title'} %>
    <br>
    <%/FOREACH%>
    <%/IF%>
    <%/FOREACH%>
    <%unless($total_events){%>
    <p> </p>
    <% } %>


    It doesn't cause any HTML 4.01 errors.

    ------------------

Logged
Pages: [1]   Go Up
Print
Jump to: