Hi.
I wrote something like below:
in CSS
#Window {
background-color: #cc;
border: 1px solid;
}
in javascript
var w = document.createElement('div');
w.id = 'Window';
With above code, CSS's property dosen't affect the w element.
What's wrong?
Thanks in advance.
Hi.
I'd like to know the size of div before showing.
For example,
.my {
position: absolute;
}
with this css, size is not determined yet.
I want to place this div at center of viewport after calling
Ajax.updater
But I can get only initial size unless show element.
How can I get right size?
- Original Message -
From: serenobs seren...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Tuesday, June 30, 2009 9:40 PM
Subject: [Proto-Scripty] How to get size of div before showing?
Hi.
I'd like to know the size of div before showing
tj / crowder software / com
Independent Software Engineer, consulting services available
On Jun 30, 4:09 pm, serenobs seren...@gmail.com wrote:
Hi.
I wrote something like below:
in CSS
#Window {
background-color: #cc;
border: 1px solid;
}
in javascript
var w
i used screen as a example.
I used another word in real code.
On 7월1일, 오후6시38분, Vladimir Tkach tea...@gmail.com wrote:
screen its reserved word in js
2009/7/1 serenobs seren...@gmail.com
I missed it.
I'm using prototype 1.6.1.RC3.
On 7월1일, 오후6시08분, serenobs seren...@gmail.com
- $(div.my).hide();
- update div's content by ajax / js
- get $(div.my).height() / width()
- $(div.my).show()
2009/6/30 serenobs seren...@gmail.com
Hi.
I'd like to know the size of div before showing.
For example,
.my {
position: absolute;
}
with this css, size
Hello.
%= link_to_remote 'click here', :update='some_div', :url=
{:action='some'}, :submit='group' %
is what I want to implement using Ajax.updater.
To do this I coded ( it is invoked when I clicked some link or button,
whatever )
new Ajax.Updater('some_div', url(:action='some'),
{