Add javascript and CSS scripts in the compilation options.

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
falsam
Posts: 286
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Add javascript and CSS scripts in the compilation options.

Post by falsam »

Hello.
The LoadScript() function does not work with some Javascript scripts.

For example, this code returns the message “BABYLON is not defined”.

Code: Select all

Declare Start()

Procedure Start()      
  !if (BABYLON.Engine.isSupported()) {
  !} 
EndProcedure 

LoadScript("https://cdn.babylonjs.com/babylon.js", @Start())
I'd like to be able to add one or more javascript and CSS scripts in the compilation options. These files would be implemented correctly between the <header> tags.

I think these are also the wishes of other SpiderBasic coders.

Thank you in advance for this new feature 😉

➽ Windows 11 - jdk-11.0.2 - SB 3.00 - Android 15
https://falsam.com

Sorry for my poor english
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Add javascript and CSS scripts in the compilation options.

Post by Peter »

falsam wrote: Tue Mar 25, 2025 8:53 amI'd like to be able to add one or more javascript and CSS scripts in the compilation options. These files would be implemented correctly between the <header> tags.
+1

That would be very useful indeed!
User avatar
Caronte3D
Posts: 187
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Add javascript and CSS scripts in the compilation options.

Post by Caronte3D »

+1
Quin
Posts: 118
Joined: Wed Nov 08, 2023 4:38 pm

Re: Add javascript and CSS scripts in the compilation options.

Post by Quin »

+1
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Add javascript and CSS scripts in the compilation options.

Post by Fred »

A compiler directive should be enough for this, like 'IncludeScript' or 'IncludeHeaderScript'
Post Reply