|
Hello!
This is my first post so hello to the ROR community
:)
I am implementing an online editor using the
prototype.js lib.
On one of the ajax.request calls I make something
weird happens. In the debugger I get this output:
===================
10:36:04:796 [DEBUG]
FileBrowser.onServiceResult > inResult = success
10:36:04:812 [DEBUG] FileBrowser.onServiceResult > inResult = exception | inRequest.responseText = undefined | inException = TypeError: this.inspect is not a function ===================
Now my inspect metod for this class looks very
simple and it didn't have conflicts in other classes:
inspect: function()
{ return 'FileBrowser'; }, So basically this debugging helper function causes
the exception in the onServiceResult method after a successfull
response.
In my Ajax.options I have:
onException : this.onServiceResult.bind(this,
'exception')
and inside onServiceResult the switch looks like this:
switch(inResult){
case 'success': ... break; case '404': ... break; case 'failure': ... break; case 'exception': ... break; default: ... break; } I used jsLint to clean the code and
right now I'm clueless so any hint would be hugely appreciated.
Thank you
-------------------------------------------------------------------------------------------
Cosmin Cimpoi Web Developer Team Technology (OT) ------------------------------------------------------------------------------------------- monogroup Srl piata unirii nr 4-5 400013, Cluj-Napoca, Romania tel. (+40) 264594667
fax. (+40) 264594667 mail. [EMAIL PROTECTED] www.monogroup.ro ------------------------------------------------------------------------------------------- This message is confidential and intended solely for the use by the addressee. Any use of this message by a third party is prohibited. If you received this message in error, please contact the sender and delete the data from any computer and data carrier. |
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
