I don't know if this is the right place to post my problem.
I m new to YUI, I ve modified the exemple listed here
well, FireFox and Opera diplay what I want, but as always the IE drive me nut, and this time IE7/IE6 gives me errors,
I did few changes

<body class=" yui-skin-sam">
<div id="markup">
<table id="[B]ex[/B]" >

<td>[B]<a href="#nogo">roja</a[/B]></td>
<td>[B]<a href="#nogo"><b>add</b></a>[/B]</td>

<script type="text/javascript">
YAHOO.util.Event.addListener(window, "load", function() {
YAHOO.example.EnhanceFromMarkup = new function() {
var myColumnDefs = [
{key:"city",label:"City", sortable:true},



this.myDataSource = new
this.myDataSource.responseType =
this.myDataSource.responseSchema = {
[B]fields: [

this.myDataTable = new YAHOO.widget.DataTable("markup",
myColumnDefs, this.myDataSource,


I ve spent the whole day trying to fix the error, Can you point me to the error?

I asked my question there, and I got the answer

Don't put that last comma in the column definitions and fields arrays.
Instead of ignoring it, IE assumes an extra undefined element in the array,
after the comma, so it reports the length of the array one element longer
than it should, making many loops fail.


thanks for your reply :)

This question has already been answered. Start a new discussion instead.