Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Blur event on form items and setFieldErrors creates an endless loop on Chrome –7.0 RC

    Hello,

    Please see the following code:
    Code:
    isc.VLayout.create({
        ID: 'vertical',
        width: "100%",
        height: "100%",
        members: [
        isc.DynamicForm.create({
            ID: "exampleForm",
            width: 250,
            fields: [{
                type: "text",
                name: "name",
                title: "Name",
                defaultValue: "Bob",
                blur: function (form, item) {
                    exampleForm.setFieldErrors('name', 'Error', true);
                    alert(1);
                }
            },
            {
                name: "email",
                title: "Email",
                type: "text",
                defaultValue: "bob@isomorphic.com"
            }]
        })]
    });
    In IE and FF the blur event is only fired once, like it should be. The alert is only shown once. But in Chrome it creates an endless loop.

    How can I make the blur event on Chrome to behave like in IE and FF?

    Regards Thomas

    #2
    I don't see this behavior in 8.0. Also, don't use alert() because it can affect the event handling. Use isc.logWarn and check the developer console instead. Give this a try and see what you get in the log.

    Comment


      #3
      Hi David,

      thank you for your response! Yes the alert is there only to illustrate the issue. Replacing it with isc.logWarn('blur executed'); leads the same endless loop. I see it rattling in the console...

      Any other idea to solve the issue?

      Regards Thomas

      Comment


        #4
        Can you try this with 8.0 Beta?

        Comment


          #5
          In beta 8 this works. Any idea how to solve this in 7.0RC2?

          Comment


            #6
            I am looking for a SmartClient 8.0 developer for a 1 or 2 page application to start with.

            Can someone please tell me how to find one?

            David

            www.RescueMissionForChildren.org

            davidasa88@gmail.com

            Comment


              #7
              7.0 pre-dates Chrome. This is one of several issues that you might encounter using Chrome with 7.0, so it's best to upgrade to 8.0 if you need Chrome support.

              Comment

              Working...
              X