Using Javascript from SpiderBasic
sworteu
 
Posts: 18
Joined: Sun Feb 07, 2016 9:49 am

XJS Module (Github)

by sworteu Tue Feb 09, 2016 3:36 pm

I'm working on a module to implement more javascript functionallity for everyone.
I'd like to hear you wishes here, so i can implement it.

The GitHub project page:
https://github.com/sworteu/XJS
If you'd like to help development of XJS you'd be most welcome.

- XJS::DocumentSetTitle(title.s) sets the document title string.

Currently the localStorage is implemented. localStorage is storage which will be accessible at all times,
it will not be removed when the browser or page closes.
it has the following features:
- XJS::LocalStorageSupported() returns 0 (#True) on success and 1 (#False) on fail
- XJS::LocalStorageSetItem(item.s, value.s) sets a local storage item by item-value
- XJS::LocalStorageGetItem() returns the item or "" if not found
- XJS::LocalStorageRemoveItem(item.s) removes the item if it's found.


Edit:

XJS will be done with multiple modules, implementing features of HTML 5. Wishes and requests are welcome.
Currently i'm working on the following modules (names resemble the DOM objects used, functions will be the same as in javascript):
- storage
- webSocket
- XMLHttpRequest (same as spider but it can call other domains -cors-)
- navigator
- location (javascript window object)

More upon request.
Last edited by sworteu on Thu Feb 11, 2016 5:51 am, edited 2 times in total.
Fred
Site Admin
 
Posts: 1018
Joined: Mon Feb 24, 2014 10:51 am

Re: [Request to all] - Features for module

by Fred Tue Feb 09, 2016 4:33 pm

Great work, you should create a GitHub repository to make your source better accessible for everyone (and get contributions easily)
sworteu
 
Posts: 18
Joined: Sun Feb 07, 2016 9:49 am

Re: [Request to all] - Features for module

by sworteu Wed Feb 10, 2016 7:57 pm

Fred wrote:Great work, you should create a GitHub repository to make your source better accessible for everyone (and get contributions easily)


Done, i'm currently converting it to multiple modules, based on each javascript object.
They will be native javascript (uses no libraries) and multiple files to be modulair.

Will be updated soon.
Fred
Site Admin
 
Posts: 1018
Joined: Mon Feb 24, 2014 10:51 am

Re: XJS Module (Github)

by Fred Thu Feb 11, 2016 7:18 am

Looks good, you're officially the first spiderbasic contributor on github ! :)
sworteu
 
Posts: 18
Joined: Sun Feb 07, 2016 9:49 am

Re: XJS Module (Github)

by sworteu Thu Feb 11, 2016 2:35 pm

Fred wrote:Looks good, you're officially the first spiderbasic contributor on github ! :)


Time for a party then.
Return to Javascript

Who is online

Users browsing this forum: No registered users and 1 guest