-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
How can I change the default position of thew WrongValueException box?
<script type="text/javascript"><![CDATA[
//Running at the browser
window.Validate_errorbox = function (id, boxid, msg) {
var html = '<div style="display:none;position:absolute;background-color:blue" id="'+boxid +'">'+zk.encodeXML(msg, true)+'</div>';
document.body.insertAdjacentHTML("afterbegin", html);
return $e(boxid);
}
]]></script>
I have found this code to overwrite the errorbox but I don't know how to use it.
Can anyone help me?
Ok,
I have found this:
.z-errbox.z-popup{
position:absolute;
left:540px !important;
}
but this position the error box in a fixed position (always 540px from the left). Is there anyway to position it in the left side of the component with the constraint?
Nop, didn't get it yet. But I found this http://sourceforge.net/tracker/?func=detail&aid=3218780&group_id=152762&atid=785194 It seems that it has been solved but I didn't tested it yet
hi @Neus have you tried to use position: relative ? in your snippet
.z-errbox.z-popup{ position:absolute; left:540px !important; }
Hello, the problem was solved in the new 5.0.7 version
http://www.zkoss.org/release/rn-5.0.7.dsp
at line
3251564: Position of constraint message (error box)
you can try it in the sandbox, in my case the problem was solve. Although, I think that it could be nice to set the position in the place that you prefer.
Greetings
@rosjoss,
I have this kind of problem, i have added constraint on textbox. when user enters some wrng value, it shows error box showing value mismatch. after that when i scroll my page, error box should moves up with text box. but it get fixed there. it should moves up with that perticular textbox.
kindly tell me what should be the solution?
Asked: 2010-04-12 04:53:15 +0800
Seen: 960 times
Last updated: Aug 07 '11