Using innerHTML.repalce to replace text with img element
        Posted  
        
            by Vishal Shah
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Vishal Shah
        
        
        
        Published on 2010-05-22T14:09:41Z
        Indexed on 
            2010/05/22
            14:20 UTC
        
        
        Read the original article
        Hit count: 296
        
I'm writing a script to add extra smileys to the Gmail chat.
Its working partially, i'm stuck with the innerHTML.replace method @line 33
If you see, the regex in the replace method is passed using a variable. This is where the script is choking.
If i replace the variable with the actual regex, it works fine :|
© Stack Overflow or respective owner