Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internetexplorer.application, checkbox issue
Message
From
25/06/2014 04:18:20
 
 
To
25/06/2014 04:10:38
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602344
Message ID:
01602380
Views:
43
It's clearly IE version dependent. All I can tell you, is that I had some IE automation code which had run for many, many years. All of a sudden my code didn't run anymore, instead it raised errors which I don't remember. More or less by accident I changed a click() into click(.T.), and the code ran as it used to, also on older IE versions! I have given this tip to quite a few people, and they also have reported that adding .T. as a parameter does fix the problem.

>That's quite strange and not standards-compliant at all. Besides, according to Microsoft's documentation in http://msdn.microsoft.com/en-us/library/ms536363(v=vs.85).aspx, click() has no parameters (as it should).
>
>Can you describe the scenario in which a parameter is required to make the method work?
>
>>I have found that with newer versions of IE, you must use .click(.T.) instead of .click().
>>
>>>Emulate the interactive action on the checkbox, instead:
>>>
>>>loIE.document.getElementByID("aceite").click()
>>>
>>>This way the form is shown as soon as the user chooses the type of customer service he/she's requiring.
>>>
>>>>Hi
>>>>
>>>>I am automatically filling fields, but have problem with checkboxes and their events.
>>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform