struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Validation in ie5
Date Thu, 05 Jan 2006 10:22:08 GMT
I can't see any difference between the two version of the retrieveFormName()
function you've pasted here.

Also can you find out whats on line 1361?

Niall

----- Original Message ----- 
From: <Kristian.L.Petersen@tietoenator.com>
Sent: Thursday, January 05, 2006 9:41 AM


Hi, I have replaced :



function retrieveFormName(form) {

      if (form.getAttributeNode) {

          if (form.getAttributeNode("id") &&
form.getAttributeNode("id").value) {
              return form.getAttributeNode("id").value;
          } else {
              return form.getAttributeNode("name").value;
          }
      } else if (form.getAttribute) {

          if (form.getAttribute("id")) {

              return form.getAttribute("id");

          } else {

              form.attributes["name"];

          }

      } else {

          if (form.id) {

              return form.id;

          } else {

              return form.name;

          }

      }



  }





With



function retrieveFormName(form) {

    if (form.getAttributeNode) {

        if (form.getAttributeNode("id") &&

            form.getAttributeNode("id").value) {

            return form.getAttributeNode("id").value;

        } else {

            return form.getAttributeNode("name").value;

        }

    } else if (form.getAttribute) {

        if (form.getAttribute("id")) {

            return form.getAttribute("id");

        } else {

            return form.attributes["name"];

        }

    } else {

        if (form.id) {

            return form.id;

        } else {

            return form.name;

        }

    }

 }



But I still get the same error :



A Runtime error has occurred.
Do you wish to Debug ?
Line: 1361
Error: Expected ';'






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message