Search found 18 matches

by LuckyLuke
Thu Oct 12, 2017 12:17 pm
Forum: Coding Questions
Topic: javascript array
Replies: 0
Views: 2869

javascript array

Hi,

I want to call a native javascript function and I need to create an array. Is it possible to use Spiderbasic native commands to do this or should I use native javascript (using the '!' - symbol ?

columns: [
{ field: 'recid', caption: 'ID', size: '50px' },
{ field: 'lname', caption: 'Last ...
by LuckyLuke
Tue May 16, 2017 10:29 am
Forum: Coding Questions
Topic: Using other gui framework
Replies: 6
Views: 6101

Using other gui framework

Hi,

Is it possible to use the following framework in Spiderbasic : http://w2ui.com/web/ ?

Because of the small size (Only 69kb) it might be interesting to add this to the official version of SpiderBasic ?
This way we might create smaller apps (like in Purebasic). (just a thought :) )

Anyway ...
by LuckyLuke
Wed Nov 23, 2016 7:55 am
Forum: Coding Questions
Topic: SB 2.00 b7 requirejs is not defined ...
Replies: 5
Views: 4775

SB 2.00 b7 requirejs is not defined ...

The procedure UsePlugins is not working anymore. Error message: requirejs is not defined (in chrome)

http://forums.spiderbasic.com/viewtopic.php?f=9&t=293

Procedure UsePlugins(*FunctionUsingPlugins, EnforceDefine=#False)
!var cfg=$.extend({ enforceDefine: v_enforcedefine, paths: window ...
by LuckyLuke
Thu Nov 17, 2016 1:40 pm
Forum: Coding Questions
Topic: Editable ListIconGadget
Replies: 6
Views: 10551

Re: Editable ListIconGadget

I was looking at the wrong docs :oops:
The correct information can be found on:
https://github.com/SitePen/dgrid/blob/v1.1.0/doc/components/mixins/Editor.md

Enumeration
#myWindow
#myListIconGadget
EndEnumeration

OpenWindow(#myWindow, #PB_Ignore, #PB_Ignore, 800, 600, "ListIconGadget", #PB ...
by LuckyLuke
Tue Nov 15, 2016 12:32 pm
Forum: Coding Questions
Topic: Editable ListIconGadget
Replies: 6
Views: 10551

Re: Editable ListIconGadget

This is a sample code trying to make the ListIconGadget editable.

EnableExplicit

Enumeration
#myWindow
#myListIconGadget
EndEnumeration

Procedure.i GadgetElement(Gadget, UseJquery.b=#True)
; by eddy (http://forums.spiderbasic.com/viewtopic.php?p=320#p320)
Protected gadgetObject=GadgetID ...
by LuckyLuke
Tue Nov 15, 2016 10:30 am
Forum: Coding Questions
Topic: Disable resize in ListIconGadget ?
Replies: 0
Views: 2621

Disable resize in ListIconGadget ?

Hi,

Is it possible to disable the resize of some columns ?

Thanks.

Luk
by LuckyLuke
Tue Nov 15, 2016 10:28 am
Forum: Coding Questions
Topic: Editable ListIconGadget
Replies: 6
Views: 10551

Re: Editable ListIconGadget

I found some information on
https://dojotoolkit.org/reference-guide/1.10/dojox/grid/DataGrid.html

Editing cells
A cell can be defined as editable by setting its editable flag to be true. In the markup, this is achieved by adding the attribute editable="true" to the <th> definition.

But it's ...
by LuckyLuke
Wed Nov 09, 2016 7:47 am
Forum: Feature Requests and Wishlists
Topic: DataGrid
Replies: 9
Views: 11702

Re: DataGrid

+ 1
by LuckyLuke
Wed Nov 09, 2016 7:44 am
Forum: Feature Requests and Wishlists
Topic: Add custom headers to HTTPRequest
Replies: 13
Views: 12491

Re: Add custom headers to HTTPRequest

Using a map will allow you to add multiple headers.

Code: Select all

NewMap headers.s()
headers("x-super-spiderbasic-header") = "hello world"

HTTPRequest(#PB_HTTP_Post, "some/url/on/the/web", "", @MyCallBack(), 0, headers())
by LuckyLuke
Tue Nov 08, 2016 9:27 am
Forum: Coding Questions
Topic: Autocomplete StringGadget
Replies: 4
Views: 3997

Re: Autocomplete StringGadget

Thanks Peter.

I'll propably create a popup window to allow the user to search.
But how can I check if the user pressed the ENTER key in the StringGadget ?