Entries Tagged as 'LZX Tips'
There are three practical ways to get data from a browser client to a web service:
Query string parameters in a GET or a POST request.
POST parameters.
Raw POST data.
The first two are fairly straightforward: A query string is the part of the URL that comes after the question mark. Post parameters (as name/value pairs) can be [...]
[Read more →]
Tags: LZX Tips · OpenLaszlo
A few days ago, I wrote about how to access the named colors in OpenLaszlo 4.2.0. (Where Have All the Colors Gone?) I even wrote a little example showcasing the colors in the lz.colors array. Then Tucker helpfully directed me to a very complete example in the documentation that showed not only the location of [...]
[Read more →]
Tags: LZX Tips · OpenLaszlo
In OpenLaszlo you’ve always been able to specify colors in a variety of ways. In tags, you could use named colors, JavaScript hexadecimal notation and pound (hex) notation:
<view bgcolor=”red” width=”20″ height=”20″ />
<view bgcolor=”0xff0000″ width=”20″ height=”20″ />
<view bgcolor=”#ff0000″ width=”20″ height=”20″ />
In JavaScript, you could use either the hex notation or the named color:
myview.setAttribute(”bgcolor”, 0xff0000);
myview.setAttribute(”bgcolor”, red);
Note that [...]
[Read more →]
Tags: LZX Tips · OpenLaszlo