Home All Groups Group Topic Archive Search About

Javascriptng Properties

Author
15 Apr 2005 12:44 AM
James Doughty
Hello,
I have written some javascript that allow a user to position my asp.net
controls some where on the page, this works just fine and the position &
sze is stored in the pixelLeft, pixelTop, pixelHeight pixelWidth
properties. How can I access these properties from my app? I've tried
control.style("pixelLeft") but it doesn't give me anythng.

Thanks,
James

Author
15 Apr 2005 3:54 PM
Marcie Jones
Hi James,
You won't be able to read these items directly from the server, as
they aren't determined until the page is completely rendered.  What
you'll have to do is read that property into a hidden field on the
page using Javascript, and then read that hidden field after a
Postback.

Marcie

On Fri, 15 Apr 2005 00:44:08 GMT, James Doughty <inva***@email.com>
wrote:

Show quoteHide quote
>Hello,
>I have written some javascript that allow a user to position my asp.net
>controls some where on the page, this works just fine and the position &
>sze is stored in the pixelLeft, pixelTop, pixelHeight pixelWidth
>properties. How can I access these properties from my app? I've tried
>control.style("pixelLeft") but it doesn't give me anythng.
>
>Thanks,
>James