Error after calling render() on a webPart object | Leo Dashevskiy | 2012-07-02 16:20 | |||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||
Uncaught SyntaxError: Unexpected token < ext-all-debug.js:4934 (anonymous function) ext-all-debug.js:4934 loadAjaxContent Utils.js:1105 renderPart WebPart.js:168 Ext.extend.handleResponse ext-all-debug.js:4643 handleTransactionResponse ext-base-debug.js:1888 checkResponse ext-base-debug.js:1936 (anonymous function) In line 168 of WebPart.js LABKEY.Utils.loadAjaxContent(response, targetElem, _success, _scope): targetElem is an existing <div> in the DOM hard-coded in the HTML file and response is an object with some attributes like status: 200 statusText: OK responseText: <table class="labkey-output"><tr><td><pre>File already exists, no need to recreate it! </pre></td></tr></table><br/> which is what I'm after: my R code is if ( true ) txt <- "File already exists, no need to recreate it!"; write(txt, file="${txtout:textOutput}"); So what is the issue/problem here? Is the Ext.util.JSON.decode() method not liking the <br/> piece at the end? It was working before for me... Recently I upgraded the server from 12.1 to 12.2 Thanks. -Leo |
|||||||||||||||||||||||
| |||||||||||||||||||||||