In short, you need to find out what Move('next')
does and plays this in your code.
A quick look at the sites shows that the function code is as follows:
function Move(strIndicator) { document.frm.move_indicator.value = strIndicator; document.frm.submit(); }
And document.frm
is a form called "frm":
<form name="frm" action="joblist.asp" method="post">
So basically you need to build a request to execute POST
for this form with a value of move_indicator
as 'next'
. This is easy to do using the FormRequest
class ( see documents ), for example:
return FormRequest.from_response(response, formname="frm", formdata={'move_indicator': 'next'})
This method works in most cases. The hard part is figuring out what javascript code does, sometimes it can be confusing and do things too complicated to avoid scratches.
source share