Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    28
    Vote Rating
    0
    dmayer is on a distinguished road

      0  

    Default JSBuilder - Javascript Error Part 2

    JSBuilder - Javascript Error Part 2


    After trying to do a build of all of the yui-ext files with JSBuilder I get the following error from firefox:

    YAHOO.ext.util has no properties yui-ext-debug.js (line 88),

    Line 88: YAHOO.ext.util.Browser = new function(){

    Here is the build order I am using for yui-ext-debug.js:

    source\Element.js
    source\CompositeElement.js
    source\DomHelper.js
    source\EventManager.js
    source\UpdateManager.js
    source\CSS.js
    source\JSON.js
    source\Date.js
    source\MixedCollection.js
    source\State.js
    source\Bench.js
    source\anim\Actor.js
    source\anim\Animator.js
    source\widgets\SplitBar.js
    source\widgets\TabPanel.js
    source\widgets\Toolbar.js
    source\widgets\Resizable.js
    source\widgets\BasicDialog.js
    source\widgets\DatePicker.js
    source\widgets\TemplateView.js
    source\grid\Grid.js
    source\grid\GridView.js
    source\grid\AbstractColumnModel.js
    source\grid\DefaultColumnModel.js
    source\data\AbstractDataModel.js
    source\data\DefaultDataModel.js
    source\grid\SelectionModel.js
    source\grid\PagedGridView.js
    source\grid\GridDD.js
    source\grid\EditorGrid.js
    source\grid\EditorSelectionModel.js"
    source\grid\editor\CellEditor.js"
    source\grid\editor\CheckboxEditor.js"
    source\grid\editor\DateEditor.js"
    source\grid\editor\NumberEditor.js"
    source\grid\editor\SelectEditor.js"
    source\grid\editor\TextEditor.js"
    source\data\LoadableDataModel.js"
    source\data\JSONDataModel.js"
    source\data\XMLDataModel.js"
    source\layout\LayoutManager.js"
    source\layout\BorderLayout.js"
    source\layout\LayoutRegion.js"
    source\layout\SplitLayoutRegion.js"
    source\layout\BorderLayoutRegions.js"
    source\layout\ContentPanels.js"
    source\layout\LayoutStateManager.js"

    Does anyone have a clue why I am getting this error?

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Just to clarify, we are still talking about trying to build all of this to a single build target, correct?

    Right off the bat, if you look in the docs, YAHOO.ext.util is defined in yutil.cs (http://www.yui-ext.com/deploy/yui-ex...l.Browser.html). Looking at your list, that file does not seem to be included.

    Since you are trying to build most, if not all, of yui-ext, I would take a look at the JSB project file that Jack actually uses to do his releases. It includes all the files he builds, plus all of his various build targets with the source order he uses. You may have to change paths depending on how you have stuff set up, but the build target file orders should work no problem if you follow his lead.

    http://yui-ext.googlecode.com/svn/trunk/src/yui-ext.jsb

    Let me know if that still doesn't solve it for you.

    Brian

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    28
    Vote Rating
    0
    dmayer is on a distinguished road

      0  

    Default


    I used the jsb file that Jack put in the yui-ext svn and built a complete yui-ext.js file. When I use the yui-ext file in my web page I still get the same error from Firefox.

    I didnt get this error when I used 33 RC1.

    Here is the build order of the source files:

    source\yutil.js
    source\MixedCollection.js
    source\JSON.js
    source\CSS.js
    source\Bench.js
    source\DomHelper.js
    source\Element.js
    source\CompositeElement.js
    source\State.js
    source\EventManager.js
    source\UpdateManager.js
    source\Date.js
    source\widgets\TabPanel.js
    source\anim\Actor.js
    source\anim\Animator.js
    source\widgets\Toolbar.js
    source\widgets\Resizable.js
    source\widgets\SplitBar.js
    source\grid\Grid.js
    source\grid\GridDD.js
    source\grid\GridView.js
    source\grid\PagedGridView.js
    source\grid\EditorGrid.js
    source\grid\AbstractColumnModel.js
    source\grid\DefaultColumnModel.js
    source\data\AbstractDataModel.js
    source\data\DefaultDataModel.js
    source\data\LoadableDataModel.js
    source\data\XMLDataModel.js
    source\data\JSONDataModel.js
    source\grid\SelectionModel.js
    source\grid\EditorSelectionModel.js
    source\grid\editor\CellEditor.js
    source\grid\editor\CheckboxEditor.js
    source\grid\editor\DateEditor.js
    source\grid\editor\NumberEditor.js
    source\widgets\DatePicker.js
    source\grid\editor\SelectEditor.js
    source\grid\editor\TextEditor.js
    source\layout\LayoutManager.js
    source\layout\LayoutRegion.js
    source\layout\SplitLayoutRegion.js
    source\layout\BorderLayout.js
    source\layout\BorderLayoutRegions.js
    source\layout\ContentPanels.js
    source\layout\LayoutStateManager.js
    source\widgets\BasicDialog.js
    source\widgets\TemplateView.js

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    Doesn't yutil.js have to be after EventManager since it refers to YAHOO.util.Event?

    Have you pulled the latest from SVN - the order looks different than what you have.

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    28
    Vote Rating
    0
    dmayer is on a distinguished road

      0  

    Default


    I just clicked on the following link:
    http://yui-ext.googlecode.com/svn/trunk/src/yui-ext.jsb

    and i went down to line 92. This is the target tag with the name yui-ext.js.

    If you look at line 93, the include tag shows yutil.js before the EventManager.js (line 102).

    Are you seeing something else?

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    The build order you listed is correct. I just now reinstalled JSB fresh from the downloaded .zip, set up a fresh JSB project, created a build target including all of .33 RC3, reordered it to exactly match what you have listed, built it and dropped it into an existing working project that I have. Everything works fine.

    I actually did have the same error you listed initially -- until I realized that I had named the file I built incorrectly and my existing script include tag was no longer valid :oops:. Once I renamed the file, everything worked perfectly. Please double-check your file name and your script references. Also, silly question, but... have you tried swapping out your custom file with the release version of yui-ext-debug.js that comes with the download to make sure the issue is not in your code?

    If all else still fails, please post a link or some sample code if possible that reproducse the issue. Your build script looks correct, and I cannot see anything wrong on my side.

  7. #7
    Ext User
    Join Date
    Mar 2007
    Posts
    28
    Vote Rating
    0
    dmayer is on a distinguished road

      0  

    Default


    I checked the filenames and the script tags and it checks out. Here is js code that I am using on my page:

    Code:
    	DataMapLayout = function(){
    	        var layout;
    	        var grid;
    	        var gridDataModel;
    	        var datamapPanel;
    	        var addBtn;
    	        var dialog;
    	        return {
    	            init : function(){
    	               
    	               
    	               layout = new YAHOO.ext.BorderLayout(document.body, {
    	                    hideOnLayout: true,
    	                    north: {
    	                        split:false,
    	                        initialSize: 25,
    	                        titlebar: false
    	                    },
    	                    west: {
    	                        split:true,
    	                        autoScroll:true,
    	                        initialSize: 125,
    	                        minSize: 125,
    	                        maxSize: 400,
    	                        titlebar: true,
    	                        collapsible: true
    	                    },
    	                    east: {
    	                        split:true,
    	                        initialSize: 155,
    	                        minSize: 155,
    	                        maxSize: 400,
    	                        titlebar: true,
    	                        collapsible: true	                        
    	                    },
    	                    south: {
    	                        split:true,
    	                        initialSize: 100,
    	                        minSize: 100,
    	                        maxSize: 200,
    	                        titlebar: true,
    	                        collapsible: true
    	                    },
    	                    center: {
                        		titlebar: false,
                        		autoScroll:false,
                        		tabPosition: 'top',
                        		closeOnTab: true,
                        		alwaysShowTabs: true
    	                    }
    	                });
                // tell the layout not to perform layouts until we're done adding everything
                layout.beginUpdate();
                layout.add('north', new YAHOO.ext.ContentPanel('header'));
                
                // initialize the statusbar
                // create the add note toolbar
                var notetb = new YAHOO.ext.ContentPanel('add-note', 
                                {fitToFrame:true, adjustments:[-6, 0], resizeEl:'header'})
                
                southPanel = new YAHOO.ext.ContentPanel('datamapnotes', {title: 'Field - Data Mapping Notes', toolbar: notetb});
                //southPanel = new YAHOO.ext.ContentPanel('datamapnotes', {title: 'Field - Data Mapping Notes'});
                south = layout.getRegion('south');
                south.add(southPanel);
    
                layout.add('west', new YAHOO.ext.ContentPanel('datamaps', {title: 'Data Maps', fitToFrame:false}));
                layout.add('east', new YAHOO.ext.ContentPanel('scenarios', {title: 'Scenarios Using Field', fitToFrame:true}));
                
                var innerLayout = new YAHOO.ext.BorderLayout('main', {
                    south: {
                        split:true,
                        initialSize: 250,
                        minSize: 100,
                        maxSize: 400,
                        autoScroll:true,
                        collapsible:true,
                        titlebar: true,
                        animate: true,
                        cmargins: {top:2,bottom:0,right:0,left:0}
                    },
                    center: {
                        autoScroll:false,
                        titlebar:false
                    }
                		});
                		innerLayout.beginUpdate();
                
                		// create the feed grid
                		this.createGrid('Account');
                		innerLayout.add('center', new YAHOO.ext.GridPanel(grid, {title: 'DIS to Source System Grid'}));
         
                		// restore innerLayout state
                		innerLayout.restoreState();
                		innerLayout.endUpdate(true);
                
                		// add the nested layout
                		datamapPanel = new YAHOO.ext.NestedLayoutPanel(innerLayout, 'Account');
    	        		layout.add('center', datamapPanel);
    	        		       
                		layout.restoreState();	        		     
    	                layout.endUpdate();
    	           
    	                Download.init();     
    	           },
            createGrid : function(){
        		function formatMoney(value){
            		value -= 0;
            		value = (Math.round(value*100))/100;
            		value = (value == Math.floor(value)) ? value + '.00' : ( (value*10 == Math.floor(value*10)) ? value + '0' : value);
            		return "$" + value;  
        		};
        
    		    function formatBoolean(value){
            		return value ? 'Yes' : 'No';  
        		};
        
    	    	function formatDate(value){
    				return value.dateFormat('m/d/Y');
        		};
        
    		    function parseDate(value){
            		return new Date(Date.parse(value));  
        		};
        		function parseStatusID(value){
            		return new Date(Date.parse(value));  
        		};
     		
        		var schema = {
         			root: 'datamap.datamapfields',
         			id: 'name',
         			fields: ['id','datamap','name', 'origin','type', 'dbColumnName', 'requirement', 'maxLength', 'refDataKey',
         					 'derivationType', 'refDataType', 'domain', 'defaultValue', 'position', 'sourceSystemName',
         					 'hasData','SourceTableName','SourceFieldName', 'condition', 'addRefDataKeys', 'timeSource',
         					 'dateSource','derivationParams', 'vendor', 'productVersion']
            	};
            	
            	gridDataModel = new YAHOO.ext.grid.JSONDataModel(schema);
            
    			//gridDataModel.setDefaultSort(colModel, 0, "DESC");		 
    
    			var yg = YAHOO.ext.grid;
            	var cols = [{
              		header: "DataMap", 
              		width: 1,
    		  		dataIndex: 1
    			},{
              		header: "Position", 
              		width: 50,
    		  		dataIndex: 13
    			},{
              		header: "Name", 
              		width: 170,
    		  		dataIndex: 2
    			},{
              		header: "Type", 
              		width: 75,
    		  		dataIndex: 4
            	},{
              		header: "Max Length", 
              		width: 65,
    		  		dataIndex: 7
            	},{
              		header: "Default", 
              		width: 40, 
    		  		dataIndex: 12
            	},{
            		header: "Domain Values",
            		width: 80,
            		dataIndex: 11
            	},{
            		header: "Source System Name",
            		width: 80,
            		dataIndex: 14,
            		editor: new yg.TextEditor({allowBlank: true})
            	},{
            		header: "Has Data",
            		width: 70,
            		dataIndex: 15,
            		renderer: formatBoolean,
            		editor: new yg.CheckboxEditor()
            	},{
             		header: "Source Table Name",
            		width: 80,
            		dataIndex: 16,
            		editor: new yg.TextEditor({allowBlank: true})
            	},{
             		header: "Source Field Name",
            		width: 80,
            		dataIndex: 17,
            		editor: new yg.TextEditor({allowBlank: true})
            	}];
    
            	var colModel = new YAHOO.ext.grid.DefaultColumnModel(cols);
            	colModel.defaultSortable = true;
            	
    			//var sm = new YAHOO.ext.grid.EditorSelectionModel();
            	grid = new YAHOO.ext.grid.EditorGrid('grid', gridDataModel, colModel);
            	grid.render();
            	grid.autoSizeHeaders = true;
            	gridDataModel.load('getdatamap.php', 'datamapname=Account');
            	gridDataModel.addListener('cellupdated', onCellUpdated);
            	
           		var wait = getEl('wait');
    			gridDataModel.addListener('beforeload', wait.show, wait, true);
    			gridDataModel.addListener('load', wait.hide, wait, true);    
    			    	
            	//var sm = grid.getSelectionModel();
    			grid.addListener('rowclick', onRowClicked);
    			        	
            	DataMapListObj.startRequest();
            	DataMapNoteObj.startRequest();
            	ScenarioDataMapObj.startRequest('Account', 'AccountIdentifier');
            },
            updateGrid : function(datamap){
            	gridDataModel.load('getdatamap.php', 'datamapname=' + datamap, this.updateTabLabel(datamap) );
            	
            	var el = document.getElementById("datamapfieldlist");
    			if (el != null) {
    				el.parentNode.removeChild(el);
    			}
    			
            },
    		updateTabLabel : function (title) {
    			datamapPanel.setTitle(title);
    		}	   
         } 
    	}();

  8. #8
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Couple of things:

    - Can you please post a simple layout html that this code uses

    - I assume that your original error was caused by not having yutils.cs included first, and that it's resolved, correct? If you are getting a different error now, please post the error message.

    - Do you get the exact same error whether you use your JSB version of yui-ext-debug.js versus the release version? If it's the same error, then it's likely something unrelated to the JSB build specifically.

  9. #9
    Ext User
    Join Date
    Mar 2007
    Posts
    28
    Vote Rating
    0
    dmayer is on a distinguished road

      0  

    Default


    I downloaded the yui-ext.js 0.33 rc 3 and used it on my web page and I still get the error.

    Here is the url to my webpage that gets the error:
    http://www.denismayer.com/mantfiles/php/container.htm

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    The problem is with your yui.js file. Since the error is related to the namespace YUI.ext.util not being valid, and it obviously should have been, I started thinking that the namespace itself was not actually getting created correctly to begin with in YUI. The very first section of yui.js contains yahoo-min.js which is where all custom namespaces get created, so I compared that section against the latest yahoo-min.js from the 0.12 YUI release. They were different, so I added the "correct" version to your page after yui.js to override it and this fixed the error and the page rendered correctly:

    Code:
    <title>Data Mapping Tool - DenisMayer.com</title>
    <script type="text/javascript" src="scripts/yui.js"></script>
    <script type="text/javascript" src="scripts/yahoo-debug.js"></script> <-- Added this
    <script type="text/javascript" src="scripts/util.js"></script>
    I also tested simply replacing the yahoo-min section in yui.js with the current file, and that also worked. I assume that you created yui.js manually? I can't tell if it's just an out-of-date version of the YUI stuff or if the code was altered incorrectly during building that file. Either way, you should definitely review this file more closely and make sure that all of the YUI scripts that you're combining are correct and up-to-date.

    Let me know if you have any other issues.

    -Brian

Similar Threads

  1. Javascript Editor
    By thameema in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 28 Aug 2008, 11:50 AM
  2. Official Open Src License Thread (Commercial License Part 2)
    By jack.slocum in forum Community Discussion
    Replies: 33
    Last Post: 19 Apr 2007, 6:23 AM
  3. JSBuilder - Javascript Error
    By dmayer in forum Sencha Cmd
    Replies: 2
    Last Post: 8 Dec 2006, 10:40 PM
  4. Javascript Tab Panel
    By ideawire_bb in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 7 Nov 2006, 1:47 PM

Thread Participants: 2