<div>Hello Everybody, </div><div><br></div><div>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).</div>
<div><br></div><div>When I check the value in the debug console, the value is set to the second, but actually connects to the first one. </div><div><br></div><div>When the oninit method is executed? after processing all ${} values? </div>
<div><br></div><div>Thanks in advance!</div><div><br></div><div>code:</div><div><br></div><div><canvas proxied="false" oninit="canvas.sprite.setBGColor(null);" debug="true"></div><div><br>
</div><div> <attribute name="profile" type="string" value=""/></div><div> <attribute name="data_url" type="string" value="/xml/request_key/"/></div>
<div><br></div><div> <handler name="oninit"></div><div> canvas.profile = lz.Browser.getInitArg('profile');</div><div> if(canvas.profile) {</div><div> canvas.setAttribute('data_url','/xml/request_key/' + canvas.profile);</div>
<div> }</div><div> </handler> </div><div><br></div><div><div> <dataset id="perms"</div><div> name="perms"</div><div> type="http"</div><div> src="${canvas.data_url}"</div>
<div> /></div><div><br></div><div>...</div></div><br>-- <br>Lucas<br>