the called javascript function is defined in a
external file and looks like :
function doSubmit (id, ua, ac)
{
document.FORM_VAL.id.value = id;
document.FORM_VAL.userAction.value = ua;
document.FORM_VAL.action = ac;
document.FORM_VAL.submit ();
}
now if i run the following code (response object contains the code shown above) then the form
values "id" and "userAction" are not set correctly.
actually i expect the id and userAction to be set
to the values defined in the javascript function.
but for some reason the values are not set properly.
The strange thing is that the javascript doSubmit
function sometimes works and sometimes not. The
first few javascript functions are executed proply
but after a few calls the values will not be set properly.
Is there a way to find out if the values were really set
properly by httpunit ?
are there known problems with simple javascript
functions with the one above.
Hi,
i have some problems with some javascript code that
should be executed when clicking a link. basically the
code looks like :
<a id="edit0" href="javascript:doSubmit('586','view','rbcreateuserform.do');">
<img src="/bal/_gfx/_rb/icon_aendern.gif" alt="" border="0" width="16" height="16">
</a>
<form name="FORM_VAL" method="GET" action="">
<INPUT TYPE="hidden" NAME="id" VALUE="">
<INPUT TYPE="hidden" NAME="userAction" VALUE="">
</form>
the called javascript function is defined in a
external file and looks like :
function doSubmit (id, ua, ac)
{
document.FORM_VAL.id.value = id;
document.FORM_VAL.userAction.value = ua;
document.FORM_VAL.action = ac;
document.FORM_VAL.submit ();
}
now if i run the following code (response object contains the code shown above) then the form
values "id" and "userAction" are not set correctly.
actually i expect the id and userAction to be set
to the values defined in the javascript function.
but for some reason the values are not set properly.
The strange thing is that the javascript doSubmit
function sometimes works and sometimes not. The
first few javascript functions are executed proply
but after a few calls the values will not be set properly.
Is there a way to find out if the values were really set
properly by httpunit ?
are there known problems with simple javascript
functions with the one above.
response = response.getLinkWithID ("edit0").click ();
thanks in advance,
Andreas