Hi Mart,

it is easy to figure out if the problem is due to too short waiting time
or to incorrect js execution: just add a <sleep .../> with an exagerated
big delay and check if you get the expected behavior.
If not, additional information would be needed to understand the root of
the problem.

Cheers,
Marc,
-- 
Blog: http://mguillem.wordpress.com


Mart Toom wrote:
> Hi everyone who can help,
> 
> We have a problem with reloading page content with following fuction.
> When checkbox is checked, then the product list on page is not refreshed.
> 
> We have easyAjax="true" and the Canoo version is 1704
> 
> -----------------
> Checkbox on page
> 
> <input tabindex="40" name="event[ID,Name]" id="event_id"
> onchange="updateProductTypeList()" value="on" type="checkbox">
> 
> and the fuction looks like this:
> 
> function updateProductTypeList() {
>     xId++;
>     setTimeout("doUpdateProductTypeList(" + xId + ")", 1);
>   }
> 
>   function doUpdateProductTypeList(yId) {
>     if (yId != xId) {
>       return;
>     }
> 
>     DWRUtil.removeAllOptions("select_product_type");
>     $("select_product_type").disabled = true;
>     $("submit_button").disabled = true;
> 
>     var selectedEIds = getSelectedEIds();
> 
>     if (selectedEIds.length == 0) {
>       $("select_product_type").options[0] = new Option("No things
> selected", -1);
>     } else {
>     $("select_product_type").options[0] = new Option("Refreshing...", -1);
> 
>     EList.getContextualProductTypeList(selectedEIds,
> updateProductTypeListCallback);
>     }
>   }
> -----------------------
> 
> We were thinking that problem might be related to this jira issue:
> http://webtest-community.canoo.com/jira/browse/WT-378?page=all
> 
> and maybe the waiting time is too short as the server is sometimes slow.
> Can we configure this waiting time?
> 
> 
> Does newer HtmlUnit support already other background events mentioned in
> this issue?
> 
> Thanks in advance for any help,
> 
> Mart
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to