This is a migrated thread and some comments may be shown as answers.
Ajax button.
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
SD
Top achievements
Rank 1
SD asked on 06 Jul 2010, 06:09 AM
Hi Guys,

I have the following button:
<input id="allocationConfirmationForm:confirmOK" type="button" value="OK"  
 
onclick="A4J.AJAX.Submit('allocationConfirmationForm:contentRegion','allocationConfirmationForm',event,{'parameters':{ 
 
'allocationConfirmationForm:confirmOK':'allocationConfirmationForm:confirmOK'}  
 
,'actionUrl':'/vtdWeb/spring/dashboard?execution=e1s2&javax.portlet.faces.DirectLink=true'} );return false;"  
 
name="allocationConfirmationForm:confirmOK"/> 

I have tried several approaches (While knowing that is an Ajax button) and it seems to be failing. 
When I tried:
  Element e = Manager.ActiveBrowser.Find.ByName("allocationConfirmationForm:confirmOK"); 
Manager.ActiveBrowser.Actions.Click(e); 

I got: 
The target Element object passed in for this action is null. Action aborted. Possible causes to this exception is the 
element not present in the page markup and the Find.Byxx returning null.
Parameter name: TargetElement

Have no issues with other buttons..(Inc Ajax buttons)What is wrong here ?
Ta, 
SD.

1 Answer, 1 is accepted

Sort by
0
SD
Top achievements
Rank 1
answered on 07 Jul 2010, 03:54 AM
Sorry, my mistake...
I guess it was not a very good idea to have executionDelay = 0....
Asked by
SD
Top achievements
Rank 1
Answers by
SD
Top achievements
Rank 1
Share this question
or