LzLoadQueue

Manages the loading of data and media at runtime.

The LzLoadQueue controls the queue of outbound data and media requests made by a running Laszlo app. The debugger also uses the LzLoadQueue to send requests for evaluation to the server.

<canvas height="100">
  <dataset name="weatherdata" queuerequests="true"
           ondata="status.update();content.display(this.getFirstChild())"
           src="http://www.laszlosystems.com/cgi-pub/weather.cgi"/>

  <simplelayout/>
  <button> Start Load 
    <attribute name="loadCount" value="10"/>
    <handler name="onclick">
      weatherdata.setQueryParam('zip', '940' + this.loadCount++);
      weatherdata.doRequest();
      status.update();
    </handler> 
  </button>

  <text resize="true" name="status" oninit="this.update()">
    <method name="update">
      var op = LzLoadQueue.openConx;
      this.setText("Open connections: " + op);
    </method>
  </text>
  <text width="480" name="content" oninit="this.display(null)">
    <method name="display" args="what">
      if (!what) var str = '';
      else {
        var str = what.nodeName;
        for (var k in what.attributes)
          str += ' ' + k + '="' + what.attributes[k] + '"'
      }
      this.setText("Data: " + str);
    </method>
  </text>
</canvas>
Attributes
Name Usage Type (Tag) Type (JS) Default Category
maxOpen JS only Number   readonly
  The maximum number of open connections the client can maintain. By default, this value is set to 2, since all compatible browsers support at least two connections. Although this value may be set through script, increasing the value may have undesirable results in browsers that can only handle two open connections.



Events
Name Description
onmousetrackout None
onmousetrackover None
onmousetrackup None