<div dir="ltr">
Hi,<br><br>Please see my answers inline.<br><br><div class="gmail_quote">2010/12/24 Peter E Williams <span dir="ltr"><<a href="mailto:pewslinuxvault@gmail.com">pewslinuxvault@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>Hi all,</div><div><br></div><div>Please excuse me if this is an obvious question.</div><div><br></div><div>I have an application called Adv_Player which I programmed in Delphi 7 Enterprise project and I have since converted it to a Lazarus 0.9.28.2 project. (It is a very stable and fully test application available for Windows XP from my download page in a setup exe file).</div>



<div><br></div><div>Yes, I still have all the fully working original source code.</div><div><br></div><div>Now I want to convert it into a web based application. I know that Delphi 7 Enterprise can do this but I never got around to investigating HOW to go about doing this.</div>



<div><br></div><div>The application has a Adv_Main : TForm and lots of TEdit's, TButton's and TCheckbox'es and TRadioButton's and a few TGroupBox'es (or do I mean TRadioGroup ?) and TFrame's and maybe a TSplitter.</div>



<div><br></div><div>The rest of the work is all done with my own code and reads and write some text files with readln and writeln statements. These can be thought of as comma separated value files.</div></blockquote><div>

<br>First tip: HTTP is a stateless protocol. And you can get many requests at the same time, so handling text files by yourself is not recommended. <br><br>There are databases such as <a href="http://redis.io/">Redis</a> (it's non SQL based database) that know how to work with key-value data, but know how to handle multiple requests. And can save you a lot of issues with it.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br></div><div>

Questions: </div><div>What do I need to do in order for my application (currently about 5-6 TForms) into a web based application? Another application has about 10-12 TForms in it.</div></blockquote><div><br>Translate your forms into <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html">HTML Forms</a>. One of the things I want to do but lack the time to do is to write a Lazarus Widget that is actually translating normal GUI forms into HTML Forms, but that's just a dream for now.<br>

<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br></div><div>How many of those components do I keep and what needs to be replaced and with what equivalent components. E.g. what is the web based version of TButton or TEdit etc?</div>

</blockquote><div><br>Everything should be in HTML regarding what the client see. The logic is in the Server side.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div><br></div><div>How do I tell Lazarus that my binary file will be launched from within my html code? </div></blockquote><div><br>You do not :) You have a web server. It tells regarding your route how the request will be handled, and send it to your application (CGI -> Common Gateway Interface) to work with it if configured properly.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br></div><div>Can Lazarus do this?</div></blockquote><div><br>Yes, I'm writing a commercial app just now using fpWeb and Lazarus.<br>

<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br></div><div>Would I be correct in assuming that ShowMessage() would not work it was hosted on a website?</div>

</blockquote><div><br>For that there is a dynamic language called JavaScript (or Emca Script) that does this. And client side work can also be done with it, but please note that on the server side, you can not assume that the data itself is valid if you tried to sanitize it in client side, so Javascript is to help your users not to help yourself (please remember it).<br>

<br>You have also a lot of Javascript libraries. for webapps, you have ExtJS, and Lazarus have also ExtPascal for that. But if your application is commercial, you must buy a license for ExtJS afaik.<br>You have also dojo, jquery mootools and more that provide a better javascript framework to work with.<br>

 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><br></div><div>I want to how it on my own website which is hosted by Hosted24.com with my Silver membership payment plan.</div><div><br></div><div>I also have Dreamweaver 3, Studio MX (including Dreamweaver MX) and KompoZer for Mint 10 and Wine 1.3.</div>

</blockquote><div><br>Personally I use regular editor such as vim, lazarus (it's not an IDE for non pascal code), kate/gedit for this type of tasks. In Linux you also have dedicated editors for working with web based technology, and you can use Oracle's NetBeans as an IDE, but for me as I said, I use regular text editors for that.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><br></div><div>Regards,</div><div>    PEW</div><br clear="all">Fond Regards, Peter Eric WILLIAMS <br>--- Hobart, Tasmania, Australia<br>--- Phone: +61 (03) 6236-9675<br>My free websites are:  <a href="http://pewink.info" target="_blank">http://pewink.info</a>   (&)<br>



   <a href="http://pewslinuxvault.googlepages.com" target="_blank">http://pewslinuxvault.googlepages.com</a><br>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br>Ido<br clear="all">LINESIP - Opening the source for communication<br><a href="http://www.linesip.com/" target="_blank">http://www.linesip.com</a><br><a href="http://www.linesip.co.il/" target="_blank">http://www.linesip.co.il</a><br>

<br></div>