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

not loaded resources notifications #8

Open
mbujes opened this issue Nov 5, 2012 · 2 comments
Open

not loaded resources notifications #8

mbujes opened this issue Nov 5, 2012 · 2 comments

Comments

@mbujes
Copy link

mbujes commented Nov 5, 2012

Ponte en este caso, estoy probando un ejemplo de la documentación, lo arrastro al editor, estaría perfecto que me avisara de cada js que no ha cargado igual que las imágenes que no ha cargado.

igual me pongo con ello para mi editor, y te dejo el código saludos

@mrdoob
Copy link
Owner

mrdoob commented Nov 5, 2012

Sabes como detectarlo?

@mbujes
Copy link
Author

mbujes commented Nov 5, 2012

he pensado hacer un loop en todas las etiquetas script que tengan atributo src con este código o semejante.

$("#errors").load("examples/js/shaders/ConvolutionShader.js", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
console.log(msg);$("#error").html(msg + xhr.status + " " + xhr.statusText);
}
});

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