dynamic web pages

BlitzMax Forums/MaxGUI Module/dynamic web pages

allos(Posted 2014) [#1]
I have a database (sqlite) with a good front-end for data insertion/editing written in BMax/maxgui; I would like to show results of queries in a web based interface, connecting database to it (basically, what is obtainable with a server and php scripts).
The only way I found in BMax is using Htmlview, feeding a temporary file.
No one knows how to connect BMax, database and dynamic web pages?
Best regards


grable(Posted 2014) [#2]
You can run javascript via HtmlViewRun and write html that way.
For the connection part, either use websockets or capture the links and do work on the bmx side and then re-generate the html.

Small example:



allos(Posted 2014) [#3]
thank you grable, I rapidly saw your code and I think it is a big help for me; I need to experiment a a little with the code
I need to produce tables with a variable number of rows showing products (a row should contain strings and images drawn from database records)
Using javascript the way you showed allows me to avoid writing html files on disk, it is a great improvement.
Now I must find the way to connect database
thank you again

allos


allos(Posted 2014) [#4]
how can I include css stylesheets?