Jump to content

Recommended Posts

Posted (edited)

Hi,

I am trying to automate the clicking or activation of a javascript object. It's a login "button" and when you click on it it posts your enter details via javascript. This is the code when I right click and "copy link address":

javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))

This is what I get from Firebug

<a id="main_ArticleControl_lnkLogin" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'></a>

Anyone have any clue whether it's actually possible or how to do it? Any browser will do...

Thanks!

Edited by mikesmith
Posted (edited)

Maybe you can call the JS-Function manually?

You can call it like this:

$sCall = 'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'
_IENavigate($oIE, $sCall)

chess

Edited by chesstiger

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...