Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1159

Rollover component and async DirectLink - Dojo: Error evaluating script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.1
    • JavaScript
    • None
    • FF 1.5.0.8

    Description

      Refreshing nested DOM element after asynchronous request (async DirectLink was used) containing Rollover element throws

      ERROR: Error evaluating script:
      //<![CDATA[
      var tapestry._preload = new Array();
      if (document.images)

      { tapestry._preload[0] = new Image(); tapestry._preload[0].src = "/MultiPegaz/images/del.gif"; tapestry._preload[1] = new Image(); tapestry._preload[1].src = "/MultiPegaz/images/del_off.gif"; }


      tapestry.mouseOver_$Rollover=function()

      { if (document.images) document.getElementById('$Rollover').src = tapestry._preload[0].src; }


      tapestry.mouseOut_$Rollover=function()

      { if (document.images) document.getElementById('$Rollover').src = tapestry._preload[1].src; }


      //]]>
      [SyntaxError: missing ; before statement]

      There is no ; after each anonymous function definition

      Attachments

        1. Test.html
          1 kB
          Grzegorz Mrowka
        2. Test.java
          1 kB
          Grzegorz Mrowka
        3. palette_deselect.gif
          1 kB
          Grzegorz Mrowka
        4. palette_deselect_dis.gif
          1 kB
          Grzegorz Mrowka

        Activity

          People

            jkuhnert Jesse Kuhnert
            mrowekg Grzegorz Mrowka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: