here is the code
and i am not using custom css .here is the code. This is the same file form the samples folder you can copy this to a file and see create and event by dragging the dates and see the end date matches with the date on the calendar where the mouse was stopped .The enddate always shows 1 date ahead .You can use your dhtmlscheduler.js and css files. please letme know.
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
I think i need to explain i am loooking to pass value from javascript to configure method in servlet
Also passing the value like
var dp = new dataProcessor(“scheduler/calendarevents.do?zone=6841”);
dp.init(scheduler);
so the i want to pull the events from the database based on the zone and display them on the calendar
My servlet configure method
protected void configure() {
Connection conn= ( new DataBaseConnection()).getConnection();
SchedulerConnector c = new SchedulerConnector(conn,DBType.MSSQL);
c.render_sql("select * from nipa.dbo.tablename where zone =6841","EVENTID","START_DATE,END_DATE,TEXT,ZONE,MON,TUE,WED,THU,FRI,SAT,SUN","","");
}
How do i get the zone value here in this method ? which is 6841 before i run the render_sql command.Please explain this part
your events.php is not clear …Please explain this part .How to pass a string value at run time to the servlet?
function default_values($action){
global $user_id;// what is this value
$event_type = $action->get_value("event_type");
if ($event_type == "")
$event_type = 0;
$action->set_value("userId",$user_id);// what value is $user_id here ? are they both the same .Do i need to use this to pass value to the servlet? if so how do we set the value of the zone in the default values method()? does this method need to have an argument?
please explain
}
$scheduler->event->attach(“beforeProcessing”,“default_values”);