I think the problem is in the order of execution. <div><br></div><div>I read that is not clear when oninit event handler is not clear when is executed. </div><div><br></div><div>Any thoughts?</div><div><br></div><div>Best.</div>
<div><br></div><div>L.</div><div><br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 1:14 AM, Lucas Lain <span dir="ltr"><<a href="mailto:lucas.lain@gmail.com">lucas.lain@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Please see both attached files. <div><br></div><div>The perms.doRequest is called from the view inside play_button.</div><div><br></div><div>I'm using OL 4.7. The file is compiled to SWF9. </div><div><div><div></div><div class="h5">
<br><br><div class="gmail_quote">
On Fri, Jan 22, 2010 at 1:04 AM, Henry Minsky <span dir="ltr"><<a href="mailto:henry.minsky@gmail.com" target="_blank">henry.minsky@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Where do you actually call the doRequest() method on the dataset? Do you<br>call it manually?<br><br>If the dataset is set to make the request automatically, e.g., (the 'request' attribute == true) then<br>the request might get made before the constraint updates. <br>
<br>Also, what runtime are you using? <br><div><div></div><div><br><br><br><br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:48 PM, Lucas Lain <span dir="ltr"><<a href="mailto:lucas.lain@gmail.com" target="_blank">lucas.lain@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><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><font color="#888888">Lucas<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br>
<br><br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br>Lucas<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Lucas<br>
</div>