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

      0  

    Default YAHOO.ext.Element.get().getAttribute() causes errors

    YAHOO.ext.Element.get().getAttribute() causes errors


    Code:
    	
    function sendPaneForm(p_form) {
    		var theForm = document.getElementById(p_form); // this works
    		// var theForm = YAHOO.ext.Element.get(p_form); // this DOES NOT WORK
    
    		var bottom = YAHOO.ext.Element.get('bottomPane');
        var updateMgr = bottom.getUpdateManager();
    		
       		var failedLoad = function() {
                    bottom.update("Failed to send form");
       		};
       		var okLoad = function() {
    			
       		};
       		updateMgr.onFailure.subscribe(failedLoad);
       		updateMgr.onUpdate.subscribe(okLoad);
    
       		updateMgr.formUpdate(theForm, null, true, null);
    }
    The line commented out, using YAHOO.ext.Element.get() , causes an error to occur in yui-ext.32.1/yui-ext.js at line 123 where getAttribute is used to determine the enctype.

    Is there any way to use YAHOO.ext.Element to pass the form to the updateManager or do I need to revert to using document.getElementById

    I'm new to javascript but one of the reasons I understood using YUI & YUI.ext might be a good idea was to easily overcome browser compatibility problems. Is there any problem using getElementById or is there a way to get element attributes using YAHOO.ext.Element?

    Thanks for your help.

  2. #2
    Sencha User Frank's Avatar
    Join Date
    Mar 2007
    Posts
    185
    Vote Rating
    1
    Frank is an unknown quantity at this point

      0  

    Default


    you should access the element's dom ,like this
    getEl('foo').dom.getAttribute('Attribute_name')

Similar Threads

  1. YAHOO.ext.Element and addListener
    By alex1er in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 18 Feb 2007, 2:57 AM
  2. formUpdate getAttribute Error
    By Domitian in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 15 Feb 2007, 11:05 AM
  3. YAHOO.ext.Element.get
    By jclawson in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 7 Feb 2007, 10:04 AM
  4. YAHOO.ext.Element Display
    By ojintoad in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 1 Jan 2007, 2:20 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi