Recent

Author Topic: JQuery UI Widgetset  (Read 2870 times)

Pluto

  • New Member
  • *
  • Posts: 29
JQuery UI Widgetset
« on: January 17, 2019, 04:54:55 pm »
It occurs to me that we could create some sort of browser stub in Javascript/CSS/HTML that communicates with a back end via AJAX... In this way we could create another target widgetset for the LCL that goes to the browser using one of the common UI frameworks, such as JQuery UI...

Handoko

  • Hero Member
  • *****
  • Posts: 5130
  • My goal: build my own game engine using Lazarus
Re: JQuery UI Widgetset
« Reply #1 on: January 17, 2019, 05:04:59 pm »
As far as I know ... no, there is no such thing for Lazarus/FPC. I know a bit about CSS and was looking for it, it will be great for me if I can use it in Lazarus.
« Last Edit: January 17, 2019, 05:08:01 pm by Handoko »

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: JQuery UI Widgetset
« Reply #2 on: January 17, 2019, 05:11:29 pm »
It occurs to me that we could create some sort of browser stub in Javascript/CSS/HTML that communicates with a back end via AJAX... In this way we could create another target widgetset for the LCL that goes to the browser using one of the common UI frameworks, such as JQuery UI...
Do you know Pas2JS?
http://wiki.freepascal.org/pas2js

Pluto

  • New Member
  • *
  • Posts: 29
Re: JQuery UI Widgetset
« Reply #3 on: January 17, 2019, 07:10:58 pm »

sash

  • Sr. Member
  • ****
  • Posts: 366
Re: JQuery UI Widgetset
« Reply #4 on: January 17, 2019, 07:30:25 pm »
... we could ...
In this way we could ...
What about you? Have something done? Code, research, elaborated proposals?
Lazarus 2.0.10 FPC 3.2.0 x86_64-linux-gtk2 @ Ubuntu 20.04 XFCE

Pluto

  • New Member
  • *
  • Posts: 29
Re: JQuery UI Widgetset
« Reply #5 on: January 17, 2019, 08:36:18 pm »
What about you? Have something done? Code, research, elaborated proposals?

Nope.  I was just thinking out loud.  After some thinking, Pas2JS would be the way to go.  I would have to do a proof of concept using a single widget, such as a button, just to show how it would be done... Then probably how to integrate ajax calls back to the server...

Despite having Pascal in high school (on an Apple II), I don't remember enough to even be dangerous at this point. 

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: JQuery UI Widgetset
« Reply #6 on: January 17, 2019, 08:56:59 pm »
There are some videos about Pas2JS on You Tube:
https://www.youtube.com/results?search_query=pas2js

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: JQuery UI Widgetset
« Reply #7 on: January 17, 2019, 08:59:17 pm »
There are also some other alternatives that you might try:
Lazarus + ExtPascal = Login
https://www.youtube.com/watch?v=YE0ExvxVGTw

See more information:
pas2js configuration help
http://forum.lazarus.freepascal.org/index.php/topic,43933.msg308371.html#msg308371

Pluto

  • New Member
  • *
  • Posts: 29
Re: JQuery UI Widgetset
« Reply #8 on: January 17, 2019, 10:55:52 pm »
There are also some other alternatives that you might try:
Lazarus + ExtPascal = Login
https://www.youtube.com/watch?v=YE0ExvxVGTw

See more information:
pas2js configuration help
http://forum.lazarus.freepascal.org/index.php/topic,43933.msg308371.html#msg308371

I would probably end up using both.  Pas2JS for the client side GUI, and ExtPascal for the remote calls.

If I try to use ExtPascal for all of it, then I'm stuck mapping a stateful application onto a stateless server, and my solution begins to look a lot like the tried and abandoned classic ASP.NET.

 

TinyPortal © 2005-2018