-
-
Save VMatrix1900/15a8cf2a134c4777e189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sids = document.getElementById("my-status-list").getElementsByTagName("li"); | |
var url = "http://status.renren.com/doing/deleteDoing.do" | |
for(var i=1;i<sids.length;i++){ | |
var sid = sids[i].getAttribute("status-id"); | |
var formData = new FormData(); | |
formData.append('id',""+sid); | |
formData.append('requestToken', ""+nx.user.requestToken); | |
formData.append('_rtk', ""+nx.user._rtk); | |
var xhr = new XMLHttpRequest(); | |
xhr.open("POST",url, true); | |
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); | |
xhr.send(formData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment