Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internetexplorer.application, checkbox issue
Message
De
25/06/2014 03:22:47
 
 
À
24/06/2014 20:04:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01602344
Message ID:
01602378
Vues:
58
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.
>>
>>1- Is it right to mark it checked as below :
>>
>>
>>
>>loIE.document.getElementByID("accpet").checked= .T.
>>
>>2- Is there a way to trigger this show_form();"  event programmaticaly ?
>>
>>This event is in checkbox:
>>
>><input id="accept" onclick="javascript: show_form();" name="accpet" type="checkbox" enabled> 
>>
>>
>>
>>
>>part of code below:
>>
>>
>>
>>loIE = Createobject("internetexplorer.application")
>>loIE.Visible = .T.
>>loIE.Navigate("http://www2.correios.com.br/sistemas/falecomoscorreios")
>>* Wait for load to complete
>>lnSeconds = SECONDS()
>>DO WHILE (loIE.Busy OR loIE.ReadyState <> 4) ;
>>		AND (SECONDS() - lnSeconds) < lnLoadTimeout
>>	DOEVENTS
>>ENDDO
>>
>>loIE.document.getElementByID("accpet").checked= .T.
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform