Antun’s Blog

Notes on OpenLaszlo, LZX and Rich Internet Application Development

Antun’s Blog header image 4

Entries Tagged as 'LZX Tips'

Raw POST Data from OpenLaszlo Datasets

April 7th, 2009 · No Comments

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

Why I should RTFM

March 16th, 2009 · No Comments

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

Where Have All the Colors Gone?

March 12th, 2009 · 5 Comments

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