|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Do you have the page online so that we can take a look?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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
|
|