Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2005, 10:03 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default Web based Freehand Drawing

Greetings all,
I am trying to port a desktop application that I wrote over to a web based version but am at kind of a loss. Essentially I have a Freehand drawing application that I want to embed into a web form; this is as simple as creating a custom control and dropping it onto my form. Now, in my desktop application I can monitor the MouseMovements realtime because the program executes on my Machine, what is the best practice to do this via the web?

My first inclanation was to use Javascript to capture the mouse points and post those points back to the control but you can imagine the amount of round trips that would be needed to draw even the most rudementary of objects.

Does anyone have any suggestions on how this might accomplished?

"The one language all programmers understand is profanity."
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old December 3rd, 2005, 11:20 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Here's a case where "some desktop applications aren't meant to live online".

You could certainly do this with javascript (a lot of javascript). Like you point out however is the problem of pushing the data for the drawing actions back to the server.

1. You could look into remote scripting which would allow the client side of the application to push/pull data to/from the server without the need to postbacks. This has some limitations however.
2. Alternatively, you could maintain all the drawing information on the client side and provide a means to save the data that can be done just once with a button click.

If you need to get the draw data to your server, you could always go with a lightweight desktop application that the user would download off the website which talks to the server thru web services. This of course would require the user to have the .NET framework installed. But like I said earlier, some types of programs just aren't well suited for the web.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
web based scanning jayanthg20 ASP.NET 1.0 and 1.1 Basics 1 March 10th, 2009 12:05 PM
Tomcat 5 Web-Based Configurator pgecils BOOK: Professional Apache Tomcat 0 August 26th, 2005 12:57 PM
Web based database jake Classic ASP Basics 3 February 5th, 2005 11:05 AM
Web-Based Printing toekneel Crystal Reports 2 November 14th, 2004 10:48 PM
Web Based DB reyboy Pro VB Databases 0 May 6th, 2004 12:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.