2013-06-17 4 views
7

La mia app web è in esecuzione qui: URL Sto usando jquery versione 1.7.1.min.js per ie browser e sto ottenendo il seguente errore per IE 7 e 8.Non riesco a risolvere jquery IE 7/8 Script 3 Errore membro non trovato

errore dettagli:

SCRIPT3: Member not found. 

jquery-1.7.0.min.js, line 2 character 30982 

ho anche scoprire che e.nodeValue è nullo, come potete vedere nell'immagine allegata. enter image description here. Tuttavia, lo stesso codice funziona correttamente per IE 9 e 10.

Mentre si passa attraverso il codice, ho trovato il codice seguente che non funziona per ie6/7. Qualsiasi aiuto su come sbarazzarsi di questo errore?

/ IE6/7 do not support getting/setting some attributes with get/setAttribute 
if (!getSetAttribute) { 

    fixSpecified = { 
     name: true, 
     id: true 
    }; 

    // Use this for any attribute in IE6/7 
    // This fixes almost every IE6/7 issue 
    nodeHook = jQuery.valHooks.button = { 
     get: function(elem, name) { 
      var ret; 
      ret = elem.getAttributeNode(name); 
      return ret && (fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified) ? 
       ret.nodeValue : 
       undefined; 
     }, 
     set: function(elem, value, name) { 
      // Set the existing or create a new attribute node 
      var ret = elem.getAttributeNode(name); 
      if (!ret) { 
       ret = document.createAttribute(name); 
       elem.setAttributeNode(ret); 
      } 
      return (ret.nodeValue = value + ""); 
     } 
    }; 
+3

è possibile eseguire il debug con il file di debug? Non è sempre preciso nella versione min. –

+0

@OnurTOPAL Ho appena sostituito il codice min.js con la versione di debug sul server. –

+0

Può questo aiutarti? http://stackoverflow.com/questions/7993085/ie-9-showing-displaying-member-not-found –

risposta

0

Rinuncia.

Non supportare IE 7/8. Perché sostenere una specie in via di estinzione? Google decided a long time ago that they'd only support the latest, perché dovresti fare qualcosa di diverso?

+0

Questa non è una risposta sensata alla mia domanda. Non è il mio progetto personale per prendere decisioni di supporto del browser. Tuttavia, il mio trucco sopra funziona ancora. I –

+0

Questo accade ancora con IE10/11 se la pagina proviene da intranet e quindi IE torna alla modalità documento IE7. – Janning