Page 1 of 2

Your input about absolutely needed commands

Posted: Thu May 08, 2014 8:27 am
by Fred
Hi there,

We would like to have your input about missing "mandatory" commands for SpiderBasic before releasing a 1.00 version. If you think some commands are really missing and cripple the software, feel free to post the command name and its parameters with a small use case (why it is important to have it), so we can discuss that. So far, a big software is currently being developped by a friend and everything is OK for him (it does look good !) but it's always better to get several inputs.

Thanks !

Re: Your input about absolutely needed commands

Posted: Thu May 08, 2014 10:12 am
by eddy
some commands to define custom page header content:

Code: Select all

PageTile "my web application v0.1"
; insert header tags
PageHeaderLine "<link rel='stylesheet/less' type='text/css' href='https://cdn.rawgit.com/twbs/bootstrap/master/less/variables.less'>"
; insert CSS or JS in header (before SpiderBasic header lines to prevent interaction with RequireJS) 
PageScript "http://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.0/less.min.js"
PageCSS "test.css"
The result :

Code: Select all

<head>
<meta charset="utf-8">
<link rel="icon" type="image/png" href="favicon.png">

<!-- CUSTOM TITLE --> 
<title>my web application v0.1</title>

<!-- CUSTOM HEADER LINES --> 
<link rel='stylesheet/less' type='text/css' href='https://cdn.rawgit.com/twbs/bootstrap/master/less/variables.less'>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.0/less.min.js"></script>
<link rel="stylesheet" href="test.css" type="text/css" />

<!-- SPIDER HEADER LINES --> 
<script type="text/javascript">var spider = {}; spider.nbModules = 0; spider.nbLoadedModules = 0;</script>
   ...
   ...
</head>

Re: Your input about absolutely needed commands

Posted: Fri May 09, 2014 10:17 am
by eddy
- command to communicate with web services:

Code: Select all

LoadAjax(FileName.s, FileType$)
(text, xml, json, jsonp, script, or html)

- command for plugin interactions

PostEvent, EventData

Re: Your input about absolutely needed commands

Posted: Fri May 09, 2014 10:40 am
by Fred
Is LoadAjax like HttpRequest() ?

Re: Your input about absolutely needed commands

Posted: Fri May 09, 2014 11:12 am
by eddy
Fred wrote:Is LoadAjax like HttpRequest() ?
Sorry, you're right. I didn't notice this command because I'm used to search "Async" or "Ajax" Jquery command.
For the moment, this command needs DataType$ string parameter #PB_HTTP_JSON$, #PB_HTTP_XML$, etc...

Re: Your input about absolutely needed commands

Posted: Sat May 10, 2014 12:12 am
by MrTAToad
All the database commands are needed - would be good if, when running from a local computer then local database systems are used, but when run from a website then the database system on the website used (if present).

Re: Your input about absolutely needed commands

Posted: Sun May 11, 2014 5:47 pm
by eddy
ProcedureCall (or ProcedureContext) could be a new procedure type used to call procedure in current context

Here is an example:

Code: Select all

ProcedureCall myProcedure(Value)
EndProcedure

myProcedure(1)

Code: Select all

function proc6(v_Value) {
return 0;
}

proc6.call(this, 1);    //<-------------  using "call" method to transfer current context 

Re: Your input about absolutely needed commands

Posted: Mon May 12, 2014 12:02 pm
by Peter
Hello Fred,

for me it would be very useful if either sbmongoose.exe is able to execute php-files or SpiderBasic is able to compile (and start) projects into another folder (i.e Apache-htdocs).

Thanks in advance & Greetings ... Peter

Re: Your input about absolutely needed commands

Posted: Sun May 25, 2014 9:16 pm
by MrTAToad
Multiple mice support would be nice too...

Re: Your input about absolutely needed commands

Posted: Thu Jun 19, 2014 5:12 pm
by MrTAToad
Min, Max, Constrain (limit a value to [min,max]) and Wrap (wrap a value between [min,max]) would be useful