View Full Version : in ajax call requestcomplete callback , tab.load w/ script:true won't compile

22 Jul 2010, 5:33 PM
HI Folks,
I use tab.load to download dynamically generated javascript to build the tab contents and load the data.

I do this in various places and it works fine, except when the tab.load is called from within a

When I do this, I get a syntax error in the first line of code within the constructor definition.

This exact same code works fine when I load it elsewhere
If the loaded javascript doesn't contain the function definition, it runs fine (e.g. 20 lines of console.log('foo');)

I'm really at a loss and was wondering if anyone else had seen this problem and resolved it?


22 Jul 2010, 8:30 PM
Please post your code (in CODE tags), hard to help without seeing it. Also post the server response of your ajax request.