Forum
Dammit, man. I've been chasing this one all day long. getRowData not working with jQuery 1.3.1 or 1.3.2. I had to revert to 1.2.6. Is anyone else still having this problem?
I can export data to an excel file in FF/Chrome, but not IE7. After going to 1.2.6, I can export in IE.
function export_data()
{
var mya=new Array();
mya=$("#list").getDataIDs(); // Get All IDs
var data=$("#list").getRowData(mya[0]); // Get First row to get the labels (jquery 1.3.1 & 1.3.2 NOT WORK HERE. had to use 1.2.6)
var colNames=new Array();
var x=0;
for (var i in data){colNames[x++]=i;} // capture col names
// var html="";
var html="<%=xls_header%>"+"\\n"; // add header row
html=html.replace(/,/g,"\\t"); // tab-delimit header row
for(var r=0;r
07:43
Moderators
30/10/2007
Hello,
What you have if you make alert(mya[0])?
Also check what values do you have in mya.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
In IE, mya[0] was undefined, and the array was empty. I did get data in Firefox.
Then, when I reverted back to the older (1.2.6) version of jQuery, all was well in IE. I am currently having to use the older version of jQuery because of this. It seemed to be a bug with nth-child... Let me know if you find anything.
Most Users Ever Online: 715
Currently Online:
74 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66