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