[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
Advertisement

Using with ASP.NET

Moderators: Calcifer, slothy

Using with ASP.NET

Postby rhan » Wed Apr 18, 2007 11:46 am

rhan
 
Posts: 2
Joined: Wed Apr 18, 2007 11:36 am

Fix the problem

Postby rhan » Thu Apr 26, 2007 9:54 am

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)
rhan
 
Posts: 2
Joined: Wed Apr 18, 2007 11:36 am


Return to Calendar script questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron