Hi,
I took the latest snapshot of htmlUnit2.4 and interestingly found that almost all of my DOM and yui errors disappeared but the one, which is still there.
I am using commons-validator and in my vaildate.js, I have this validateEL javacript function which validates the expressions. This function is used in my jsp which is my 5th screen, but this function is included in all my jsp. Now when I invoke my first login page using canoo it fails giving exception :-
"_javascript_ error loading page http://localhost:8888/chairside/: Wrapped com.gargoylesoftware.htmlunit.ScriptException: 3"
I investigated and found that canoo fails in this function on the following line :-
elValue = elValue.replace(/\${/g, '');
and if I comment this line rest of the code which is using replace function runs properly with canoo.I am not sure whether its a problem with '$' as otherwise replace function works fine.
Can someone pl look in to my problem and suggest any solution?
Thanks,
-Ruchika
--------------------------------------------------------
Description of my _javascript_ function :-
if (el != null && el != "") {
if(value == null) value = '';
elValue = el.replace(/value/g, value);
//elValue = elValue.replace(/\${/g, '');
elValue = elValue.replace(/}/g, '');
elValue = elValue.replace(/form\.(\w+(.\w+))/g,elFormName+'[\"$1\"].value');
if (i == 0) {
focusField = field;
}
try {
bValid = eval(elValue);
}
catch(e) {
}
if(!bValid)
fields[i++] = oEL[x][1];
}
}
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
- [Webtest] Problem with replace() using $ ruchi24
- Re: [Webtest] Problem with replace() using ... Marc Guillemot
- Re: [Webtest] Problem with replace() using ... Ahmed Ashour
- [Webtest] Guidence required Hariram V (ETS-IV&VS)

