S
Steve Steve
Hi there
I'm trying to create a shop web-page with a dynamic basket as a part of
a user control. I have done the basket in javascript which means
outputting client script in the server code when we create the page.
Right my problem is that the javascript code contains a position for the
basket button and this means that even though it is included in the user
control it can appear pretty much anywhere on the page depending on
'top' and 'left' (javascript array elements) for its positioning
- the question I want answering if anybody knows is can you find out the
pixel position of the top and left of the panel that the control is sat
on? I know that this is dynamically decided at runtime but I will need
to place the button in the panel if possible or else it is useless as a
web control.
I would be grateful if you could include some code to give me an example
(if this is possible of course).
Thanks
Steve
I'm trying to create a shop web-page with a dynamic basket as a part of
a user control. I have done the basket in javascript which means
outputting client script in the server code when we create the page.
Right my problem is that the javascript code contains a position for the
basket button and this means that even though it is included in the user
control it can appear pretty much anywhere on the page depending on
'top' and 'left' (javascript array elements) for its positioning
- the question I want answering if anybody knows is can you find out the
pixel position of the top and left of the panel that the control is sat
on? I know that this is dynamically decided at runtime but I will need
to place the button in the panel if possible or else it is useless as a
web control.
I would be grateful if you could include some code to give me an example
(if this is possible of course).
Thanks
Steve