PDA

Click to See Complete Forum and Search --> : Scalability of VB on Component Programming


kanchan_sa
Aug 8th, 2006, 12:37 AM
Hi,

My company has decided to design a drawing component. At present i am using
VB6 for it. The main objective of the component is-
1. It will be used on the Client Browser.
2. It needs to be a part of another web application either in PHP or .Net or Java.
3. It needs to be scalable, maintainable and fast on production.

Can someone suggest, if VB6 can fulfill all the above creteria?
If not what should be the best option for such component?

The component will have lots of algorithm for rules and needs dynamic arrays for manipulating and storing data.

Thanks in Advance.

penagate
Aug 8th, 2006, 01:38 AM
No it can't. VB6 is not exactly portable and certainly isn't a tool for developing client-side web components.

Any sort of interactive web component must be developed using Javascript. There is ActiveX, but that only works in IE, and is difficult to use because of all the security risks associated with it.

Web components have two parts. Server-side, and client-side. Making a server-side component portable between PHP/.NET/JSON is basically impossible, so you are restricted to only one of those solutions. The logic should all be contained on the server side and the presentation and manipulation of this can be done on the client side. Communication can be done using either a hard refresh of the page or a background communication technique (AJAX).

So basically, your business logic algo stuff would be in PHP/ASP.NET/so on, this feeds to a server-side presentation layer which outputs the basic HTML code required to represent the presentational structure on the client's browser, client-side user manipulation of this is done using DOM methods in Javascript, and then the client-side data set is fed back to the logic layer on the server.

kanchan_sa
Aug 8th, 2006, 03:18 AM
I forgot to mention, that this component has its own UI. Also its a container for another component i have downloaded.

Is the above requirement possible with server side VB component?
Can anyone suggest the best language to be used for such requirement?

Thanks.

Al42
Aug 8th, 2006, 03:53 PM
If the UI is server-side the user will never see it. If it's client-side it can't be VB.

Penagate told you the best language(s) to use - PHP/ASP.NET/so on server-side, HTML (produced on the server) and javascript client-side.