Ajax Get Requests inquiry

74 views Asked by At
$.ajax({
  type: "GET",
  url: "http://www.roblox.com/My/GroupAdmin.aspx?gid=148530",
  data: {   javascript:__doPostBack('ctl00$ctl00$cphRoblox$cphMyRobloxContent$GroupMemberAdminPane$dlMembers_Footer$ctl02$ctl00','')        }
})
  .done(function( msg ) {
        $(msg).find('.member-name-container').children('[title]').each(function() {
          console.log( $(this ).text() )
   var g = $(msg ).text()
  });
});

How exactly do I make this log the data I want it to find after it does the postback? Its clearly supposed to log in console. I'm trying to find all the usernames in this group on ROBLOX. Help as fast as possible, really need to finish this project. How do I fix this?

1

There are 1 answers

0
low_rents On

well the $() in jQuery is a selector which applies to classes, ids and much more in your DOM. you can't parse a text with just putting it inside $() - that's not how it works since you don't have your resulting html in your DOM. so you have to parse it like text, not like it was in your DOM.