Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Ie setAttribute('type','button')

    Ciao.
    Mi sapete dire perchè una cosa del
    genere non funziona in Ie:

    Codice PHP:
    el.removeAttribute('type');
    el.setAttribute('type','button'); 
    provato anche

    Codice PHP:
    // Ho provato anche con                   el.type='button'; 
    ma niente

    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  2. #2
    Ho 'risolto' con
    Codice PHP:
    el.removeAttribute('type');
                    
    //fix ie bug
                    
    try{
                        
    el.setAttribute('type','button');
                    }
                    catch(
    e){} 
    Se qc ha una soluzione migliore




    PS.
    Se qc ha una soluzione migliore

    Non usare IE :lol:
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

  3. #3
    Codice PHP:
    try{
                        
    inputList.item(i).setAttribute('type','button');
                    }
                    catch(
    e){
                        var 
    _valueinputList.item(i).value;
                        var 
    _classinputList.item(i).className;
                        
    inputList.item(i).outerHTML='<input name="tag_action" type="button" value="'+_value+'" class="'+_class+'" id="'+currentTagId+'"  />';
                    } 
    mah
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.