On Sun, 7 Jun 2009, Joost van der Sluis wrote:

Hi all,

I saw a lot of talking about developing for the web on the forum lately,
but no new code. But as I read the last messages ok, there are some
people working on this.

Extpascal is nice, but Ext JS is dual-licensed, which is a problem for
some people. And it's fcgi-only. (I saw something about a cgi-connection
or something?)

And it's not that hard, in fact it's easy. The difficult part is to
write an javascript-framework, but when it's already there.. building an
interface is easily done. Especially if the fcl-web is used as the basic
building blocks. Then apache-modules, cgi and fastcgi are supported
out-of-the-box.

So I've made a simple proof-of-concept. I didn't think the design
through, a lot can be changed. It's not only nound to jQuery, it should
be possible to use other javascript-frameworks. First version used
Qooxdoo, but I didn't really liked it...

I created a new jQueryLaz package, it only contains a grid-component,
using the jGrid plugin for jQuery.

Attached is the source with an example. Install the package and compile
the example. (Change the parameters so it fits to your database) Place
the resulting executable on a web-server and configure it so it's
recognized as an cgi-application. You also have to download jQuery and
jGrid and place those files in the same directory as the cgi-appliation.

It's pretty simple but easy to extend. I hope there will grow something
out of it.

It seems very promising. If I understand  it correctly, this is a way
to include javascript client-side components in a a webpage.

The TjQueryGrid just produces enough HTML/javascript so the browser knows where to point to, has some methods to create the data, and the rest is done by the javascript code from the javascript jQuery component?

I suspect that for production code, you would still need to add some session info to the whole ?

Impressive, and another step on the road to something Intraweb-like. What would be your proposed next steps ?

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to