Recent posts

#1
GLBasic - en / Re: HTML5 improvements
Last post by Qedo - Yesterday at 20:24
for my app (server-client) I will change (sigh) to Js and node.js
#2
GLBasic - en / Re: HTML5 improvements
Last post by Qedo - Yesterday at 20:12
for me impassable road nothing works.  Thanks anyway
#3
GLBasic - en / Re: HTML5 improvements
Last post by Paul Smith - Yesterday at 11:18
I can't seem to use strings. This won't compile 
}, url$);  or {, url_Str);
The version I was supposed to show was  }); that just opens a new tab. It does compile but just a blank page.

This code does work and will open the correct page, strange thing is the // shows as comments after the https: but compiles fine.

INLINE
        EM_ASM({
       window.open('https://www.glbasic.com', '_blank');
    });
   ENDINLINE

Hope this helps
#4
GLBasic - en / Re: HTML5 improvements
Last post by Qedo - Yesterday at 2:26
Paul, but can you compile these 2 examples in html5?
stop compiling because;

"fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated."
#6
GLBasic - en / Re: HTML5 improvements
Last post by Kitty Hello - 2024-Oct-02
it's url_Str. The $ is replaced by _Str in C++.
#7
Announcements / ALIEN TEXT EDITOR
Last post by MrPlow - 2024-Oct-01
Hi
I am trying to create a retro ALIEN style MOTHER text editor...
I plan to add others to it...
War Games and others...

Just for fun for now :)

Currently my editor mode is a mainly char replace - and fills a page with spaces so that it allows user to place text anywhere without a new to tab or space to the cell location.

Just trying to think of good uses - I think a level designer and film script editor might work well in this way...
??!

Once I have a half-demo I will upload...


#8
GLBasic - en / Re: HTML5 improvements
Last post by Paul Smith - 2024-Sep-30
Not used that command, but others like NETWEBEND dont work.

I've been short on time this month and was looking into using alternative inline for NETWEBEND. I have two methods that need Ironing out. This code is from a google search. And needs formatting correctly.

    INLINE
    #include <emscripten.h>
    emscripten_run_script("window.open(\"" + url$ + "\", \"_blank\");");
    ENDINLINE

the other is

INLINE
    #include <emscripten.h>

    EM_ASM_({
        window.open(url, '_blank');  // Open the URL in a new tab
    }, url$);
   
    ENDINLINE

Not tried the first one but the second one opens a page, just not the right link.  :D
Hopefully someone smarter than me will fix this is seconds.


#9
I'm a little bit late, but is the party still rolling? All The Best for GLB and our community :)
btw. 20+ years, a lot of time, it means that GLB is an adult :D
#10
GLBasic - en / Re: HTML5 improvements
Last post by Qedo - 2024-Sep-29
GLOBAL a$  = NETWEBGET$("jsonplaceholder.typicode.com","/users?_limit=3",80,2048, 5000)

any idea because in GLBasic  work and in HTML5 no?  bug?