<div>Hi All,</div><div><br></div><div>see comments inline.</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>My free blog is: <a href="http://patientxmarksthespot.wordpress.com" target="_blank">patientxmarksthespot.wordpress.com</a><br>

<br>
<br><br><div class="gmail_quote">2010/12/24 ik <span dir="ltr"><<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<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" target="_blank">pewslinuxvault@gmail.com</a>></span><div class="im">

<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>

<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></div></div></div></blockquote><div>Thanks for pointing that out but I already know this. I used to write websites for the Royal Australian Navy up until 8 years ago with Dreamweaver 3 and html (also a little bit with Dreamweaver MX Studio). I have legal copies of these from my Defence job.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_quote"><div>There are databases such as <a href="http://redis.io/" target="_blank">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></div></div></blockquote><div><br></div><div>Does Redis come with sample databases and websites? Where can I view these?</div><div>    </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><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><div><br>Translate your forms into <a href="http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html" target="_blank">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></div></div></blockquote><div>I think this is called Webification, correct? Are there any software tools to do this or is all done by hand? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div> </div><div class="im"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><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><div><br>Everything should be in HTML regarding what the client see. The logic is in the Server side.<br></div></div></div></blockquote><div><br></div><div>Okay. Perhaps you misinterpreted my question. What is the HTML version of a TButton, TEdit, TRadioButton, TCheckBox, etc. I know the basics of form design with Dreamweaver 3 and I also have Dreamweaver MX Studio. It has been a few years since I used them. </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_quote"><div class="im"><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><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></div></div></blockquote><div>Okay. So then my question is HOW do I write Java or JavaScript based on my existing Lazarus 0.9.28.2 OO Pascal code which is fully working and debugged?  </div><div><br></div><div>Are there any software tools for conversion of Pascal to Java or JavaScript [ called the CGI ]? I think that there are some but in a half hour google for it I could not find them. If they are Windows-based then I can run them with Wine. If they are Linux based then that's better.</div>

<div><br></div><div>I thought that I needed to use Lazarus and fpWeb to create some kind of binary file which I upload to my Hosting24.com server so that I can use my html code to use Java or JavaScript in my html file to call the binary generated with Lazarus (which I would ftp to my server). Is this correct?</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_quote"><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></div></div></div></blockquote><div><br></div><div>Are there any Open Source examples of fpWeb and Lazarus.</div>

<div><br></div><div>I am thinking about either learning Java or NetBeans. My gut tells me to go with Lazarus if I can find a sample O.S. fpWeb application I can study and learn from.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div> </div><div class="im"><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><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></div></div></div></blockquote><div>Ok. So if I want to display a message on the users' system then I use JavaScript. Thanks.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div>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>

</div></div></div></blockquote><div><br></div><div>My application will be either non-commerical closed source or open source with the same license as Lazarus (probably this option).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div dir="ltr"><div class="gmail_quote"><div>You have also dojo, jquery mootools and more that provide a better javascript framework to work with.<br>

 <br></div></div></div></blockquote><div>HaHa ... now you're just throwing acronyms around :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">

<div class="gmail_quote"><div></div><div class="im"><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></blockquote></div></div></div></blockquote><div><br></div><div>read Hosting24.com not Hosted24</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_quote"><div class="im"><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 also have Dreamweaver 3, Studio MX (including Dreamweaver MX) and KompoZer for Mint 10 and Wine 1.3.</div>

</blockquote></div><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></div></div></blockquote><div>I had a quick look at NetBeans IDE today. It is big and a bit confusing. </div><div><br></div><div>How do you compare NetBeans IDE with Delphi 7 Enterprise and Dreamweaver MX for HTML form designing? (I have all of these available to me).</div>

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

<div class="im">

<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></div>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">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>
<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><div>PEW</div>