[Webtest] (no subject)
dennis.winter@immonet.de
dennis.winter@immonet.de
Wed, 9 Jan 2008 20:03:12 +0100
This is a multi-part message in MIME format.
------_=_NextPart_001_01C852F2.482AFAD7
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I am filling up some inputfields with the part of my script by using =
<setInputField>. Inserting one of 3 fields causes the following =
errormessage:
The following error occurred while executing this line: =
C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected =
exception caught: com.gargoylesoftware.htmlunit.ScriptException: =
TypeError: Cannot find function hasAttribute.=20
The filling of that field calls a javascript-code, which contains =
functions called by Scriptaculous. This "hasAttribute()" function is =
given by Scriptaculous(http://script.aculo.us/).
I don't have a clou how I can handle this problem.=20
The used Javascritp is like this:
Element.Methods.Simulated =3D {
hasAttribute: function(element, attribute) {
var t =3D Element._attributeTranslations, node;
attribute =3D t.names[attribute] || attribute;
node =3D $(element).getAttributeNode(attribute);
return node && node.specified;
}
};
Can anybody help me with my issue?
Dennis Winter
------_=_NextPart_001_01C852F2.482AFAD7
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7651.14">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=3D2>Hi,<BR>
<BR>
I am filling up some inputfields with the part of my script by using =
<setInputField>. Inserting one of 3 fields causes the following =
errormessage:<BR>
<BR>
The following error occurred while executing this line: =
C:\webtest\Immonet\definitions\seite2basisdaten.xml:23: Unexpected =
exception caught: com.gargoylesoftware.htmlunit.ScriptException: =
TypeError: Cannot find function hasAttribute.<BR>
<BR>
The filling of that field calls a javascript-code, which contains =
functions called by Scriptaculous. This "hasAttribute()" =
function is given by Scriptaculous(<A =
HREF=3D"http://script.aculo.us/">http://script.aculo.us/</A>).<BR>
<BR>
I don't have a clou how I can handle this problem.<BR>
<BR>
The used Javascritp is like this:<BR>
<BR>
Element.Methods.Simulated =3D {<BR>
hasAttribute: function(element, attribute) {<BR>
var t =3D Element._attributeTranslations, node;<BR>
attribute =3D t.names[attribute] || attribute;<BR>
node =3D $(element).getAttributeNode(attribute);<BR>
return node && node.specified;<BR>
}<BR>
};<BR>
<BR>
<BR>
<BR>
Can anybody help me with my issue?<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Dennis Winter<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C852F2.482AFAD7--