|
Post by Carl Gundel - admin on Jun 6, 2009 15:01:17 GMT -5
I have been working for a while on Ajax support for Run BASIC v1.0.2. The idea is to specify for a widget which rendered objects or DIVs or SPANs (this will be a new command like a DIV) will be updated dynamically when the widgets is used.
For example let's say we wanted to Ajaxify the spirals project that comes with RB. We would use the following statement to set up a list box:
listbox #colors, col$(), 3, [handleSelection]
and then we would use the ajax() method to specify one or more parts of the web page to replace when the user changes the listbox selection.
#colors ajax("#spiral")
Then when the selection in the listbox is changed the handler is invoked:
[handleSelection] channel #spiral cls gosub [drawSpiral] end channel wait
The new CHANNEL/END CHANNEL statement causes any UI setup code to be applied to the DIV named #spiral. Once we hit the WAIT statement the web page will be updated, and only the contents of the page in DIV will be modified in place. If the user is looking at a web page which is scrolled down, the page will not jump back to the top when this kind of technique is used.
With this, we don't even need a Draw link as it currently uses. Change the color to blue or the shape to a circle and the graphic updates instantly.
What I've posted above is only a rough approximation the code. I will post a real working example of this technique later.
-Carl
|
|
|
Post by Janet on Jun 6, 2009 15:24:18 GMT -5
This sounds awesome!! ;D
|
|
|
Post by votan on Jun 6, 2009 17:10:21 GMT -5
Actually, with this new feature (and hopefully some more and bugfixes) you should consider the next release a "major release" and at least make it V1.2 (or even higer)! This is also good for potential buyers, as it makes the program appear more "evolved" than a 1.0.2 version that looks like a still pretty early and unproven version. An easy to find changelog on the main website would also be a good thing then.... Keep up the great work, we all appreciate it!!
|
|
|
Post by kokenge on Jun 7, 2009 0:17:38 GMT -5
Getting code more interactive has been a major problem for as long as I can remember. I have tons of code that I will be VERY happy to toss when this becomes available. Things are heading there as features in HTML 5 like canvas, video, and geo-location features evolve. Can't wait to get it.. I bow to the master.. Thanks for the great work... Dan
|
|
|
Post by Joseph E. on Aug 8, 2010 0:15:54 GMT -5
Any update on this? This would blow JS/JQuery and PHP out of the water...
|
|
|
Post by davidcope on Aug 21, 2010 12:53:19 GMT -5
I second Joseph's appeal - is there progress to report? It is a fantastic and intuitive feature. Also thanks to Carl for this technology - only just started to read the docs today, but my head is spinning with project ideas. Could have done with this a few years ago as part of my work - but hey, hindsight is a wonderful thing!
|
|
|
Post by Carl Gundel - admin on Aug 21, 2010 20:11:48 GMT -5
Yes, I have been working on this. I am trying to get an alpha release together for people to try. -Carl I second Joseph's appeal - is there progress to report? It is a fantastic and intuitive feature. Also thanks to Carl for this technology - only just started to read the docs today, but my head is spinning with project ideas. Could have done with this a few years ago as part of my work - but hey, hindsight is a wonderful thing!
|
|
jerry
Junior Member
Posts: 83
|
Post by jerry on May 13, 2014 11:40:25 GMT -5
Carl,
I'd be happy to test that alpha code for you.
|
|
jerry
Junior Member
Posts: 83
|
Post by jerry on Aug 20, 2018 19:24:05 GMT -5
Any day now?
|
|