On Mon, Mar 8, 2010 at 09:17, Qoodary Doo <[email protected]> wrote:
>
> var form = this.setUserData("form", form) = new
> firstQxApp.UploadForm('uploadFrm','/uploads/upload.php');
>
>
> and
>
> var response = this.getUserData("form").getIframeHtmlContent();
>
> But know after generate.py source and build I will get this error:
>
> invalid assignment left-hand side
> var form = this.setUserData("for...('uploadFrm','/uploads/upload.php');
>
>
All right. I had recalled that setUserData() returned its argument, but I
guess not. Split that into two separate statements:
var form = new firstQxApp.UploadForm('uploadFrm','/uploads/upload.php');
this.setUserData("form", form);
BUT, let us make it easier for testing:
> I now tried to call the "getTableData" function in the addListener.
>
> form.addListener('completed',function(e) {
> this.getTableData();
> }, this);
>
> In the FB Console I can see the result which seems ok.
> But the function run in an exception.
>
> Error while receiving table data: TypeError this.tableModel is undefined
>
That's true, it is. :-) You never assigned anything to this.tableModel. You
had assigned to "var tableModel=..." which is very different. That makes
tableModel a local variable that is unassociated with any particular object.
Derrell
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel