Page 1 of 2
SpiderBasic 1.30 final is out !
Posted: Thu Mar 10, 2016 12:10 pm
by Fred
Hi there,
The final version is out, thanks to all for testing !
beta 3 is out, with a few more fixes.
beta 2 is out. It's mostly bug fixes, and add a new flag to canvas gadget:
Code: Select all
Added: #PB_Canvas_Transparent flag for CanvasGadget() to have transparent canvas.
beta 1 is out, It brings some interesting news, and fixes almost all bugs reported ! Don't hesitate to give it a try:
Code: Select all
- Added: DisableWindow(), AddKeyboardShortcut(), RemoveKeyboardShortcut()
- Added: OpenFile(), GetWindowColor(), SetWindowColor()
- Added: CountProgramParameters() and ProgramParameter() to get URL params
- Added: #PB_Mouse_Locked and #PB_Mouse_Unlocked support for InitMouse()
- Added: UseGoogleDrive() to access google drive remote files in read and write mode
- Added: #PB_GoogleDriveFile support to ReadFile(), CreateFile() and OpenFileRequester()
- Added: flag parameter to ExportFile() to support GoogleDrive
- Changed: Added a callback parameter to CreateFile()
- Changed: in the IDE, compiler option server port now needs the server address as well.
- Changed: NextSelectedFilename() replaced by NextSelectedFile() and SelectedFilename()/SelectedFileID()
- Updated: SoundJS to 0.6.2 and PixiJS to 3.0.10
Have fun,
The Fantaisie Software Team
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 12:56 pm
by bbanelli
Go Fred!
What about Google Drive example?
/edit
What am I doing wrong (just logged in and got this)?
What I am doing wrong is not reading documentation.

Sorry!
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 1:28 pm
by Fred
If you need more info, don't hesitate to ask, I've spent some time to make it work. There is the GoogleDriveEditor.sb which is a starting point. Using the API/Client key of this example, you can use the following dummy domain to test:
spider.test:8080
To do this, edit your 'hosts' file (in C:\Windows\System32\drivers\etc, needs admin rights) and add this line:
127.0.0.1 spider.test
Then in the SpiderBasic IDE -> Compiler Options -> Compiler/Run -> Web server address, put: spider.test:8080
It should work (first asking for right to access google drive, then on second try it should be logged automatically).
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 2:26 pm
by bbanelli
Hi Fred,
this is what I'm getting after uploading it to my server (domain is verified by Google) when trying to open existing file from Google Docs.
Code: Select all
GET https://content.googleapis.com/discovery/v1/apis/drive/v2/rest?fields=rootU…ePath%2Cresources%2Cparameters%2Cmethods&pp=0&key=SeUUWcpqb79f_hu3rgFNkt5n 400 ()
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('https://www.banelli.biz').
Invalid 'X-Frame-Options' header encountered when loading 'https://docs.google.com/picker?protocol=gadgets&origin=https%3A%2F%2Fwww.ba…%3Atrue%7D))&rpctoken=v8yjyogv11hw&rpcService=ad8rb7pgvfqj&thirdParty=true': 'ALLOW-FROM https://www.banelli.biz' is not a recognized directive. The header will be ignored.
GET https://content.googleapis.com/drive/v2/files/0B0gQR3Yid-5lRXJjaWpEZDlkUEk?key=SeUUWcpqb79f_hu3rgFNkt5n 403 ()
GET https://banelli.biz/dev/tmp/gdrive/undefined
XMLHttpRequest cannot load https://banelli.biz/dev/tmp/gdrive/undefined. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.banelli.biz' is therefore not allowed access. The response had HTTP status code 404.
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 2:59 pm
by Fred
Could you try with a simple .txt file ? Basically just upload one on Drive, and then try to read it from SpiderBasic. I don't know if google docs files can be accessed easily. Did you use your own client/API keys ?
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 3:20 pm
by SparrowhawkMMU
Thank you Fred!
Will start testing and report back any issues but great as ever to see the fast pace of development for SB.
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 3:23 pm
by bbanelli
That was an attempt with simple txt.
Code: Select all
;Trying to save simple txt
GET https://content.googleapis.com/discovery/v1/apis/drive/v2/rest?fields=rootU…ePath%2Cresources%2Cparameters%2Cmethods&pp=0&key=SeUUWcpqb79f_hu3rgFNkt5n 400 ()
'KeyboardEvent.keyLocation' is deprecated and will be removed in M50, around April 2016. Please use 'KeyboardEvent.location' instead. See https://www.chromestatus.com/features/4997403308457984 for more details.
Uncaught ReferenceError: debug is not defined
;Trying to load simple txt already uploaded to Google Drive
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('https://www.banelli.biz').
Invalid 'X-Frame-Options' header encountered when loading 'https://docs.google.com/picker?protocol=gadgets&origin=https%3A%2F%2Fwww.ba…%3Atrue%7D))&rpctoken=45e0sx1xe4ao&rpcService=2ym6afc9gc5v&thirdParty=true': 'ALLOW-FROM https://www.banelli.biz' is not a recognized directive. The header will be ignored.
GET https://content.googleapis.com/drive/v2/files/0B0gQR3Yid-5lRXJjaWpEZDlkUEk?key=SeUUWcpqb79f_hu3rgFNkt5n 403 ()
GET https://banelli.biz/dev/tmp/gdrive/undefined
XMLHttpRequest cannot load https://banelli.biz/dev/tmp/gdrive/undefined. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.banelli.biz' is therefore not allowed access. The response had HTTP status code 404.
I've setup permissions and API keys/secrets for OAuth 2.0 client IDs. Google Drive's file picker window shows normally when I click "Open" icon.
Re: SpiderBasic 1.30 beta 1 is available
Posted: Thu Mar 10, 2016 4:16 pm
by Fred
Do you try to create a file ? If yes, I forgot a debug() somewhere, so try to install this new lib (windows):
www.spiderbasic.com/beta/File
Re: SpiderBasic 1.30 beta 1 is available
Posted: Fri Mar 11, 2016 7:41 am
by Sirius-2337
Thank you for the many bug fixes!
1.30Beta1 wrote:- Changed: Added a callback parameter to CreateFile()
It's not in the help file yet altough all ohter changes seem to be.
Re: SpiderBasic 1.30 beta 1 is available
Posted: Fri Mar 11, 2016 10:05 am
by Motu
cool
