Did the following.  The ONLY alert being triggered is the final one, so 
nothing in the if/else statement is evaluting to true.  The final one says 
"data: undefined"
 
function getData() {
    if (window.ace_editor) {
  alert("ace");
        var data = window.ace_editor.getSession().getValue();
    } else if (window.mirror) {
  alert("mirror");
 var data = window.mirror.getValue();
    } else if (window.eamy) {
  alert("eamy");
 var data = window.eamy.instances[0].getText();
    } else if (window.textarea) {
  alert("textarea");
 var data = textarea.value;
    }
 alert("data: " + data);
    return data;
}

On Wednesday, September 26, 2012 1:56:18 PM UTC-7, Massimo Di Pierro wrote:

> When you click save the the function doClickSave 
> in applications/admin/static/js/ajax_editor.js is called. Is loads the data 
> (text to be saved) and make an ajax POST to save it. The text is computed 
> in line 29 in the function getData(). I suspect this function is returning 
> "undefined".  
>
> Perhaps you can help us understand why by inserting some alert(...); 
> statements.
>
> On Wednesday, 26 September 2012 15:47:58 UTC-5, chicks wrote: 
>>
>> I'm using the embedded Rocket server.  Will try another clean install and 
>> see what happens.  Thanks for the super quick responses on this!  Amazing...
>>
>> On Wednesday, September 26, 2012 1:22:26 PM UTC-7, LightDot wrote:
>>
>>> I just did a quick test using IE9 on Windows 7 and I can't reproduce. I 
>>> was editing the source on Scientific Linux 6.3 / Apache, I don't have a 
>>> Solaris machine available. I did not do an upgrade from 1.99.x to 2.x.x, 
>>> though, I'm using the latest trunk.
>>>
>>> @chicks: could you perhaps make a separate, clean 2.0.9 install on the 
>>> same Solaris server and try to reproduce? I'm guessing the editing side 
>>> (win7, IE9) doesn't really matter here, but it's a bit early to say... Are 
>>> you using the embedded Rocket server to run web2py, or perhaps Apache, 
>>> or...?
>>>
>>> Regards,
>>> Ales
>>>
>>>
>>> On Wednesday, September 26, 2012 9:27:28 PM UTC+2, Massimo Di Pierro 
>>> wrote: 
>>>>
>>>> Can anybody else reproduce this? I do not have IE9 nor Win7.
>>>>
>>>> On Wednesday, 26 September 2012 12:34:18 UTC-5, chicks wrote: 
>>>>>
>>>>> Just restarted the browser (IE9 on Win7), cleared the cache, still 
>>>>> wipes out the source files upon edit/save.  Reverting back to 1.99 for 
>>>>> now...
>>>>>
>>>>> On Wednesday, September 26, 2012 10:24:38 AM UTC-7, Massimo Di Pierro 
>>>>> wrote:
>>>>>
>>>>>> Is it possible your browser was caching the old js libraries with the 
>>>>>> new admin? 
>>>>>> If not, what browser are you using?
>>>>>>
>>>>>> massimo
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wednesday, 26 September 2012 11:29:50 UTC-5, chicks wrote: 
>>>>>>>
>>>>>>> Updated from 1.99 to 2.09 yesterday.  Everything looked fine until 
>>>>>>> started editing via the web GUI.  Every edit overwrites the edited file 
>>>>>>> with "undefined" when saved.  Reverting back to 1.99.  Anyone else 
>>>>>>> seeing 
>>>>>>> this issue?  Running on Solaris, Python 2.7.
>>>>>>
>>>>>>

-- 



Reply via email to