Friday, April 22, 2011

Fix for - jQuery Error on IE 8.0 for append function.

While using append() function in jQuery, you may see some errors popping out while loading the page.
This issue usually happens in Internet Explorer 8.0 version and will work perfectly in Firefox. 
 
jQuery Function: 
append: function() {
 return this.domManip(arguments, true, function(elem){
  if (this.nodeType == 1)
        this.appendChild( elem )  });
 },
Replace the append function with the below code,
append: function() {
  return this.domManip(arguments, true, function(elem){
   if (this.nodeType == 1)
           try{this.appendChild( elem )}
           catch(err){ }
  });
 },
 
Hope this will help you ;-) 
 

PHPThumb Error Deprecated: Function eregi() phpthumb.class.php - Fix

While using phpthumb for image resizing functions there may arise some issues if the source image is not working or the source image URL is dead.
The usual error found is "Deprecated: Function ereg_replace() is deprecated in phpthumb.class.php on line 976."

To fix this replace the function with

"if (preg_match('#^'.preg_quote($this->config_document_root).'#', $filename)) {"

Hope this will help you !...
Better Luck ! :-)

Tuesday, April 19, 2011

White flash during page load

In some web page having flash objects, its seen that some times a white flash is displaying on the page load or while navigating between pages.

Fix : Add the below parameters to the flash object/movie


 




Popular Posts