Guest
Public paste!

jesus2099

By: a guest | Jul 18th, 2007 | Syntax: JavaScript | Size: 0.35 KB | Hits: 162 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. // Analyze XmlHttp response
  2. function xmlhttpChange() {
  3.  
  4.         // create XMLDOM object if xmlhttp shows "loaded"
  5.     if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
  6.         {
  7.        
  8.                 var findEditor = new RegExp("<a href=\"/show/user/\\?userid=[0-9]+\">"+editorName+"</a>");
  9.                 if(findEditor.exec(xmlhttp.responseText)) {
  10.                         subscriptionDecorator();
  11.                 }
  12.         }              
  13. }