I have been playing around with scheduler for almost a month. and In most of the case ,It worked without a hitch. and then I tried it with IE 8 and suddenly everything messed up. I have given my snippet below. please have a look @ it.
<%@page contentType=“text/html” pageEncoding=“UTF-8”%>
<%
String from = request.getParameter(“from”);
String to = request.getParameter(“to”);
int from_day = 0;
int from_month = 0;
int from_year = 0;
if (to != null && from != null) {
DateFormat formatter = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss.sss”);
java.util.Date todate = (java.util.Date) formatter.parse(to);
java.util.Date fromdate = (java.util.Date) formatter.parse(from);
// Calendar cal = Calendar.getInstance();
Calendar cal = Calendar.getInstance();
cal.setTime(todate);
//to_day = cal.get(Calendar.DATE);
//to_month = cal.get(Calendar.MONTH) ;
//to_year = cal.get(Calendar.YEAR);
cal.setTime(fromdate);
from_day = cal.get(Calendar.DATE);
from_month = cal.get(Calendar.MONTH);
from_year = cal.get(Calendar.YEAR);
}
%>
JSP Page
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
There is no any serious problems with above code, it works normally in IE , except of one thing
{ name:“description”, height:130, map_to:“text”,type:“textarea” , focus:true},
need to be changed as
{ name:“description”, height:130, map_to:“text”,type:“textarea”},
You are disabling text area, and attempt to set focus for disabled element causes js error in IE
Thanks, good work Guys.