Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to do resizing square above the web page content

Reply
Thread Tools

How to do resizing square above the web page content

 
 
Jon Berg
Guest
Posts: n/a
 
      01-07-2005
I want to be able to create a square above the web page content.
I want to be able to resize this square on the fly, not by reloading the
page. It would be cool to be able to drag it by the mouse pointer,
but I guess as a second best way buttons could be pressed to move and
resize the square.
I also want to be able to extract the coordinates of this square.

This is going to be used to select a section of a web page. Sort of the
same way you can select icons on the windows desktop.

Does anybody have any ideas or know of a way to this?
Is it possible to use a layer?
Do anybody know of some page where something like this is done?


Jon Berg.
 
Reply With Quote
 
 
 
 
Roy Schestowitz
Guest
Posts: n/a
 
      01-08-2005
Jon Berg wrote:

> I want to be able to create a square above the web page content.


You can put a transparent fixed-position object using CSS. I suppose you
meant 'over' and not 'above'

> I want to be able to resize this square on the fly, not by reloading the
> page.


That's where you get a bit greedy. You'll probably need to involve some
programming to do this.

> It would be cool to be able to drag it by the mouse pointer,
> but I guess as a second best way buttons could be pressed to move and
> resize the square.


For all these key and mouse events you'll need callbacks. There are some
demos at JavaScript Source, which provide a good starting point.

> I also want to be able to extract the coordinates of this square.
>
> This is going to be used to select a section of a web page. Sort of the
> same way you can select icons on the windows desktop.


I don't think you will be able to do this. You over-estimate the
functionality of browsers. If you managed to do it, it probably would not
be valid and only work in one particular browser.

> Does anybody have any ideas or know of a way to this?
> Is it possible to use a layer?
> Do anybody know of some page where something like this is done?


Go and see WYSIWYG Pro (http://www.wysiwygpro.com/demos/demo1.php) which
does some of the things you are after. It's pure JS, IIRC. Not free
unfortunately.

--
Roy Schestowitz
http://schestowitz.com
 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      01-08-2005
Jon Berg wrote:

> I want to be able to create a square above the web page content.
> I want to be able to resize this square on the fly, not by reloading the
> page. It would be cool to be able to drag it by the mouse pointer


http://examples.tobyinkster.co.uk/selecty

Tested in Opera 7.5x, IE 6 and Mozilla 1.6. Works in Opera 7.5x, but not
the others -- don't know why.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
Roy Schestowitz
Guest
Posts: n/a
 
      01-08-2005
Toby Inkster wrote:

> Jon Berg wrote:
>
>> I want to be able to create a square above the web page content.
>> I want to be able to resize this square on the fly, not by reloading the
>> page. It would be cool to be able to drag it by the mouse pointer

>
> http://examples.tobyinkster.co.uk/selecty
>
> Tested in Opera 7.5x, IE 6 and Mozilla 1.6. Works in Opera 7.5x, but not
> the others -- don't know why.
>


Confirmed not working in Mozilla Firefox1.0 either. The code looks quite
elegant though...

--
Roy Schestowitz
http://schestowitz.com
 
Reply With Quote
 
Jon Berg
Guest
Posts: n/a
 
      01-08-2005
Toby Inkster wrote:
> Jon Berg wrote:
>
>
>>I want to be able to create a square above the web page content.
>>I want to be able to resize this square on the fly, not by reloading the
>>page. It would be cool to be able to drag it by the mouse pointer

>
>
> http://examples.tobyinkster.co.uk/selecty
>
> Tested in Opera 7.5x, IE 6 and Mozilla 1.6. Works in Opera 7.5x, but not
> the others -- don't know why.
>

That is the sort of thing I meant exactly. It is very great, but a bit
bad that it only works in Opera. The red square seems to pop up in
Mozilla, but that's all.

Anybody have any idea how this can be fixed so it would work in Mozilla.


Anyway thanks.

Jon.
 
Reply With Quote
 
Jon Berg
Guest
Posts: n/a
 
      01-08-2005

>
>
> Go and see WYSIWYG Pro (http://www.wysiwygpro.com/demos/demo1.php) which
> does some of the things you are after. It's pure JS, IIRC. Not free
> unfortunately.
>


Yes the resizing of the elements shows something like what I want to
accomplish. And it works great in Mozilla. I looked through the source
code of the html editor, but it was not apparent to me where the actual
code that does that fancy resize thing. It will be difficult to get an
idea of how they do that.


Thanks,
Jon.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
We are currently buying Foundy Networks - primarily NetIron MLX andXMR but are also looking for BigIron RX, ServerIron WMS7, and FastIronFESX's. If you have the above or have access to the above from a clientlooking ro recover value, please sen Network/Software Buyer Cisco 1 07-30-2010 01:25 AM
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
Resizing a div by resizing its borders Pil (Trustworthy from Experience) Javascript 9 04-21-2009 07:35 AM
Resizing a div by resizing its borders Proper Javascript 0 04-18-2009 08:02 PM
SRT DIvision, Square root and reciprocal square root alghazo@siu.edu VHDL 0 05-27-2004 06:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57