Your input about absolutely needed commands

Everything else that doesn't fall into one of the other categories.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Your input about absolutely needed commands

Post 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 !
User avatar
eddy
Posts: 124
Joined: Thu Mar 27, 2014 8:34 am

Re: Your input about absolutely needed commands

Post 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>
User avatar
eddy
Posts: 124
Joined: Thu Mar 27, 2014 8:34 am

Re: Your input about absolutely needed commands

Post 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
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Your input about absolutely needed commands

Post by Fred »

Is LoadAjax like HttpRequest() ?
User avatar
eddy
Posts: 124
Joined: Thu Mar 27, 2014 8:34 am

Re: Your input about absolutely needed commands

Post 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...
User avatar
MrTAToad
Posts: 291
Joined: Sun Apr 20, 2014 11:43 am
Location: Chichester, England
Contact:

Re: Your input about absolutely needed commands

Post 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).
User avatar
eddy
Posts: 124
Joined: Thu Mar 27, 2014 8:34 am

Re: Your input about absolutely needed commands

Post 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 
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Your input about absolutely needed commands

Post 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
User avatar
MrTAToad
Posts: 291
Joined: Sun Apr 20, 2014 11:43 am
Location: Chichester, England
Contact:

Re: Your input about absolutely needed commands

Post by MrTAToad »

Multiple mice support would be nice too...
User avatar
MrTAToad
Posts: 291
Joined: Sun Apr 20, 2014 11:43 am
Location: Chichester, England
Contact:

Re: Your input about absolutely needed commands

Post by MrTAToad »

Min, Max, Constrain (limit a value to [min,max]) and Wrap (wrap a value between [min,max]) would be useful
Post Reply