Guest

jesus2099

By: a guest on Jul 18th, 2007  |  syntax: JavaScript  |  size: 0.35 KB  |  hits: 166  |  expires: Never
download  |  raw  |  embed  |  report abuse
This paste has a previous version, view the difference. Copied
  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. }