// debug(cmd+':'+property+':'+type+':'+id);
// seek element by id if there is no elemnt with given name
objElement = document.getElementsByName(id)[0] || document.getElementById(id);
+ if(!objElement) continue;
if(cmd=='as') {
eval("objElement.setAttribute('"+property+"',"+data+");");
} else if(cmd=='up') {
if(mark) mark.style.visibility = 'hidden';
Behaviour.apply();
+
if (errors.length>0)
window.scrollTo(0,0);
//document.getElementById('msgbox').scrollIntoView(true);
// Restore focus if we've just lost focus because of DOM element refresh
- if(!newwin) {
- setFocus();
- }
+ if(!newwin) {
+ setFocus();
+ }
}
},
false // do not disable caching