Welcome Guest Search | Active Topics | Sign In | Register

Links in Calendar using DayRender Options
Eric T
Posted: Thursday, September 20, 2007 7:11:31 AM
Rank: Member
Groups: Member

Joined: 6/5/2007
Posts: 15
When we use the DayRender function to add in normal anchor hyperlinks, the links run fine in IE, but do not click through in FF, Safari and other non-IE browsers. These are just vanilla "a" hyperlinks.

Code: Visual Basic.NET
Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As EO.Web.DayRenderEventArgs) Handles Calendar1.DayRender
        'Check if there is a matching holiday
        Dim holiday As Holiday = CType(m_htHolidays(e.Day.Date), Holiday)

        If holiday Is Nothing Then
            e.Writer.Write(e.Day.DayNumberText)
        Else
            e.Writer.Write("<table border=""0"" cellSpacing=""0"" cellPadding=""0"">")
            e.Writer.Write("<tr>")

            e.Writer.Write("<td align=""right"" style=""color:#4A5118; font-weight:bold; text-align:right;"">")
            e.Writer.Write(e.Day.DayNumberText)
            e.Writer.Write("</td>")

            e.Writer.Write("</tr><tr>")

            e.Writer.Write("<td align=""left""><div style=""width:70px;height:28px;overflow:hidden;line-height:14px;"">")
            e.Writer.Write("<a href=""/Events/Events-By-Date.aspx?Date=" & e.Day.Date & """>Click for Events</a>")
            ' The above link is the one that clicks through in IE and doesn't click through in non-IE -- like the click doesn't fire
            e.Writer.Write("</div></td>")

            e.Writer.Write("</tr></table>")
        End If
    End Sub 'Calendar1_DayRender
eo_support
Posted: Thursday, September 20, 2007 7:41:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Do you have the page online so that we can take a look?
eo_support
Posted: Thursday, September 20, 2007 8:38:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We looked into your page and noticed that you have a totally new set of html, body tags inside a CallbackPanel in the middle of the page. I guess that is enough to freak out all other browers. :)

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.