Page 1 of 1

XJS Module (Github)

Posted: Tue Feb 09, 2016 3:36 pm
by sworteu
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.

Re: [Request to all] - Features for module

Posted: Tue Feb 09, 2016 4:33 pm
by Fred
Great work, you should create a GitHub repository to make your source better accessible for everyone (and get contributions easily)

Re: [Request to all] - Features for module

Posted: Wed Feb 10, 2016 7:57 pm
by sworteu
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.

Re: XJS Module (Github)

Posted: Thu Feb 11, 2016 7:18 am
by Fred
Looks good, you're officially the first spiderbasic contributor on github ! :)

Re: XJS Module (Github)

Posted: Thu Feb 11, 2016 2:35 pm
by sworteu
Fred wrote:Looks good, you're officially the first spiderbasic contributor on github ! :)
Time for a party then.