Hi all,
I'd like to use a jserver instance to serve a simple HTML page which collects some basic personal data, then calls an external API to receive back a PNG file to be showed on the calling page (or even a different one, it doesn't matter).
I have previous experience serving HTML pages from a B4J-based server, but my knowledge on HTML and Javascript is very limited, so please help (expecially on the JS stuff)
API: http://goqr.me/api/doc/create-qr-code/
BTW, any other similar service will be ok to me.
Form needs to collect input for some basic personal data (Name, Surname, Phone..)
My final goal is to show an introductory message like "Generate your QrCode online!", followed by the form and a button which activates the fetch/httprequest mechanism toward the API and on its way back shows the generated PNG file (eventualy completed by a message like "This is your QrCode").
It could be ok even a different solution where the HTML page collects data then calls an internal handler which generates the QrCode which inn turn calls a different HTML page which finally displays the generated file. It sounds a bit more complicated, but it will be almost fully B4X..
Thank you for your help, hints, code
I'd like to use a jserver instance to serve a simple HTML page which collects some basic personal data, then calls an external API to receive back a PNG file to be showed on the calling page (or even a different one, it doesn't matter).
I have previous experience serving HTML pages from a B4J-based server, but my knowledge on HTML and Javascript is very limited, so please help (expecially on the JS stuff)
API: http://goqr.me/api/doc/create-qr-code/
BTW, any other similar service will be ok to me.
Form needs to collect input for some basic personal data (Name, Surname, Phone..)
My final goal is to show an introductory message like "Generate your QrCode online!", followed by the form and a button which activates the fetch/httprequest mechanism toward the API and on its way back shows the generated PNG file (eventualy completed by a message like "This is your QrCode").
It could be ok even a different solution where the HTML page collects data then calls an internal handler which generates the QrCode which inn turn calls a different HTML page which finally displays the generated file. It sounds a bit more complicated, but it will be almost fully B4X..
Thank you for your help, hints, code
Last edited: