lunes, 20 de agosto de 2012

Error on blank images with EXT JS (Sencha) and Internet Explorer (IE 6-8)

Is very normal to get errors in your Web Page designed with ExtJs if you use Internet Explorer.
For example, there is a typical error when you use HTTPS.
When you are using a secure HTTP server IE will show you an error error image over each image link or action image. This is a blank image and i am not sure the utility but you will see your image and over it another one like an error.

To solve this issue you must to add to your code this line 

Ext.BLANK_IMAGE_URL = '[path-to-ext]/resources/themes/images/default/tree/s.gif'; 

You must to add this after  OnReady. The result is something like that:

Ext.onReady(function() {
        Ext.BLANK_IMAGE_URL = '[path-to-ext]/resources/themes/images/default/tree/s.gif'; 
        [Your Code]

Good Luck

No hay comentarios:

Publicar un comentario