1. SmartClient_SC_SNAPSHOT-2012-03-08_v82p
2. iPad Safari
Browser-side problem
Sample case: when we click on the masked field (e.g. phone # field below) we want to reset the selection to a particular position ({3, 3} in script below)
However, in iPad Safari browser, reposition on click doesn't work
isc.DynamicForm.create({
width: 400,
fields: [
{ name: "firstName", title: "First name", type: "text",
mask: ">?<??????????????", hint: ">?<??????????????"},
{ name: "lastName", title: "Last name", type: "text",
mask: ">?<??????????????", hint: ">?<??????????????"},
{ name: "state", title: "State", type: "text",
mask: ">LL", hint: ">LL"},
{ name: "phoneNo", title: "Phone no", type: "text",
mask: "###-###-####", hint: "###-###-####", hintInField: true,
click: function(form,item){
item.setSelectionRange(3, 3);
}
}
]
});
I have noticed that in Firefox and desktop Safari re-positioning is not working all the time either. If you play around for awhile you can see that occasionally the position remains/resets to the end of the field, not to the indicated {3, 3} segment
2. iPad Safari
Browser-side problem
Sample case: when we click on the masked field (e.g. phone # field below) we want to reset the selection to a particular position ({3, 3} in script below)
However, in iPad Safari browser, reposition on click doesn't work
isc.DynamicForm.create({
width: 400,
fields: [
{ name: "firstName", title: "First name", type: "text",
mask: ">?<??????????????", hint: ">?<??????????????"},
{ name: "lastName", title: "Last name", type: "text",
mask: ">?<??????????????", hint: ">?<??????????????"},
{ name: "state", title: "State", type: "text",
mask: ">LL", hint: ">LL"},
{ name: "phoneNo", title: "Phone no", type: "text",
mask: "###-###-####", hint: "###-###-####", hintInField: true,
click: function(form,item){
item.setSelectionRange(3, 3);
}
}
]
});
I have noticed that in Firefox and desktop Safari re-positioning is not working all the time either. If you play around for awhile you can see that occasionally the position remains/resets to the end of the field, not to the indicated {3, 3} segment
Comment