Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4031

fragment-component table/tr/td problems on IE

XMLWordPrintable

    • ZK 8.6.0 S1

      Steps to Reproduce

      run the fragment-foreach-error.zul

      Current Result

      console error in IE

      SCRIPT5009: 'each' is undefined
      zkmax.wgt.wpd (97,12270)
      

      Expected Result

      generating tables works across browsers

      Debug Info

      when using just <div> elements there's no such problem

      Workaround

      use <div/> with CSS styles to achieve a table layout

      e.g.

      <style>
      	.mytable {
      		display: table;
      	}
      	.mytable > div {
      		display: table-row;
      	}
      	.mytable > div > div {
      		display: table-cell;
      	}
      </style>
      ...
      <div class="mytable">
      	<forEach items="@load(cars)">
      		<div><!-- row -->
      			<div><!-- cell-->
      				<div textContent="@load(each)"/>
      			</div>
      		</div>
      	</forEach>
      </div>
      

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours Time Not Required
                4h