This question is related to two old questions:
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_22102639.htmlhttp://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_22115113.htmlIt seems MySpace changed their page navigation method again. I'll restate my question here. Basically what I'm trying to do is to get all the friendIDs of a MySpace user using PERL. After "click View all friends" on a user's profile, we can see the first page of friend list. What gave me trouble was MySpace uses __dopostback javascript for navigating through Page 1 to Page2 (Suppose this user has 58 friends.) I read the solutions to the above old questions and used the following to specify the right page numbers and submit the form. (Here since I know the second form is the right form, I used @form[1] directly.)
@forms[1]->push_input('hid
den', {name => '__EVENTTARGET', value => 'ctl00$cpMain$FriendsView$
pagerTop'}
);
@forms[1]->push_input('hid
den', {name => '__EVENTARGUMENT', value => $PageNum});
@forms[1]->push_input('hid
den', {name => '__VIEWSTATE', value => $ViewState}); # Variable $ViewState is obtained using RegEx matching.
@forms[1]->make_request;
However the resulting page says "Object moved".
Could you help me out on this? Thanks a lot.