By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

Drawing arectangle and resize according to mouse movement

P: 3
How to draw a rectangle using Javascript on the aspx page. This is like a selector control box. from the point of Mouse down till we release th mouse, it should draw the rectangle. Just like selecting all the items under the rectangle.

Drawing a rectangle is not a problem, but the size has to stretch both vertically and horizontally in equal proportionate.

Please help me to solve this problem. Thanks in advance.

Sep 4 '06 #1
Share this Question
Share on Google+
2 Replies

P: 5

Even i am stuck with same problem.., Could u plz help if u got your problem solved
Feb 3 '08 #2

Expert Mod 5K+
P: 5,343
hi ...

before we make an attempt one thing to mention: we only could create a div or another html-element that would appear on the page ... could you tell what purpose it should serve? ... should it contain something or collect everything what is 'below' it ... the result would be a simple layer in any case! that would overlay the page ... so we should know what we want to do with it later on and evaluate whether the solution would work or not for the 'real' purpose?

kind regards
Feb 4 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.