CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/9/2007 6:36:21 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 78 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
doubtmaster
Asp.Net User
How to find position coordinates of asp:Panel from Masterpage using javascript8/9/2007 6:36:21 AM

0/0

Hi

I'm trying to to find position coordinates of asp:Panel from Masterpage using javascript. Need Help.

I have an asp:Panel inside a content page. There is a button in Masterpage that calls a javascript function onclick. I want to find out the top - left coordinate of the asp:panel.

How to achieve this?

Thanks

dm

ravipahuja1
Asp.Net User
Re: How to find position coordinates of asp:Panel from Masterpage using javascript8/9/2007 7:39:05 AM

0/0

Please try with

//Get the Value of the placeholder position like this in javascript
alert(getElementPosition('ctl00_ContentPlaceHolder1_panel1').top + '|'+ getElementPosition('ctl00_ContentPlaceHolder1_panel1').left);

        

      
       function getElementPosition(elemID)
       {
            var offsetTrail = document.getElementById(elemID);
            var offsetLeft = 0;
            var offsetTop = 0;
            while (offsetTrail)
            {
                offsetLeft += offsetTrail.offsetLeft;
                offsetTop += offsetTrail.offsetTop;
                offsetTrail = offsetTrail.offsetParent;
            }
           
            return {left:offsetLeft,top:offsetTop};
       }


Ravi |   Visit My Site   |   Online messengers  
doubtmaster
Asp.Net User
Re: How to find position coordinates of asp:Panel from Masterpage using javascript8/9/2007 8:37:02 AM

0/0

It works!

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Matt Berseth: YUI Style AJAX Progress Indicator Oct 15, 2007 ... YUI Progress Panel In asp.net from DotNetKicks.com .... One question, how can I place the javascript in a Master page? ...
CodeProject: Persisting the scroll position of child DIV’s using ... Sep 9, 2007 ... An article on building a control using MS AJAX to persist the scroll position of child DIV's. Javascript, XML, C# 2.0, C#, Windows, .NET, . ...
Is Atlas compatible with Master Pages? - ASP.NET Forums and it appears to do this based on the mouse position using the x, .... We moved the asp:panel (ID = panelHelp) outside of the div tag (ID = helpDragPanel). ...
UpdatePanel Control Overview Using the ASP.NET UpdatePanel Control with Data-Bound Controls ... A class in the Microsoft AJAX Library that coordinates partial-page rendering in the ...
.NET ASP Page 52 - Bytes Site Map Binding ArrayList to GridView/DataGrid · can't find control in master page · Try to deploy VB .NET Application but Cannot select Primary Output. ...
ASP 101 - Build Your Own ASP.NET 2.0 Web Site Using C# & VB, 2nd ... How to change




Search This Site:










formsauthentication and application_onauthenticaterequest event in global.asax

system.web.ui.design namespace not found by visual studio .net 2003

software that converts javascript to asp.net?

dropdown list and datasource problem

asp.net authentication problem when deploying site

subtracting 2 times

stylesheet question

global.asax and web.config

where is it?

simple question

please help me i am stuck!!!

inaccessible due to its protection level

xmddatasource problem with xslt transformation

trial / registred ms vs

pop up window

looking for orange futurism skin

editing my aspnetdb and how to compare values

code in front and behind???

obtaining user name when aspx page opens

declarative security (role based) & handling errors

word automation open word and print preview

"not a object" in dnn -- is it bug or ?????

pki certificate and asp.net

internal & external ip address

retrieving the contents of the current page

http get in code behind

transfer database output to another website

override changepassword possible?

parser error

checkboxlist and role management

 
All Times Are GMT