How can I check if the given URL of an image exists using GWT?
Image img = new Image("some_url/img.jpg"); img.addErrorHandler(new ErrorHandler() { @Override public void onError(ErrorEvent event) { System.out.println("Error - image not loaded."); } });
0 comments:
Post a Comment