Results 1 to 2 of 2

Threaded View

  1. #1

    Question Javascript example needed: func to sub and unsub to an item + func called on new data

    Hi,

    I´m new to LS, so far it looks very exiting. Having completed the hallo world, I have the below very basic requests, as I prefer to put all in black-box functions with input and output:

    All using a 2 dimensional array. The array can be of fixed size, ie 100 rows with 4 columns.

    0) A function or code snippet which initiates LS;


    1) A function or code snippet which subscribes to a parameter ( a new row in the 2D array ), for example called with;
    function Subscribe( item_name, row,column);

    2) A function or code snippet which is called each time a value in the array has changed / a new value has been received, for example called with;
    function OnReceive( row,column);

    This is very much appreciated.
    Last edited by JanA; August 4th, 2013 at 12:39 PM.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:45 PM.