Pete's Front Nine
#4
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:

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.


Attached Files
.zip   simple-web-caclulator.zip (Size: 338.86 KB / Downloads: 33)
Reply


Messages In This Thread
Pete's Front Nine - by dbox - 11-10-2022, 03:35 PM
RE: Pete's Front Nine - by Pete - 11-10-2022, 04:31 PM
RE: Pete's Front Nine - by CharlieJV - 11-10-2022, 06:48 PM
RE: Pete's Front Nine - by dbox - 11-10-2022, 06:48 PM
RE: Pete's Front Nine - by Pete - 11-10-2022, 09:00 PM
RE: Pete's Front Nine - by SMcNeill - 11-10-2022, 09:09 PM
RE: Pete's Front Nine - by Pete - 11-10-2022, 09:34 PM



Users browsing this thread: 4 Guest(s)