i have checked the loop with counters and alerted the time_1 & time_2 values
im getting as output as
for loop j:
counter from 0 to 7
time_1 time_2
6:00 undefined
16:02 7:00
8:00 16:30
17:00 09:00
18:02
but actual data is
time_1 time_2
6:00 7:00
16:02 16:30
8:00 9:00
17:00 18:02
when im alerting...
User Profile
Collapse
Profile Sidebar
Collapse
narinas
Last Activity: Apr 10 '12, 04:36 PM
Joined: Jan 5 '12
Location:
-
checking time overlap
Hello
I have checked the overlapping of time by taking the values into an array and sorting them.
here im unable to insert data into cells when the cells are empty!
my code:
...Code:<script> function compare_row_time() { var all_times= new Array(); var flag_check=false; var count_times=0; for(var i=0;i<mygrid.getRowsNum();i++) { -
i want to replace alert box with jquery dialog box.
hello i have validate some code
...Code:var err_str//(global variable) function save()//save button. { myDataProcessor.sendData(); if(err_str!="") alert(err_str); // $("#dialog").append("<br><font style='font-weight:bold;color:#3399FF;'>err_str</font>"); err_str=""; $("#result").html(" "); -
-
Thanks a lot csr,im also totally confused by this grid structure.pleas e help me out as soon as possible.thank you.Leave a comment:
-
i have sent u an link about that function its used for validation part.& please find the attachment of my program....Leave a comment:
-
-
as im new to grid i dont know how to get the value of the cells i.e.indexhttp://www.dhtmlx.com/docs/products/...h_message.html
so that i can use the value in the variablesLeave a comment:
-
how to set this variables to indexes in grid and compare b/w those two cells.Leave a comment:
-
yes if i take 08:00 and 8:00 its showing error.look at this code
...Code:<script type = "text/javascript"> var fromTime = "05:50"; // format hh:mm var toTime = "06:21"; var ft = fromTime.split(":"); var tt = toTime.split(":"); var OK = false; if (tt[0] > ft[0]) {OK=true} if ((tt[0] == ft[0]) && (tt[1] > ft[1])) {OK = true}Leave a comment:
-
Actually the concept is dhtmlxgrid http://docs.dhtmlx.com/doku.php?id=d...ing#validation
im not checking AM and PM,its 24hr format,im checking regular expression for that ind==1 and 2Leave a comment:
-
Validate time where start time should be less than end time
Hello im using dhtmlx grid in this cells i have from time and to time (i.e ind==1 and ind==2) i need to validate time where to-time must be greater than from-time else it should alert an message,i have writeen a normal Regular expression for the time validation.as the time is i string format i.e[05:00],please can any one send me code for that.thank you
...Code:var err_str=""; function validate_grid(value,id,ind)
-
validating time
...Code:var err_str=""; function validate_grid(value,id,ind) { if(ind==1 || ind==2) { var patt=/^([0][0-9]|[0-9]|[1][0-9]|[2][0-3])[:]{1}[0-5][0-9]$/; if(!patt.test(value)) { mygrid.setCellTextStyle(id,ind,"background-color:yellow;"); if(err_str!="") err_str+="\n"+(ind+1)+".Enter numbers and (:) only..[ex.05:00 -
il get error msg when the validation is false so if all the indexes get errors error msg will display & i need all the msg's to be displayed in a single alert box.Leave a comment:
-
-
-
how to print all messages in a single alert box.
this is my validation code & i want to print all error msg's in single alert box.
please can any one send me the code 4 that
...Code:function validate_grid(value,id,ind) { var err_str=""; if(ind==1 || ind==2) { var patt=/^([0-9]|[0][0-9]|[1][0-9]|[2][0-3])[:\.]{1} [0-5][0-9]$/; if(!patt.test(value)) { mygrid.setCellTextStyle(id,ind,"background-color:yellow;"); -
if u see the screen the in the first row type names are display(which is coming from tbla_can_types_ phani)and rest r from tbla_canteen_ra tes_phani
now i want only typenames should be displayed on every change of fac_id & cat_id ,rest should be empty(as there is no data in it)
example:
select type_name from tbla_can_types where fac_id=$fac_id and type_id not in(select type_id from tbla_canteen_ra tes_phani2...Leave a comment:
-
-
how to display records from multiple tables
Hello
im having 2 tables
1.tbla_can_type s(containing type_id,type_na me,fac_id)
2.tbla_canteen_ rates(containin g fac_id,cat_id,t ype_id,from_tim e,to_time...)
this table is empty.
in the load page i display records using existing database
now i want only typenames row to be displayed and rest of the rows should be empty.
i have left join method but its not working when im inserting...
No activity results to display
Show More
Leave a comment: