Thanks very much, works fine.
Cheers
Chris
Search found 5 matches
- Sun May 25, 2025 6:00 am
- Forum: Coding Questions
- Topic: Pass array to inline Javascript
- Replies: 5
- Views: 7742
- Sat May 24, 2025 7:13 pm
- Forum: Coding Questions
- Topic: Pass array to inline Javascript
- Replies: 5
- Views: 7742
Pass array to inline Javascript
Hi,
I wonder if it is possible to pass an array to inline Javascript?
This does not work (v_array is undefined):
Cheers
Chris
I wonder if it is possible to pass an array to inline Javascript?
This does not work (v_array is undefined):
Code: Select all
Dim Array(1)
Array(0)=1
Array(1)=2
Debug Array(0)
Debug Array(1)
EnableJS
v_array[0]=3;
DisableJS
Debug Array(0)
Debug Array(1)
Chris
- Sun May 18, 2025 6:51 pm
- Forum: Coding Questions
- Topic: Webserial API with Chrome (serial port access)
- Replies: 4
- Views: 5073
Re: Webserial API with Chrome (serial port access)
Hi,
below is my code for those who are interested (some changes to the original code).
I send a command to a sensor (GetTemperature!), wait for answer and display
the results.
SerialAPI.sbi
Global SerialInputDataStream.s= ""
Global portopen=0
Global serialsupport=1
Procedure OpenSerialPort ...
below is my code for those who are interested (some changes to the original code).
I send a command to a sensor (GetTemperature!), wait for answer and display
the results.
SerialAPI.sbi
Global SerialInputDataStream.s= ""
Global portopen=0
Global serialsupport=1
Procedure OpenSerialPort ...
- Sun May 18, 2025 9:09 am
- Forum: Coding Questions
- Topic: Webserial API with Chrome (serial port access)
- Replies: 4
- Views: 5073
Re: Webserial API with Chrome (serial port access)
Great, thanks a lot, works very well.
Cheers
Chris
Cheers
Chris
- Sat May 17, 2025 5:19 pm
- Forum: Coding Questions
- Topic: Webserial API with Chrome (serial port access)
- Replies: 4
- Views: 5073
Webserial API with Chrome (serial port access)
Hi,
I wonder if there is a worked out example for serial port access with the Webserial API for Chrome? This would be very hepful for creating tools to configure devices with serial port like microcontrollers via Web interface. Any help very much appreciated.
Best regards
Chris
I wonder if there is a worked out example for serial port access with the Webserial API for Chrome? This would be very hepful for creating tools to configure devices with serial port like microcontrollers via Web interface. Any help very much appreciated.
Best regards
Chris