[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Using with ASP.NET
Page 1 of 1

Using with ASP.NET

PostPosted: Wed Apr 18, 2007 11:46 am
by rhan

Fix the problem

PostPosted: Thu Apr 26, 2007 9:54 am
by rhan
hi.

My autofix to the problem.

1. Use of calendar in ASP.NET (VERY IMPORTA USE '')
---------------------------------------------------------------
<asp:TextBox ID="tbFechaFinal" runat="server" Width="65px">
</asp:TextBox>
<img alt="Calendario"
src="images/calendar.gif"
onclick = "displayCalendar(
'<%=tbFechaFinal.ClientID%>', <- VERY IMPORTA USE ''
'dd/mm/yyyy',this)" />

2. Modify the function displaycalendar()
----------------------------------------------------
function displayCalendar(idField,format,buttonObj,displayTime,timeInput)
{
/* idField = control ID */
var inputField;
inputField = document.getElementById(idField);

if(displayTime)calendarDisplayTime=true; else calendarDisplayTime = false;
if(inputField.value.length>0){
...

3. Modify CSS for Firefox
------------------------------
#calendarDiv{
position:absolute;
width:215px; /* before 205px */
....


Now calendar is ok with IE6 and FF 2.0.03 (Windows XP)