|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
finding out div layer properties
hi all
I need a bit of code that will allow me to find out the height width and position of a div layer and pass it back to a PHP script so i can save these properties in a database I am pretty new to javascript and would appreciate any pointers thanks all |
|
#2
|
||||
|
||||
|
The two aren't really related as one is server-side and the other client-side.
In order to send such info to a server-side script, you would need to either POST (form) or GET (url) the info. document.getElementById('divname').style.height should get the required properties for you. Note that the attributes need to be set explicitly before hand. |
|
#3
|
|||
|
|||
|
i have written a template system in PHP that uses div layers. the attributes for each layer is stored in a database. What i wanted to do is to load the layers onto a page then use the DragLayer function to move the div layers around and then resave the new values back into the database.
whadda think? doable? t |
|
#4
|
||||
|
||||
|
Yup - it's do-able.
When the user is done using the page, run a JS script that collects the DIV attributes, stores them in hidden values in a form, then post's the form to your save div info php script. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > finding out div layer properties |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|