•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 374,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,838 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1673 | Replies: 3 | Solved
![]() |
•
•
Join Date: Feb 2008
Posts: 19
Reputation:
Rep Power: 1
Solved Threads: 0
Hi
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
http://developer.yahoo.com/yui/examp...ced_clean.html
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
I ve spent the whole day trying to fix the error, Can you point me to the error?
thanks.
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
http://developer.yahoo.com/yui/examp...ced_clean.html
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="ex" >
<thead>
<tr>
<th>Name</th>
<th>city</th>
<th>Viseted</th>
<th>Date</th>
<th>Otption</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#nogo">roja</a></td>
<td>marbella</td>
<td>418</td>
<td>08/08/2008</td>
<td><a href="#nogo"><b>add</b></a></td>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
YAHOO.util.Event.addListener(window, "load", function() {
YAHOO.example.EnhanceFromMarkup = new function() {
var myColumnDefs = [
{key:"name",label:"Name",sortable:true},
{key:"city",label:"City", sortable:true},
{key:"visited",label:"Visited",sortable:true},
{key:"date",label:"Date",formatter:YAHOO.widget.DataTable.formatDate,sortable:tr\
ue},
{key:"option",label:"Option",sortable:false},
];
this.myDataSource = new
YAHOO.util.DataSource(YAHOO.util.Dom.get("ex"));
this.myDataSource.responseType =
YAHOO.util.DataSource.TYPE_HTMLTABLE;
this.myDataSource.responseSchema = {
fields: [
{key:"name"},
{key:"city"},
{key:"visited"},
{key:"date",parser:YAHOO.util.DataSource.parseDate},
{key:"option"},
]
};
this.myDataTable = new YAHOO.widget.DataTable("markup",
myColumnDefs, this.myDataSource,
{sortedBy:{key:"date",dir:"desc"}});
};
});
</script>
...thanks.
Asking your question in the official YUI forum/newsgroup would be more beneficial IMO since almost everyone here uses his/her choice of Javascript library.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
•
•
Join Date: Feb 2008
Posts: 19
Reputation:
Rep Power: 1
Solved Threads: 0
I asked my question there, and I got the answer
thanks for your reply
•
•
•
•
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.
Satyam
Glad I could point you in the right direction. :-)
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator library linux microsoft msdn office operating prevent javascript menu from getting hidden under flash movies site software sql system vista web
- confirm window? button labels to change (JavaScript / DHTML / AJAX)
- Timer Problem in Javascript (JavaScript / DHTML / AJAX)
- Calling Different Iframes in Page (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Call PHP webservices with Ajax
- Next Thread: Rotating banners of all types with random startup?



Linear Mode