Hi,

When clicking the following link with something like <clickLink 
xpath="//a[contains(@href,'Group')]"/> or similar I get this error without any 
additional hints:
"JavaScript error loading page http://blabla.com:7780/test/bla.display: 
ReferenceError: "resetSelect" is not defined. (javascript url#9077)"


* Link in line 9077:
<a title ="Group Contigs" class="roundbutton"  style="float:none;"  
href="javascript:{resetSelect(document.getElementById('hidden_p_action'));%20document.getElementById('hidden_p_action').value='Group%20Contigs';%20submitForm(this);}"
 ><span>Group Contigs</span> </a>

* JavaScript function "resetSelect":
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function resetSelect(s) {
        if (this.document.form != null){
                for (j=0; j<this.document.form.elements.length; j++) {
                        obj = this.document.form.elements[j];
                        if (obj.type != null){
                                if ( obj.type.indexOf( "select" ) > -1 &&
                                s != obj &&
                                obj.name != "p_columns" &&
                                obj != this.document.form.p_filter_action &&
                                obj != this.document.form.p_summary &&
                                obj != this.document.form.p_order ) {
                                        obj.selectedIndex = 0;
                                }
                        }
                }
                if ( this.document.form.p_grp_action != null ) {
                        this.document.form.p_grp_action.value = "";
                }
                if ( this.document.getElementById("hidden_p_action") != null && 
this.document.getElementById("hidden_p_action") != s) {
                        this.document.getElementById("hidden_p_action").value = 
"";
                }
        }
}
</SCRIPT>


I'm using WebTest R_1810. I wonder if this is related to the '%20' (that 
stumbled across earlier)?

Any help or hint would be highly appreciated.
Thanks, regards
Michael
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to