S
sagar
Hello everyone,
I am developing a AJAX based IM application. I use javascript to
dynamically generated small windows using nested <div> within the
web-page.
I use the following ways to set attributes & styles e.g.
[divTag].style.height=10; for styles
[divTag].setAttribute("id","outer") for attributes
I have two problems with this
1)I have to set a large number of attributes & styles, is there any
shorter/compact technique.
2) [divTag].style.borderColor (I need this for shadow effect)&
[divTag].scrollTop (I need this to keep d scroll bar at bottom) cant be
set, setting them makes no difference
Please provide help to solve above problems, or tell me if I am using
the wrong approach.
Thank You
Sagar
I am developing a AJAX based IM application. I use javascript to
dynamically generated small windows using nested <div> within the
web-page.
I use the following ways to set attributes & styles e.g.
[divTag].style.height=10; for styles
[divTag].setAttribute("id","outer") for attributes
I have two problems with this
1)I have to set a large number of attributes & styles, is there any
shorter/compact technique.
2) [divTag].style.borderColor (I need this for shadow effect)&
[divTag].scrollTop (I need this to keep d scroll bar at bottom) cant be
set, setting them makes no difference
Please provide help to solve above problems, or tell me if I am using
the wrong approach.
Thank You
Sagar