Can I design Web pages with Delphi?
Asked Answered
D

15

13

I have been programming with Delphi for a long time, and I focused on desktop applications. I decided to enter the web-page programming world. How can I have an interface like Delphi but with a scripting environment for web programming? Is there any version of Delphi I can make web pages with?

Can the applications created by IntraWeb can be uploaded as a whole site?

Dowse answered 28/7, 2010 at 9:57 Comment(1)
As much as I love Delphi, for web development look for either PHP or ASP.NET, those are languages that are focused on web apps, whereas Delphi is for desktop applications.Debouchment
O
6

Delphi is focused primarily on developing native applications for Windows (Win32), however there are a couple of alternatives for creating web pages or web applications using Delphi.

  • ISAPI/CGI
  • The IntraWeb components.
  • extpascal (Ext JS wrapper for Object Pascal), check this link for some demos.

Another option is to use Delphi-prism, you can create ASP.NET, and Silverlight applications using a syntax very similar to Delphi.

Oshea answered 28/7, 2010 at 10:19 Comment(1)
the applications created by IntraWeb can be uploaded as a whole site?Dowse
H
7

Delphi for PHP

For small applications you may use IntraWeb

Hardee answered 28/7, 2010 at 10:41 Comment(0)
B
7

For Delphi Web Development you have :

1 - Unigui unigui (Server side Tecnology and client side using Sencha Framworke
2 - Intraweb atozed
3 - Tms WebCore - cliente Side javascript Tms sofware Webcore
4- Elevate Builder -Elevate Software
5 - Smart mobile Studio - Smart Mobile Studio

For Mvc and Rest you have
6- Mars curiosity - MARS-Curiosity Delphi REST Library
7- Delphi Mvc framework - Mcv Framework
8- Mormot (fantastic ORM and REST and other stuff ) - Mormot

and there's more out there. So as you can see, Delphi is not dead, Delphi is algo great for web development.

Beret answered 11/6, 2019 at 15:53 Comment(0)
O
6

Delphi is focused primarily on developing native applications for Windows (Win32), however there are a couple of alternatives for creating web pages or web applications using Delphi.

  • ISAPI/CGI
  • The IntraWeb components.
  • extpascal (Ext JS wrapper for Object Pascal), check this link for some demos.

Another option is to use Delphi-prism, you can create ASP.NET, and Silverlight applications using a syntax very similar to Delphi.

Oshea answered 28/7, 2010 at 10:19 Comment(1)
the applications created by IntraWeb can be uploaded as a whole site?Dowse
L
3

I think that the best tool is Morfik : IDE very close to Delphi ans use Pascal Object.

Llewellyn answered 29/7, 2010 at 12:32 Comment(0)
E
3

Unigui is what you want. Create ajax extjs web applications inside your Delphi IDE.

Exciter answered 23/7, 2012 at 20:58 Comment(0)
I
3

I've been using the pre-release of Evelate Software's Web Builder and it is the most Delphi-like experience for making web applications that run in a web browser. Very focused, quite capable, and not a lot of learning for a Delphi-head. There are other more general solutions, but EWB should be included in any shortlist if Delphi-on-a-page is what you want.

Irrelevant answered 24/7, 2012 at 8:14 Comment(0)
N
2

The normal Delphi IDE (for Win32) has not been designed as a IDE for the creation and layout of HTML pages, CSS (style sheets) or JavaScript code.

The Delphi IDE can create a new JavaScript file, by default it will contain only this lonely line:

// insert JavaScript source code here

The IDE will not give you any further support specific to JavaScript from this point. At least, it tells you what you have to do next :)

The IDE can also create new CSS files with this minimalistic content:

BODY {

}

That's all, no further IDE support like style preview, validation or CodeInsight. I don't know if it is possible for Delphi add-on developers to write plugins to close these gaps.

The HTML editor in Delphi IDE offers some support for tables and forms. No preview, no formatting, no CodeInsight. New files are always ANSI encoded, if you need UTF-8 you have to change it manually for every single file because the IDE does not have an option to change this default. HTML files also have the classic *.htm extension (from the old DOS era), so if you prefer the .html extension you have to fix this for every file again.

Fortunately there are many free and very comfortable editors and IDEs. For example NetBeans, it has a very small storage space footprint, and is also a good PHP development environment. And it is free. And last but not least, it is an impressive example of a GUI built with Java.

Novelistic answered 28/7, 2010 at 17:9 Comment(0)
U
1

Delphi is good for old Win 32 applications. Forget it when thinking about web development ; although Embarcadero did some tries in the past, nothing really worked well. Go to modern technologies for front-end and/or back-end ; Javascript, CSS, HTML5, Ruby, PHP, .net and whatever ; just forget about Delphi when the application is web based.

Utopianism answered 14/10, 2014 at 18:36 Comment(4)
Front-end perhaps, but for the back-end: I most strongly disagree. Having done work on IIS, Apache, raw HTTP, and investigating this new nginx-thing: I very much enjoy using Delphi and Object Pascal to build a native service that has access to the full capabilities of the server to handle HTTP requests.Hieratic
A back-end app would end up to be a Win32 app, and that's what Delphi is good. Every time i tried to do a web app using Embarcadero tools all i got was frustration, whatever was Delphi for PHP, RadPHP, Intraweb and so on.Utopianism
Well, yes. Trying to 'marry' the RAD-IDE-concept with web-dev ends in monstrosities like those. But Win32 app? There's ISAPI DLL's, NT-Services, COM+, HTTPAPI, and proper 64-bits compilation nowadays...Hieratic
Ok, i can't talk about the news, i stopped in Delphi XE, and keep using it for my Win32 needs. As for web development, no thanks ;)Utopianism
H
1

Inspired by work I did in (old) ASP, Cold Fusion and (old) PHP, I wanted to use the power and speed of the Delphi compiler to build Web server back-ends, with Delphi (Object Pascal) source and HTML in the same files, and created http://xxm.sourceforge.net/

Hieratic answered 11/12, 2014 at 12:22 Comment(0)
H
1

if you want to fail, use IntraWeb. a framework that has more bugs than any other framework. even their demos are full of bugs. I'm talking from personal experience. try uniGui or PHP for delphi

Howell answered 7/8, 2021 at 13:22 Comment(1)
i went through the same experience with IntraWeb, it had some bugs (or maybe my experience for this subject was insufficient)... i didn't work a lot with uniGui, but it was exciting.Dowse
N
1

I have used the following

  1. Thinfinity - Very quick to get started. Just requires one line of code in your source. An advantage is that you can use any third party components. Licensing is per user. It only has to be renewed for new features. You still have to sort out folder/file access into server side and client side. It has a property so you can flip it to suit at runtime.
  2. TMS Web Core - It produces "javascript", so your whole application is in "javascript" files (one or many to suit). And you still need a backend for webservices and data access, which it has support for. The application has to be re-written from scratch.
  3. UniGui - You need to replace all your components to theirs. This wasnt an issue for me as I already subclass all components I use. I just had to change it one place. It has support for css and javascript. The downside is that its a lot harder to use any third party components. This is because their source has to be changed too.

For quick and dirty progress I would use "Thinfinity". For the long term I would use "UniGui". I am still evaluating "TMS Web Core:, so the jury is still out.

Notochord answered 1/10, 2021 at 22:23 Comment(0)
A
0

Delphi for PHP can be' easily integrate with Delphi (PHP is very "open" language). You can have the best from the two worlds.

Agoraphobia answered 28/7, 2010 at 15:23 Comment(1)
Delphi PHP (or RAD PHP) was always packed of bugs and is dead now.Utopianism
A
0

You can develop something like a REST service using any HTTP server component and then use any front end technology such as CSS/HTML5+JS (angular or whatever framework you like). This is very common nowadays, still Delphi is not suitable for it, just switch to Java EE or .NET ecosystem, it shall open grater possiblitys for you since both are designed for web development.

Aspic answered 27/10, 2015 at 15:4 Comment(0)
A
0

Delphi has really made great steps recently. (as of 2019) Unigui is the way to go for webdevelopement. I dont know any better platform to develop webapplications currently.

Arrester answered 1/3, 2019 at 18:45 Comment(0)
J
0

You can try xProject (https://green-hill.srl) xProject compile your dpr/lpr project files and the dfm/lfm form files and the corresponding pas files to html/css and javascript. The result looks and behave same like your desktop app.

Jacquejacquelin answered 15/2 at 23:52 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Overgrowth
it was an awesome project @Peter. thx for mention it.Dowse

© 2022 - 2024 — McMap. All rights reserved.