CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Post deleted by gerble1000

 



gerble1000
User

May 19, 2012, 2:45 AM

Post #1 of 2 (1050 views)
Post deleted by gerble1000

 


gerble1000
User

May 20, 2012, 6:06 AM

Post #2 of 2 (1041 views)
Re: [gerble1000] whats wrong with this login script using mechanise [In reply to] Can't Post

ok i logged in and got to the page i need...
now i have the dilema of getting mechanize to use javascript.

here is the page i need to click send on


Code
 
<form name="smsform" METHOD="POST" ACTION="sms">
<tr BGCOLOR="#FFFFFF">
<td ALIGN="LEFT" COLSPAN=2>

<input TYPE="HIDDEN" NAME="portal" VALUE="yes">
<input TYPE="HIDDEN" NAME="sendSmsMessageToNumber" VALUE="07858540511">
<input TYPE="HIDDEN" NAME="sendSmsMessage" VALUE="test from orage hack">
<input TYPE="HIDDEN" NAME="sms_from_rad" VALUE="0">
<input TYPE="HIDDEN" NAME="request" VALUE="edit">
<br><br><INPUT TYPE="IMAGE" BORDER="0" NAME="request1" SRC="/assets/images/edit-button.gif" VALUE="edit" onClick="return submitSmsForm('edit');">

</td>

<td ALIGN="RIGHT" WIDTH="200">
<br><br><INPUT TYPE="IMAGE" BORDER="0" NAME="request2" SRC="/assets/images/send-button.gif" VALUE="send" onClick="return submitSmsForm('send');">

</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</table>
</body>
<script language="JavaScript1.2" type="text/javascript">
ShowFooter();
</script>
<head>
<meta http-equiv="Pragma" CONTENT="no-cache">
</head>
</html>

<script language="javascript">
function submitSmsForm(request) {
document.smsform.request.value = request;
//document.smsform.submit();
return true;
}
</script>


when mechanise clicks send it just takes me back a page ?
is there a good plugin that would work. i have tride mechanize::firefox with no joy

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives