Hi I'm using javascript for rounded border for the divtag.It's working. But, the problem is whenever the button click event is called, the javascript values are uninitialized(I suppose) and so the div tag loses it's rounded border. Again, if I refresh the page, I'm getting the rounded corner.. Here is my code!!
addEvent(window, 'load', initCorners);
function initCorners() {
var settings = {
tl: { radius: 20 },
tr: { radius: 20 },
bl: { radius: 20 },
br: { radius: 20 },
antiAlias: true
}
curvyCorners(settings, ".divtag");
}
Above is the code which I'm using for rounded corner. As a solution for this problem, I added the following code. But it is also not working. Plz, tell me any solution.. Thanks a lot..
function EndRequestHandler(sender, args) {
initCorners();
}
function load() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
initCorners();
}