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

    [OT] Javascript enhancement beta test ;)

    Ciao.
    Ho terminato la prima parte admin
    del mio nuovo sito personale in cui
    ho sperimentato l'uso del cosidetto
    Javascript enhancement praticamente
    lo script funziona sia con js abilitato
    che non.

    Chiederei ai gentili utilizzatori di questo
    forum di farsi un giretto con i vari browser
    in loro possesso.
    Personalmente ho testato il tutto con
    Ie 6, Opera 9, FF 1.5 2.0 e Safari per win.

    Mi interesserebbe sopratutto IE 7 e Safari x Mac.

    Lo potete trovare qui

    Un grazie anticipato a chi si fa un giretto

    Un sentito grazie ai moderatori e ad Andr3a per
    la parte Json e a fCaldera x le regex.


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

  2. #2
    E su e fatevi un giretto

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

  3. #3
    Problemi su IE

    funzione incriminata

    Codice PHP:
    function buildError(el,msg,_id){
        var 
    showError_createElement(el,{class:'show-error',id:_id});
        
    showError.appendChild(_createTextNode(msg));
        return 
    showError;

    class ie la considera a reserved word mentre
    gli altri ma ...........

    tolto class ho messo uno stile in line


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

  4. #4
    Fix ie behaviour
    (fa tanto cool )

    std.js
    Codice PHP:
    /* Job */
    function buildError(el,msg,_id){
        var 
    showError_createElement(el,{id:_id});
        
    showError.className='show-error';
        
    showError.appendChild(_createTextNode(msg));
        return 
    showError;


    ManageTags.js
    Codice PHP:
    //fix ie bug
                    
    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+'"  />';
                    } 

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

  5. #5
    Su segnalazione di Zero qui
    che tra poco si busca un brutto raffreddore
    Codice PHP:
    function getTagId(e){
            var 
    targetgetTarget(e);
            
    cancelClick(e);
            var 
    elementIdtarget.getAttribute('id');
            return 
    parseInt(elementId.split("-")[2]);
        } 

    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.