Sign in to follow this  
Followers 0
fly

Needs some help (re)submitting an IE form

5 posts in this topic

Ok, so I've poured over the docs as much as I could...

I've got a form that I'm able to submit some data. Works perfectly! However, once submitted, the "button" image itself changes from the word SET to UNSET. I can't seem to figure out an ID for the UNSET button. I can't see any ID for it in the HTML, nor does just clicking the same object work again. Any idea how I can find the ID of this button?

Share this post


Link to post
Share on other sites



Examine the page with a DOM Inspector, like FireBug for Firefox, or DebugBar for IE.

It's still possible that element doesn't have a name or id property set, but there are other ways to reference it. Post the HTML related directly to that element for more specific help.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Examine the page with a DOM Inspector, like FireBug for Firefox, or DebugBar for IE.

It's still possible that element doesn't have a name or id property set, but there are other ways to reference it. Post the HTML related directly to that element for more specific help.

:)

;)

Yeah, I'm still not getting it. Here's the whole form. Any help would be awesome.

Edited by fly

Share this post


Link to post
Share on other sites

You see the first one is:

<input type="image" src="/images/activate-btn.jpg" alt="Activate" id="activate-btn" />

And the second one is:

<a href="#" onclick="Auctions.removeBido();return false;"><img src="/images/deactivate-btn.jpg" alt="Deactivate" border="0" /></a>

The first is an INPUT tag with a JPG for a button, but the second is a link with an IMG tag in it.

The first could be found by getting the collection of all INPUT tags with _IETagNameGetCollection($oFrame, "INPUT") and looping through them looking for the src property.

For the second you could get the collection of links with _IELinkGetCollection($oFrame) and loop through those looking for the IMG src in the .innerHtml property.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

You see the first one is:

<input type="image" src="/images/activate-btn.jpg" alt="Activate" id="activate-btn" />

And the second one is:

<a href="#" onclick="Auctions.removeBido();return false;"><img src="/images/deactivate-btn.jpg" alt="Deactivate" border="0" /></a>

The first is an INPUT tag with a JPG for a button, but the second is a link with an IMG tag in it.

The first could be found by getting the collection of all INPUT tags with _IETagNameGetCollection($oFrame, "INPUT") and looping through them looking for the src property.

For the second you could get the collection of links with _IELinkGetCollection($oFrame) and loop through those looking for the IMG src in the .innerHtml property.

:)

That did it! Thank you very much for the help!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0