473,387 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

dynamic drawing in web page

Hello everybody,

I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).

Could you please suggest a solution (preferably not involving hundreds
of lines of code) ? The computations should be performed on the client
machine.

Thank you. Cristian Barbarosie http://cmaf.fc.ul.pt/~barbaros

May 21 '06 #1
5 2073

"barbaros" <ba******@ptmat.fc.ul.pt> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello everybody,

I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).

Could you please suggest a solution (preferably not involving hundreds
of lines of code) ? The computations should be performed on the client
machine.


Basically, it sounds like you're talking about writing an applet. An applet
is a Java program that sits on a web page. You can write an applet so that
it draws circles, arcs, etc. and you can give the user the ability to
interact with an applet.

If you look at the sample applets that Sun has written for Java -
http://java.sun.com/applets/jdk/1.4/index.html -
you'll see that a few applets are doing at least some of what you want to
do. Each example includes source code so that you can get a rough idea of
how much code is necessary to do what you want.

In your case, you might want a single applet with several distinct canvases
for drawing or a separate applet for each canvas; either way could probably
work.

--
Rhino
May 21 '06 #2
barbaros wrote:

I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).

Could you please suggest a solution (preferably not involving hundreds
of lines of code) ? The computations should be performed on the client
machine.


In the context of recent Flash-related discussions and the usage of
open Web standards, I searched for 'animation SVG "solar system"' and
discovered this example:

http://www.svgelves.com/svg/L_chrisa_02.svg

Sadly, it only works in Opera amongst the browsers I have. Konqueror
displays the initial frame but doesn't animate the scene, although
later versions of that browser might support animation. I have an old
version of Firefox which doesn't support SVG at all.

Paul

May 21 '06 #3
Paul Boddie <pa**@boddie.org.uk> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
barbaros wrote:

I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).

Could you please suggest a solution (preferably not involving hundreds
of lines of code) ? The computations should be performed on the client
machine.


In the context of recent Flash-related discussions and the usage of
open Web standards, I searched for 'animation SVG "solar system"' and
discovered this example:

http://www.svgelves.com/svg/L_chrisa_02.svg

Sadly, it only works in Opera amongst the browsers I have.


It also works under IE6, using Adobe's SVG Viewer 3.0

Regards,
Christian
May 22 '06 #4
On 21 May 2006 14:09:12 -0700, "barbaros" <ba******@ptmat.fc.ul.pt>
wrote, quoted or indirectly quoted someone who said :
I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).


have a look at the code for the http://mindprod.com/applets/bio.html

biorhthms Applet. It will show you the general framework. It may be a
bit to complicated though. Also look at
http://mindprod.com/products.html#SCREWS
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
May 23 '06 #5
barbaros wrote:
Hello everybody,

I need to put some dynamic drawings on my web page. More precisely, I
need to draw a number of geometric figures (circles, rectangles) which
evolve into a graphics windows according to some law (a little bit like
the solar system). I need also to have several fields aside the window,
where the visitor can change values for several significant parameters
(like the mass of each body).

Could you please suggest a solution (preferably not involving hundreds
of lines of code) ? The computations should be performed on the client
machine.

Thank you. Cristian Barbarosie http://cmaf.fc.ul.pt/~barbaros


with this you can.
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
It's javascript and it's not the fastest thing on earth, but it works
and its client-side...

JM

May 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
3
by: MikeY | last post by:
Hi Everyone, I am working in C#, windows forms.My question is this. All my button dynamic controls properties are present and accounted for except for the"FlatStyle" properties. I can't seem to...
0
by: Martin Schmid | last post by:
I have a aspx with the code below... I am trying to get the output from the Click redirect to display an image that may be right-clicked to 'save as'. The image displays as expected, but when...
5
by: RA | last post by:
I have created a button dynamically; which has been added to a TableCell of a TableRow of a Table control. Is there a way to add onclick event which calls a procedure on the Server-side itself....
6
by: Chip | last post by:
I allow users to upload their own images, but I need to display them in a small space. I can use the src tags to limit the size, but this doesn't keep the aspect ratio. How can I display any image...
3
by: sweetpotatop | last post by:
Hello, Is it possible in asp.net to create a dynamic page for web-user, who can create a flow-chart/work flow, with boxes, links and have an option to save it. So that, when others go to the web...
2
by: remya1000 | last post by:
hai i'm using Vb.net. i'm creating 64 dynamic created buttons of 8 rows and 8 columns. And i have 1 Go button, 1 textbox. those were created dynamically. if i enter one number inside textbox and...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
12
by: ive1122 | last post by:
Hi guys, I am looking into create a dynamic survey as posted in Get User Input From Dynamic Controls but with some different environment Below is what i am trying to do: First when the user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.