[Laszlo-dev] Dataset SRC attribute can not be set
Lucas Lain
lucas.lain at gmail.com
Thu Jan 21 19:14:32 PST 2010
Please see both attached files.
The perms.doRequest is called from the view inside play_button.
I'm using OL 4.7. The file is compiled to SWF9.
On Fri, Jan 22, 2010 at 1:04 AM, Henry Minsky <henry.minsky at gmail.com>wrote:
> Where do you actually call the doRequest() method on the dataset? Do you
> call it manually?
>
> If the dataset is set to make the request automatically, e.g., (the
> 'request' attribute == true) then
> the request might get made before the constraint updates.
>
> Also, what runtime are you using?
>
>
>
>
>
> On Thu, Jan 21, 2010 at 9:48 PM, Lucas Lain <lucas.lain at gmail.com> wrote:
>
>> Hello Everybody,
>>
>> I'm trying to set a dataset url dynamically. The thing is that the dataset
>> actually connects to the default data_url specified by default
>> ("/xml/request_key") and not the dynamic one ("/xml/request_key/" +
>> canvas.profile).
>>
>> When I check the value in the debug console, the value is set to the
>> second, but actually connects to the first one.
>>
>> When the oninit method is executed? after processing all ${} values?
>>
>> Thanks in advance!
>>
>> code:
>>
>> <canvas proxied="false" oninit="canvas.sprite.setBGColor(null);"
>> debug="true">
>>
>> <attribute name="profile" type="string" value=""/>
>> <attribute name="data_url" type="string" value="/xml/request_key/"/>
>>
>> <handler name="oninit">
>> canvas.profile = lz.Browser.getInitArg('profile');
>> if(canvas.profile) {
>> canvas.setAttribute('data_url','/xml/request_key/' +
>> canvas.profile);
>> }
>> </handler>
>>
>> <dataset id="perms"
>> name="perms"
>> type="http"
>> src="${canvas.data_url}"
>> />
>>
>> ...
>>
>> --
>> Lucas
>>
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
>
>
--
Lucas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100121/db583c6f/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: player.lzx
Type: application/octet-stream
Size: 2278 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100121/db583c6f/player-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: play_button.lzx
Type: application/octet-stream
Size: 965 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100121/db583c6f/play_button-0001.obj
More information about the Laszlo-dev
mailing list