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. 

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. 

The used Javascritp is like this:

Element.Methods.Simulated = {
  hasAttribute: function(element, attribute) {
    var t = Element._attributeTranslations, node;
    attribute = t.names[attribute] || attribute;
    node = $(element).getAttributeNode(attribute);
    return node && node.specified;
  }
};



Can anybody help me with my issue?





Dennis Winter







Reply via email to