locked
Where do I find the ddefs_####.js file? RRS feed

  • Question

  • Doloto seems to have created several files sc_###_2-5.js and it edited the js files and the html for me, but each of the now stubbed files refers to ddefs_###.js which it did NOT create, and I don't seem to find anywhere on my machine.

    Just fyi, this is an ExtJs 2.1 application...

    Thanks,
    Ben

    PS - Great concept!
    Friday, September 18, 2009 9:02 PM

All replies

  • This is odd. Could you show us the HTML files referring to ddefs_####.js files you're mentioning? We haven't seen that happen before.

    -Ben
    Tuesday, September 22, 2009 4:24 AM
  • Ben -

    Here is the code from a re-written js file...

    if ( !window.$xd ) {
                                var $x;
                                if (window.XMLHttpRequest) {
                                    $x = new XMLHttpRequest();
                                }
                                else if( window.ActiveXObject) {
                                    $x = new ActiveXObject("Microsoft.XMLHTTP");
                                }
                                $x.open("GET","http://localhost/Portal/js/doloto/ddefs_51600970.js",false);
                                $x.send(null);
                                eval($x.responseText);
                             }var CodeMirrorConfig = window.CodeMirrorConfig || {}; 
    var CodeMirror = (				function () {
    					var _d$r1312, _d$r1313, _d$r1314, _d$r1315, _d$r1316, _d$r1317, _d$r1318, _d$r1319, _d$r1320, _d$r1322; 
    					eval($xd("CodeMirror","place,options","-6088317984068075520:102:3","4",1309));
    					eval($xd("applyLineNumbers","frame","-6088317984068075520:76:3","4",1306));
    					eval($xd("wrapLineNumberDiv","place","-6088317984068075520:54:3","4",1304));
    					eval($xd("forEach","array,action","-6088317984068075520:20:3","4",1303));
    										function setDefaults(object,defaults) {
    						for(  var option in defaults) 
    						{ 
    								if (!object.hasOwnProperty(option)) 
    									object[option] = defaults[option];
    							}
    
    						
    											}
    
    
    					setDefaults(CodeMirrorConfig,{stylesheet:"",
    path:"",
    parserfile:[],
    basefiles:["util.js","stringstream.js","select.js","undo.js","editor.js","tokenize.js"],
    passDelay:200,
    passTime:50,
    continuousScanning:false,
    saveFunction:null,
    onChange:null,
    undoDepth:50,
    undoDelay:800,
    disableSpellcheck:true,
    textWrapping:true,
    readOnly:false,
    width:"100%",
    height:"300px",
    autoMatchParens:false,
    parserConfig:null,
    tabMode:"indent",
    activeTokens:null,
    cursorActivity:null,
    lineNumbers:false,
    indentUnit:2});
    					CodeMirror.prototype = {init:(eval($xe("","","-6088317984068075520:155:11","4",1312))),
    getCode:									function () {
    										return this.editor.getCode(); 
    
    																			}
    
    ,
    setCode:									function (code) {
    										this.editor.importCode(code);
    																			}
    
    ,
    selection:									function () {
    										return this.editor.selectedText(); 
    
    																			}
    
    ,
    reindent:									function () {
    										this.editor.reindent();
    																			}
    
    ,
    reindentSelection:									function () {
    										this.editor.reindentSelection(null);
    																			}
    
    ,
    focus:(eval($xe("","","-6088317984068075520:166:12","4",1313))),
    replaceSelection:(eval($xe("","text","-6088317984068075520:171:23","4",1314))),
    replaceChars:									function (text,start,end) {
    										this.editor.replaceChars(text,start,end);
    																			}
    
    ,
    getSearchCursor:									function (string,fromCursor) {
    										return this.editor.getSearchCursor(string,fromCursor); 
    
    																			}
    
    ,
    undo:									function () {
    										this.editor.history.undo();
    																			}
    
    ,
    redo:									function () {
    										this.editor.history.redo();
    																			}
    
    ,
    historySize:									function () {
    										return this.editor.history.historySize(); 
    
    																			}
    
    ,
    clearHistory:									function () {
    										this.editor.history.clear();
    																			}
    
    ,
    grabKeys:									function (callback,filter) {
    										this.editor.grabKeys(callback,filter);
    																			}
    
    ,
    ungrabKeys:									function () {
    										this.editor.ungrabKeys();
    																			}
    
    ,
    setParser:									function (name) {
    										this.editor.setParser(name);
    																			}
    
    ,
    cursorPosition:(eval($xe("","start","-6088317984068075520:193:21","4",1315))),
    firstLine:									function () {
    										return this.editor.firstLine(); 
    
    																			}
    
    ,
    lastLine:									function () {
    										return this.editor.lastLine(); 
    
    																			}
    
    ,
    nextLine:									function (line) {
    										return this.editor.nextLine(line); 
    
    																			}
    
    ,
    prevLine:									function (line) {
    										return this.editor.prevLine(line); 
    
    																			}
    
    ,
    lineContent:									function (line) {
    										return this.editor.lineContent(line); 
    
    																			}
    
    ,
    setLineContent:									function (line,content) {
    										this.editor.setLineContent(line,content);
    																			}
    
    ,
    insertIntoLine:									function (line,position,content) {
    										this.editor.insertIntoLine(line,position,content);
    																			}
    
    ,
    selectLines:(eval($xe("","startLine,startOffset,endLine,endOffset","-6088317984068075520:204:18","4",1316))),
    nthLine:(eval($xe("","n","-6088317984068075520:208:14","4",1317))),
    lineNumber:(eval($xe("","line","-6088317984068075520:214:17","4",1318))),
    jumpToLine:									function (n) {
    										this.selectLines(this.nthLine(n),0);
    										this.win.focus();
    																			}
    
    ,
    currentLine:									function () {
    										return this.lineNumber(this.cursorPosition().line); 
    
    																			}
    
    };
    					CodeMirror.InvalidLineHandle = {toString:									function () {
    										return "CodeMirror.InvalidLineHandle"; 
    
    																			}
    
    };
    					CodeMirror.replace = (eval($xe("","element","-6088317984068075520:235:24","4",1319)));
    					CodeMirror.fromTextArea = (eval($xe("","area,options","-6088317984068075520:243:29","4",1320)));
    					CodeMirror.isProbablySupported = (eval($xe("","","-6088317984068075520:276:36","4",1322)));
    					return CodeMirror; 
    
    									}
    
    )(); 
    
    Tuesday, September 22, 2009 5:34 PM
  • I see what you mean. 

                                $x.open("GET","http://localhost/Portal/js/doloto/ddefs_51600970.js",false);
    
    is completely odd. Does it help when you change that line to point to the actual cluster file (http://localhost/Portal/js/doloto/sc_1, etc.) I'll have a look at the code to see what might be behind this.

    -Ben
    Thursday, September 24, 2009 9:39 PM
  • Ben -

    I'm not sure which cluster file to point it at?

    Ben
    Thursday, September 24, 2009 10:19 PM
  • Hi,

    I too have the same problem.

    The rewritten JS files have the URL as  $x.open("GET","http://localhost/ddefs_44658638.js",false); what's wrong ?

    Moreover i have various doubts regarding using the rewritten files.

    1. I understood that the Translated directory will have the original html and js files.
    2. Which are the files that i should use from the rewritten directory ?
    e.g.,
    say i have a test.js which will have ~100 functions. Assume only 25 are required for the initial download.
    the rewritten directory will have the 25 functions in the name of http---test.com-scripts-test.js-1001.
    now which file should i use for the remaining functions. is that sc_*.js ?

    Your help will be highly appreciated ?

    Thanks,
    PreePablo.
    Monday, October 5, 2009 10:19 AM
  • +1 on the ddefs_*.js issue.

    Any word on a resolution?


    Alan Ridlehoover
    Enterprise Architect
    Symetra Financial
    Tuesday, November 3, 2009 1:14 AM
  • Hi,

    We figured out what was going on with the ddefs_*.js issue and were able to fix it.  The fix will be in our next release, in about 2 weeks.

    Thanks for your patience!

    Emre
    Sunday, November 8, 2009 11:56 PM
    Moderator
  • Hi, 

    It's been two weeks.  Just checking in to see where things stand.  We're still very interested in the tool.

    Thanks,
    Alan

    Alan Ridlehoover Enterprise Architect Symetra Financial
    Tuesday, November 24, 2009 4:07 PM
  • We have a new release that should go out sometime mid-week, I am hoping.

    -Ben
    Tuesday, December 1, 2009 3:20 AM