Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error notification #6

Open
mbujes opened this issue Nov 5, 2012 · 1 comment
Open

Error notification #6

mbujes opened this issue Nov 5, 2012 · 1 comment

Comments

@mbujes
Copy link

mbujes commented Nov 5, 2012

En vez de mostrar los errores en consola, porqué no mostrarlos como notificaciones?

He usado para ello el plugin de jquery Noty

enlace:

http://kif.arkasoftware.com/threejs/htmleditor

} catch ( error ) {

                var lineNumber = error.lineNumber + lineStart;
                errorLines.push( lineNumber );

                editor.setLineClass( lineNumber, null, 'errorLine' );

                var string=  'Line ' + ( lineNumber + 1 ) + ': ' + error.string;
                console.log( string);

                 notty = window.noty({text: string, closeWith: ['click'], layout:'bottomRight',type:'error', dismissQueue: true,force: true});
            }

            // console.log( errors );
            if (errorLines.length==0){
                $.noty.closeAll() 
                notty = window.noty({text: "OK. No errors detected", closeWith: ['click'], layout:'bottomRight',type:'success',timeout:5000, dismissQueue: true,force: true});

            }
            return errorLines.length === 0;

        };
@mrdoob
Copy link
Owner

mrdoob commented Nov 5, 2012

La idea era ponerlos en la misma linea en el codigo. Pero no se como implementarlo aun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants