Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser automation
Message
From
15/11/2010 05:10:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
14/11/2010 15:29:47
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01489079
Message ID:
01489100
Views:
114
>Hi folks.
>I'm using WebBrowser automation to fill informations in a website.
>Sometimes I need to delete some informations and, when I click on a link, a messagebox is displayed requesting to confirm the operation.
>I've tried to change the script in the onclick attribute using setAttribute without success.
>Here is the code in onclick attribute:
>
>
><A id=declaracaoForm:j_id110:0:j_id112 title="Excluir Valor." onclick="javascript: 
if (!confirm('Confirma a exclusao?')){ 
	return false;} 
	else {showDIV('aguarde');};
A4J.AJAX.Submit('_viewRoot','declaracaoForm',event,
	{'parameters':{'declaracaoForm:j_id110:0:j_id112':'declaracaoForm:j_id110:0:j_id112'} ,
	'actionUrl':'/dsnSPWEB/xhtml/declaracao/inserirDeclaracao.jsf',
'oncomplete':
	function(request,event,data)
		{hideDIV('aguarde');showErrMsg();},
		'similarityGroupingId':'declaracaoForm:j_id110:0:j_id112'} );
		return false;" 
	href="https://cert01.fazenda.sp.gov.br/dsnSPWEB/xhtml/menu/menu.jsf#" 
	name=declaracaoForm:j_id110:0:j_id112>AC - R$0,01</A>
>
Why do you need to go through the onClick() event - if you're doing this automated, there's nobody to click around. I'd suggest you call the Ajax submit code directly, i.e. copy that part into a separate function and call it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform