11-10-2022, 06:48 PM
I think I get where you are coming from. If I understand correctly, you are wanting to use QBJS more like VBScript so that you could do something like:
It's interesting, that might be feasible... I'll have to look into it further. At present though it's more analogous to the single-page application paradigm where you are creating web UIs that function more like thick client applications and are more dynamically constructed.
As far as sharing what you've constructed on the web though there are a couple of options in the current release. You can create a share link like this one that will launch QBJS in "Auto" mode which will hide the IDE and automatically compile and run your web program:
Simple Web Calculator
Or, you can export the "compiled" version of the application to a standalone zip folder with the Export feature if you'd like to host it elsewhere. I've attached an example of the exported version of the same Simple Web Calculator application.
Code: (Select All)
<html>
<head>
<script language="javascript" src="qbjs.js"></script>
<body>
<input name="1">
<input name="2">
<button onclick="sub_OnBtnClick">Push Me</button>
<script language="qbjs">
Sub OnBtnClick
' do something in qb syntax here
End Sub
</script>
</body>
</html>
It's interesting, that might be feasible... I'll have to look into it further. At present though it's more analogous to the single-page application paradigm where you are creating web UIs that function more like thick client applications and are more dynamically constructed.
As far as sharing what you've constructed on the web though there are a couple of options in the current release. You can create a share link like this one that will launch QBJS in "Auto" mode which will hide the IDE and automatically compile and run your web program:
Simple Web Calculator
Or, you can export the "compiled" version of the application to a standalone zip folder with the Export feature if you'd like to host it elsewhere. I've attached an example of the exported version of the same Simple Web Calculator application.