Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click and Drag a DHTML Circle?

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
Has anyone seen or heard of a DHTML effect for defining a Circle via a Click (to set the center point) and Drag (to set the radius).

I've found a few DHTML examples for spinning images around the mouse cursors but that have not been able to adapt them. cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
check out this:

theEclipse
eclipse_web@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
theEclipe, I think that doesn't really answer ChrisQuick's question, although Dan Steinman's scripts are a great API for DHTML.

DHTML doesn't have vector graphic types, so this isn't going to happen with just HTML. I suppose it's possible to fake it, with a circle-shaped graphic, but it will quickly pixelate or distort as you change the size.

The best bet is to see about scripting VML. I don't know about the VML/SVG support in Netscape, but in IE, using Microsoft's version of VML it is quite well integrated into the browser's document object model, so you can dynamically change attributes with scripting. All you have to do to include VML in your document is to put
Code:
<html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot;>
at the beginning of your document. Read more about VML at msdn.microsoft.com/library/, in the &quot;Web Multimedia&quot; section.

I'm sure you can do something similar with the new Netscape browser/mozilla, but it is probably not quite as seamless as with IE.
 
Well this is for an internet application so netscape has to be supported.
The closest concept I could find is the idea of spinning divs (or layers for netscape) around the mouse location. cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
The application is for a web-based geographic information systems. The app (ArcIMS) supports both Java Applet front-ends as well as Cold Fusion, ActiveX (ASP and VB Forms) and a JavaScript/HTML form Post requests. We decided against Java because of the extreme download time associated with send the applet and the data (4 or 5 gigs worth) through a dialup connection which is what most end-users will have. cquick@callingpost.com
Geographic Information System (GIS), ASP, some Oracle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top