Recent Posts
C++ | 16 sec ago
None | 17 sec ago
None | 23 sec ago
C | 28 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 2 min ago
C | 2 min ago
None | 3 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By jesus2099 on the 18th of Jul 2007 01:51:16 PM Download | Raw | Embed | Report
  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. }
Submit a correction or amendment below. [ previous version ] | [ difference ] | Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: