in reply to Re: Accessing unnamed button using WWW::Mechanize
in thread Accessing unnamed button using WWW::Mechanize
it seems that JSON data is posted to url "rpc.f" and the data returned is added to #serverlisted (should be an id to div, span or any other tag on page.)if (ck==true){ $.post("rpc.f", {credenU: ""+user+"", credenP: ""+pass+"", mns: 1} +, function(data){ if(data.length >0) { $('#serverlisted').html(data); } }); } else{ $.post("rpc.f", {credenU: ""+user+"", credenP: ""+pass+""}, functi +on(data){ if(data.length >0) { $('#serverlisted').html(data); } });
to url "rpc.f" and replace the response recived on tag #serverlistedwhich is either {credenU: ""+user+"", credenP: ""+pass+"", mns: 1} or {credenU: ""+user+"", credenP: ""+pass+""} based on value of mms
|
---|