Hello,
is there an easy way to convert between
* JavaScript-Array and SpiderBasic-Array and
* JavaScript-JSON and SpiderBasic-JSON
(and vice versa)?
Thanks in advance & Greetings ... Peter
Search found 884 matches
- Wed May 17, 2017 10:03 pm
- Forum: Coding Questions
- Topic: JS-Array <-> SB-Array & JS-JSON <-> SB-JSON?
- Replies: 1
- Views: 1502
- Sun May 14, 2017 10:41 am
- Forum: Feature Requests and Wishlists
- Topic: GetCurrentDirectory()
- Replies: 0
- Views: 1808
GetCurrentDirectory()
Hello Fred, it would be nice, if we had a native GetCurrentDirectory(): Procedure.s GetCurrentDirectory() ; Returns the current path for the application. ! var href = window.location.href; ! return href.substring(0, href.lastIndexOf('/')) + "/"; EndProcedure Debug GetCurrentDirectory() htt...
- Sat May 13, 2017 9:18 am
- Forum: Coding Questions
- Topic: ReadFile() and #PB_Status_Error
- Replies: 0
- Views: 1508
ReadFile() and #PB_Status_Error
Hello, if i load a File (via ReadFile) which doesn't exists, i get no #PB_Status_Error. Instead the FileContent contains the 404-Message (see code below). Is that intended? Procedure ReadFileCallback(Status, Filename.s, File, Size) Select Status Case #PB_Status_Loaded Debug "#PB_Status_Loaded&q...
- Sat May 13, 2017 9:01 am
- Forum: Javascript
- Topic: Babylon.js
- Replies: 67
- Views: 311061
Re: Babylon.js
@falsam:
Here (on Chrome and Firefox): no problems.
Greetings ... Peter
Here (on Chrome and Firefox): no problems.
Greetings ... Peter
- Thu May 11, 2017 2:56 pm
- Forum: Coding Questions
- Topic: Android and iOS
- Replies: 8
- Views: 3379
Re: Android and iOS
since Fred switched from Crosswalk to Cordova it should be possible to compile for all supported platforms (theoretically):
https://cordova.apache.org/docs/en/late ... index.html
Greetings ... Peter
https://cordova.apache.org/docs/en/late ... index.html
Greetings ... Peter
- Wed May 10, 2017 8:03 am
- Forum: Feature Requests and Wishlists
- Topic: Set/GetDesktopTitle() and Set/GetDesktopBackgroundColor
- Replies: 11
- Views: 10106
Re: Set/GetDesktopTitle() and Set/GetDesktopBackgroundColor
yes, you're right. This seems to be a bug.skywalk wrote:Ahh, that was confusing me?Code: Select all
If OpenWindow(0,0,0,0,0,"Title Ignored",#PB_Window_Background) ; Title = SpiderApp if #PB_Window_Background
Greetings ... Peter
- Tue May 09, 2017 9:30 pm
- Forum: Javascript
- Topic: d3.js library in SpiderBasic
- Replies: 7
- Views: 6564
Re: d3.js library in SpiderBasic
@zxretrosoft: perhaps this is a good starting point: DeclareModule D3Js Global IsInitialized Declare Init(Callback) Declare Gadget(Gadget, x, y, Width, Height, Flags = 0) Declare GetSvg(Gadget) EndDeclareModule Module D3Js Macro GetSelector ! var selector = $(spider_GadgetID(v_gadget).div).find('.di...
- Tue May 09, 2017 3:23 pm
- Forum: Feature Requests and Wishlists
- Topic: Set/GetDesktopTitle() and Set/GetDesktopBackgroundColor
- Replies: 11
- Views: 10106
Re: Set/GetDesktopTitle() and Set/GetDesktopBackgroundColor
skywalk wrote:SetWindowTitle(0, "Window0 w/PB fn") ;<-- Why does this change the browser page title?
Greetings ... Peter[color=#AA0000]Fred[/color] wrote:just open a window with the #PB_Window_Background flag, then you can use Get/SetWindowTitle() to change the browser window title.
- Tue May 09, 2017 11:37 am
- Forum: Coding Questions
- Topic: TreeGadget: Expanded-Flag is lost after AddGadgetItem()
- Replies: 1
- Views: 1946
TreeGadget: Expanded-Flag is lost after AddGadgetItem()
Hello, the #PB_Tree_Expanded - Flag is lost after AddGadgetItem(): PureBasic: http://i.imgur.com/y4msPL5.png SpiderBasic: http://i.imgur.com/3mOmUYK.png SampleCode: EnableExplicit OpenWindow(0, 0, 0, 355, 180, "TreeGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) TreeGadget(0, 1...
- Mon May 08, 2017 6:59 am
- Forum: Coding Questions
- Topic: how can i create a textBox with sintax highlight ?
- Replies: 2
- Views: 1822