BASIC

Author Topic: HTML5 / JavaScript ist starting to get useful  (Read 11869 times)

MrTAToad

  • Guest
Re: HTML5 / JavaScript ist starting to get useful
« Reply #30 on: 2012-Nov-17 »
I presume file I/O isn't allowed, beyond the ability to save data as one long text cookie...

Offline Ruidesco

  • Mr. Polyvector
  • ***
  • Posts: 236
    • View Profile
Re: HTML5 / JavaScript ist starting to get useful
« Reply #31 on: 2012-Nov-17 »
Well, HTML5 started a new client-side storage system based on two objects, sessionStorage and localStorage. The first exists for the duration of the session and the second exists without expiration. Like cookies, it only stores strings but it's as easy as the objects just being key/value collections.

Example:

Code: GLBasic [Select]
sessionStorage.start = new Date();
if(!localStorage.playerName) localStorage.playerName = "Ruidesco"

Etc.

MrTAToad

  • Guest
Re: HTML5 / JavaScript ist starting to get useful
« Reply #32 on: 2012-Nov-17 »
Looks like some new commands will be needed then!

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 908
  • 96A285CC
    • View Profile
    • my youtube channel
Re: HTML5 / JavaScript ist starting to get useful
« Reply #33 on: 2012-Nov-18 »
Could not create canvas - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLCanvasElement.getContext]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: file:///C:/DOKUME~1/niccy/LOKALE~1/Temp/Tempor%C3%A4res%20Verzeichnis%201%20f%C3%BCr%20_support(1).zip/_support.html :: <TOP_LEVEL> :: line 79"  data: no]
SDL_SetVideoMode seems to be 1
Screen BPP: 32
 :puke:

win xp / ff  last version 16.0.2

MrTAToad

  • Guest
Re: HTML5 / JavaScript ist starting to get useful
« Reply #34 on: 2012-Nov-18 »
Have you tried the things mentioned here : http://support.mozilla.org/en-US/questions/937842

MrTAToad

  • Guest
Re: HTML5 / JavaScript ist starting to get useful
« Reply #35 on: 2012-Nov-30 »
Will we be able to get rid of that initialisation text (or is that just output from the DEBUG command) ?

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: HTML5 / JavaScript ist starting to get useful
« Reply #36 on: 2012-Dec-14 »
You can change the HTML template website. At least, that's the plan. So you can hide the console.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10695
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: HTML5 / JavaScript ist starting to get useful
« Reply #37 on: 2013-Jan-16 »

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: HTML5 / JavaScript ist starting to get useful
« Reply #38 on: 2013-Jan-16 »
Now that's impressive, I can see where this is going now!  :good:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4144
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: HTML5 / JavaScript ist starting to get useful
« Reply #39 on: 2013-Jan-16 »
Nice :)
I came. I saw. I played.

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3365
  • Integrated Brain
    • View Profile
Re: HTML5 / JavaScript ist starting to get useful
« Reply #40 on: 2013-Jan-16 »
Yes Gernnot you put this example, but for me don't works when I press the full Screen...
But the Beta runs Html right now?¿, always when I try to compile in Html5 I always have troubles... I'm a bit confused how it's working fine...

Another quesion whit the Sdl2 whats will be better, the sounds?¿ for make effects?¿, and/or perhaps it's for running more quickly the code

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4179
    • View Profile
    • Portfolio
Re: HTML5 / JavaScript ist starting to get useful
« Reply #41 on: 2013-Jan-16 »
Great demo ho ho ho!
Works great on my chrome end.

We are in for great things this year! :booze:

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: HTML5 / JavaScript ist starting to get useful
« Reply #42 on: 2013-Jan-16 »
No Problems with fullscreen on firefox 18.
The general background is grey, but each letter has a black box around it (its not transparent!), is this intended?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3365
  • Integrated Brain
    • View Profile
Re: HTML5 / JavaScript ist starting to get useful
« Reply #43 on: 2013-Jan-16 »
I equal than kanonet, it's exactly the same...

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
Re: HTML5 / JavaScript ist starting to get useful
« Reply #44 on: 2013-Jan-16 »
how is the integration going? any eta?

Im no sure but the file size seems reduced, Im right?

eitherway great work!
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!