IE Get an attribute

6 posts in this topic

timmalos 3

Hello everybody. I'm a french and i tried to use the Search function of the forum without result, so i hope you will help me.

There is my problem :

I try to make a function which will reproduce the actions that the user can do in Internet Explorer.

So i attach ie, etc... everything is ok.

But when the user click on a link fired with 'onclick', i want to know when. To make this, with each page i check all the links and i want to know if one of them contain javascript, and the function called.

As you see, i'm searching all infos as possible of $oForm. But how can i get a list of the attributes possible? Because name, action, method,innertext was just some tests with luck, but now i want to know the "$('#dialog').dialog('open');" of <form name="form1" enctype="multipart/form-data" method="post" onsubmit="$('#dialog').dialog('open');"/> but the getAttribute doesn't work, and $oForm.onsubmit either, same thing for $oForm.FireEvent("onsubmit") whitch make the javascript called but don't give me the onsubmit value.

I hope you have understood, however i will repeat : First thing I need to know the onsubmit value (here $('#dialog').dialog('open') and Second i want to know if there is a link somewhere to give me all possible attributes for $oForm, like action, method, etc... and a link for the same thing for $oLink, $oImg because i don't find in MSDN.

Share this post

Link to post

Share on other sites

timmalos 3

Thx you for reply, but here you get 'bar' because it's a chain of characters, but when the script is a function, i don't want to execute the function , i want to know if there is javascript.

In fact, one the first hand i want to list all the links that haven't javascript, which don't have any onclick events and one the second hand i want to list the links that have javascript, to change my method of click (Those with javascript with _IEAction("click") the others with _IELinkClik...

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble