[jQuery] Re: Load into tbody, errors IE6
So glad to hear that it worked! Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2007, at 2:09 PM, Josh Nathanson wrote: Karl, I've got it working now, using $.get and appendTo. I knew it couldn't be as hard as I was making it. Thanks a million! -- Josh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Wednesday, June 27, 2007 10:16 AM Subject: [jQuery] Re: Load into tbody, errors IE6 Hi Josh, I wonder if you could get your through a different ajax method and then append it to the once it's retrieved. Something like this, perhaps: $.get('prodsched/dom_dpdcolorrow.html', function(data){ $(data).appendTo('#' + asp + '_tbody'); }); Not positive it will work, but worth a shot. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2007, at 12:27 PM, JoshN wrote: OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: Hey all, I have a script that does an ajax load into a tbody jQuery object, like so: $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody $tbl.load("prodsched/dom_dpdcolorrow.html", {}, addrow ); // load html content (tr's) into tbody The html file consists of a table row with some junk in it. It works great on Firefox but gives the error "unknown runtime error" in IE6. Is this an issue with IE6 not being able to innerHTML a tbody or something? If so is there a workaround? Thanks for any help. -- Josh
[jQuery] Re: Load into tbody, errors IE6
Karl, I've got it working now, using $.get and appendTo. I knew it couldn't be as hard as I was making it. Thanks a million! -- Josh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Wednesday, June 27, 2007 10:16 AM Subject: [jQuery] Re: Load into tbody, errors IE6 Hi Josh, I wonder if you could get your through a different ajax method and then append it to the once it's retrieved. Something like this, perhaps: $.get('prodsched/dom_dpdcolorrow.html', function(data){ $(data).appendTo('#' + asp + '_tbody'); }); Not positive it will work, but worth a shot. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2007, at 12:27 PM, JoshN wrote: OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: Hey all, I have a script that does an ajax load into a tbody jQuery object, like so: $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody $tbl.load("prodsched/dom_dpdcolorrow.html", {}, addrow ); // load html content (tr's) into tbody The html file consists of a table row with some junk in it. It works great on Firefox but gives the error "unknown runtime error" in IE6. Is this an issue with IE6 not being able to innerHTML a tbody or something? If so is there a workaround? Thanks for any help. -- Josh
[jQuery] Re: Load into tbody, errors IE6
Thanks Karl, I'll give that a try. -- Josh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Wednesday, June 27, 2007 10:16 AM Subject: [jQuery] Re: Load into tbody, errors IE6 Hi Josh, I wonder if you could get your through a different ajax method and then append it to the once it's retrieved. Something like this, perhaps: $.get('prodsched/dom_dpdcolorrow.html', function(data){ $(data).appendTo('#' + asp + '_tbody'); }); Not positive it will work, but worth a shot. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2007, at 12:27 PM, JoshN wrote: OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: Hey all, I have a script that does an ajax load into a tbody jQuery object, like so: $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody $tbl.load("prodsched/dom_dpdcolorrow.html", {}, addrow ); // load html content (tr's) into tbody The html file consists of a table row with some junk in it. It works great on Firefox but gives the error "unknown runtime error" in IE6. Is this an issue with IE6 not being able to innerHTML a tbody or something? If so is there a workaround? Thanks for any help. -- Josh
[jQuery] Re: Load into tbody, errors IE6
DWRUtil.removeAllRows("testBody"); DWRUtil.addRows("testBody", resultarray, [ ID , FIELD ]) I think that those methods probably create/append nodes rather than use innerHTML. I recognize those methods from CFAjax. -- Josh - Original Message - From: "Terry B" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, June 27, 2007 9:50 AM Subject: [jQuery] Re: Load into tbody, errors IE6 i dont have any problems with mine in IE6 var ID = function(query) { return query.ID }; var FIELD = function(query) { return query.FIELD }; function NewQueryResult(result) { DWRUtil.removeAllRows("testBody"); DWRUtil.addRows("testBody", resultarray, [ ID , FIELD ]) } ~Terry On Jun 27, 12:27 pm, JoshN <[EMAIL PROTECTED]> wrote: OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Hey all, > I have a script that does an ajax load into a tbody jQuery object, like > so: > $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody > $tbl.load("prodsched/dom_dpdcolorrow.html", > {}, > addrow > ); // load html content (tr's) into tbody > The html file consists of a table row with some junk in it. > It works great on Firefox but gives the error "unknown runtime error" > in > IE6. Is this an issue with IE6 not being able to innerHTML a tbody or > something? If so is there a workaround? Thanks for any help. > -- Josh- Hide quoted text - - Show quoted text -
[jQuery] Re: Load into tbody, errors IE6
Hi Josh, I wonder if you could get your through a different ajax method and then append it to the once it's retrieved. Something like this, perhaps: $.get('prodsched/dom_dpdcolorrow.html', function(data){ $(data).appendTo('#' + asp + '_tbody'); }); Not positive it will work, but worth a shot. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 27, 2007, at 12:27 PM, JoshN wrote: OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: Hey all, I have a script that does an ajax load into a tbody jQuery object, like so: $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody $tbl.load("prodsched/dom_dpdcolorrow.html", {}, addrow ); // load html content (tr's) into tbody The html file consists of a table row with some junk in it. It works great on Firefox but gives the error "unknown runtime error" in IE6. Is this an issue with IE6 not being able to innerHTML a tbody or something? If so is there a workaround? Thanks for any help. -- Josh
[jQuery] Re: Load into tbody, errors IE6
i dont have any problems with mine in IE6 var ID = function(query) { return query.ID }; var FIELD = function(query) { return query.FIELD }; function NewQueryResult(result) { DWRUtil.removeAllRows("testBody"); DWRUtil.addRows("testBody", resultarray, [ ID , FIELD ]) } ~Terry On Jun 27, 12:27 pm, JoshN <[EMAIL PROTECTED]> wrote: > OK, after some Googling I found out that in IE6, innerHTML within a > table is read-only. Since the jQuery load method uses innerHTML, you > can't load a into a table. Crap. > > On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > > > > > Hey all, > > > I have a script that does an ajax load into a tbody jQuery object, like so: > > > $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody > > $tbl.load("prodsched/dom_dpdcolorrow.html", > > {}, > > addrow > > ); // load html content (tr's) into tbody > > > The html file consists of a table row with some junk in it. > > > It works great on Firefox but gives the error "unknown runtime error" in > > IE6. Is this an issue with IE6 not being able to innerHTML a tbody or > > something? If so is there a workaround? Thanks for any help. > > > -- Josh- Hide quoted text - > > - Show quoted text -
[jQuery] Re: Load into tbody, errors IE6
OK, after some Googling I found out that in IE6, innerHTML within a table is read-only. Since the jQuery load method uses innerHTML, you can't load a into a table. Crap. On Jun 26, 6:01 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a script that does an ajax load into a tbody jQuery object, like so: > > $tbl = $("#" + asp + "_tbody"); // dynamically finds tbody > $tbl.load("prodsched/dom_dpdcolorrow.html", > {}, > addrow > ); // load html content (tr's) into tbody > > The html file consists of a table row with some junk in it. > > It works great on Firefox but gives the error "unknown runtime error" in > IE6. Is this an issue with IE6 not being able to innerHTML a tbody or > something? If so is there a workaround? Thanks for any help. > > -- Josh