11-08-2022, 07:51 PM
(11-08-2022, 07:34 PM)Pete Wrote: The first thing I noticed was... Hey, why the hell am I second on that email list?
Kidding aside, my hope is you are mostly working on integration rather than reproduction. I've never found HTML or CSS coding to be very different than coding in BASIC. Easy to learn, and as you mentioned, tons of stuff to work with. So to make a way to call all of those functions more QBasicy would be a huge investment in time, I would think. To make a way to interact with them, not so much and the same functionality would still be achieved.
Personally I'm looking forward to trying a simple project later today. I want to make a css/html page with 9 input boxes to handle a front 9 golf scorecard. Put in a submit button to add up the scores and figure out a place or separate window to display the results. I don't need anything other than HTML/CSS to make the page, just the interaction of QBJS to make it so the submit button returns the added values of the 9 filled in fields.
Just my 2-cents, and a day-old box of donuts.
Pete
Then you may want to take an approach that is more like this:
Code: (Select All)
Import Dom From "lib/web/dom.bas"
Dim container As Object
container = Dom.Create("div")
container.innerHTML = "<p>Pete is already good at HTML.<br/>Click the button below if you agree.</p><button id='agree-button'>I Agree</button>"
Dom.Event "agree-button", "click", sub_OnClickAgree
Sub OnClickAgree
Print "Of course you do!"
End Sub
View in QBJS