I have been banging my head against this problem for a while and seem to be overlooking something. I have a div that I''m trying to populate through an ajax request. It works like a charm in Firefox, but I can''t seem to make it work in IE. I''ve read through the documentation and have gone through the messages that seem to be related to this issue. Does anyone have any thoughts on what I''m missing? - Thomas *** HTML SNIPPET *** <form name="datefilter" id="datefilter"> <div id="date-container" class="filter_box"> <div id="date-header"> <div id="date-range"> <div id="date-startbox"> <div id="date-startbox-head"> <a href="javascript:void(0)" id="date-startbox-head-link" onclick="toggledatecalendar(''date-startbox'', ''date-endbox'')" class="active">Start</a> </div> <div id="date-startbox-display"></div> </div> <div id="date-endbox"> <div id="date-endbox-head"> <a href="javascript:void(0)" id="date-endbox-head-link" onclick="toggledatecalendar(''date-endbox'', ''date-startbox'')">End</a> </div> <div id="date-endbox-display"></div> </div> <div style="clear:both"></div> </div> </div> <div id="date-calendar"> <div id="date-startbox-value-container"> <input type="hidden" id="date-startbox-value" name="date_startbox_value" value="" /> </div> <div id="date-endbox-value-container" style="display:none"> <input type="hidden" id="date-endbox-value" name="date_endbox_value" value="" /> </div> </div> </div> <div id="filter-box"></div> </form> *** JAVASCRIPT *** function drawfilterbox (l, sp, co, cl, se, te, ds, ad, act, temp, coreteams) { $(''filter-box'').update (''Drawing the filter.''); new Ajax.Request (''rpc.php'', { parameters: { rpc: ''listfilter'', league: l, sport: sp, conference: co, club: cl, season: se, team: te, disableseason: ds, affecteddiv: ad, action: act, template: temp, core: coreteams }, method: ''post'', insertion: Insertion.Bottom, onSuccess: function (transport) { if ($(''filter-box'')) { $(''filter-box'').update (transport.responseText ); alert (''filter-box should now be updated.\n\n'' + transport.responseText); } else { alert ("I couldn''t find the filter-box div."); } }, onFailure: function () { alert (''Unable to draw filter.''); } }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
take a look to this function Ajax.Updater http://www.prototypejs.org/api/ajax/updater On Nov 28, 2007 11:32 AM, Woodham, Thomas <twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org> wrote:> I have been banging my head against this problem for a while and seem to > be overlooking something. I have a div that I''m trying to populate through > an ajax request. It works like a charm in Firefox, but I can''t seem to make > it work in IE. I''ve read through the documentation and have gone through > the messages that seem to be related to this issue. Does anyone have any > thoughts on what I''m missing? > > - Thomas > > > > *** HTML SNIPPET *** > > <form name="datefilter" id="datefilter"> > <div id="date-container" class="filter_box"> > <div id="date-header"> > > <div id="date-range"> > <div id="date-startbox"> > <div id="date-startbox-head"> > <a href="javascript:void(0)" > id="date-startbox-head-link" onclick="toggledatecalendar(''date-startbox'', > ''date-endbox'')" class="active">Start</a> > </div> > <div id="date-startbox-display"></div> > </div> > <div id="date-endbox"> > > <div id="date-endbox-head"> > <a href="javascript:void(0)" > id="date-endbox-head-link" onclick="toggledatecalendar(''date-endbox'', > ''date-startbox'')">End</a> > </div> > <div id="date-endbox-display"></div> > </div> > <div style="clear:both"></div> > </div> > </div> > > <div id="date-calendar"> > <div id="date-startbox-value-container"> > <input type="hidden" id="date-startbox-value" > name="date_startbox_value" value="" /> > </div> > <div id="date-endbox-value-container" style="display:none"> > <input type="hidden" id="date-endbox-value" > name="date_endbox_value" value="" /> > </div> > </div> > </div> > > <div id="filter-box"></div> > </form> > > *** JAVASCRIPT *** > > > function drawfilterbox (l, sp, co, cl, se, te, ds, ad, act, temp, > coreteams) { > $(''filter-box'').update (''Drawing the filter.''); > new Ajax.Request (''rpc.php'', > { parameters: { > rpc: ''listfilter'', > league: l, > sport: sp, > conference: co, > club: cl, > season: se, > team: te, > disableseason: ds, > affecteddiv: ad, > action: act, > template: temp, > core: coreteams > }, > method: ''post'', > insertion: Insertion.Bottom, > onSuccess: function (transport) { > if ($(''filter-box'')) { > $(''filter-box'').update (transport.responseText ); > alert (''filter-box should now be updated.\n\n'' + > transport.responseText); > } else { > alert ("I couldn''t find the filter-box div."); > } > }, > onFailure: function () { > alert (''Unable to draw filter.''); > } > }); > } > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I have. I switched from Ajax.Updater to Ajax.Request because of the same issue. Thomas Woodham Data Editor - The Greenville News 864.298.4302 [BECAUSE THE NEWS NEVER STOPS] ________________________________ From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] On Behalf Of Elden Sent: Wednesday, November 28, 2007 12:47 PM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: unable to update div in IE take a look to this function Ajax.Updater http://www.prototypejs.org/api/ajax/updater On Nov 28, 2007 11:32 AM, Woodham, Thomas < twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org<mailto:twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org>> wrote: I have been banging my head against this problem for a while and seem to be overlooking something. I have a div that I''m trying to populate through an ajax request. It works like a charm in Firefox, but I can''t seem to make it work in IE. I''ve read through the documentation and have gone through the messages that seem to be related to this issue. Does anyone have any thoughts on what I''m missing? - Thomas *** HTML SNIPPET *** <form name="datefilter" id="datefilter"> <div id="date-container" class="filter_box"> <div id="date-header"> <div id="date-range"> <div id="date-startbox"> <div id="date-startbox-head"> <a href="javascript:void(0)" id="date-startbox-head-link" onclick="toggledatecalendar(''date-startbox'', ''date-endbox'')" class="active">Start</a> </div> <div id="date-startbox-display"></div> </div> <div id="date-endbox"> <div id="date-endbox-head"> <a href="javascript:void(0)" id="date-endbox-head-link" onclick="toggledatecalendar(''date-endbox'', ''date-startbox'')">End</a> </div> <div id="date-endbox-display"></div> </div> <div style="clear:both"></div> </div> </div> <div id="date-calendar"> <div id="date-startbox-value-container"> <input type="hidden" id="date-startbox-value" name="date_startbox_value" value="" /> </div> <div id="date-endbox-value-container" style="display:none"> <input type="hidden" id="date-endbox-value" name="date_endbox_value" value="" /> </div> </div> </div> <div id="filter-box"></div> </form> *** JAVASCRIPT *** function drawfilterbox (l, sp, co, cl, se, te, ds, ad, act, temp, coreteams) { $(''filter-box'').update (''Drawing the filter.''); new Ajax.Request (''rpc.php'', { parameters: { rpc: ''listfilter'', league: l, sport: sp, conference: co, club: cl, season: se, team: te, disableseason: ds, affecteddiv: ad, action: act, template: temp, core: coreteams }, method: ''post'', insertion: Insertion.Bottom, onSuccess: function (transport) { if ($(''filter-box'')) { $(''filter-box'').update (transport.responseText ); alert (''filter-box should now be updated.\n\n'' + transport.responseText); } else { alert ("I couldn''t find the filter-box div."); } }, onFailure: function () { alert (''Unable to draw filter.''); } }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 28, 2007, at 12:32 PM, Woodham, Thomas wrote:> $(''filter-box'').update (transport.responseText ); > alert (''filter-box should now be updated.\n\n'' + > transport.responseText); > } else { > alert ("I couldn''t find the filter-box div."); > } > }, > onFailure: function () { > alert (''Unable to draw filter.'');Do any of your alerts fire in IE, or does nothing at all work at all? Can you try adding Firebug Lite to the mix and see if it flags anything for you? Walter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 28, 2007, at 12:32 PM, Woodham, Thomas wrote:> onSuccess: function (transport) {Also, try making this onComplete, and see if it makes any difference. Walter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the ideas. I switched onSuccess to onComplete and it didn''t affect anything.> Do any of your alerts fire in IE, or does nothing at all work at all? > Can you try adding Firebug Lite to the mix and see if it flags anything for you?In both browsers, alert (''filter-box should now be updated.\n\n'' + transport.responseText); is fired as expected complete with the source code I''m looking for. The odd thing to me is the update statement fails to fire in IE only.> $(''filter-box'').update (transport.responseText ); > alert (''filter-box should now be updated.\n\n'' + > transport.responseText); > } else { > alert ("I couldn''t find the filter-box div."); > } > }, > onFailure: function () { > alert (''Unable to draw filter.'');Thomas Woodham Data Editor - The Greenville News 864.298.4302 [BECAUSE THE NEWS NEVER STOPS] -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] On Behalf Of Walter Lee Davis Sent: Wednesday, November 28, 2007 3:33 PM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: unable to update div in IE On Nov 28, 2007, at 12:32 PM, Woodham, Thomas wrote:> onSuccess: function (transport) {Also, try making this onComplete, and see if it makes any difference. Walter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
sometime IE it''s very very special ¬¬ try this and i hope that works Element.update("filter-box",transport.responseText); On Nov 28, 2007 3:33 PM, Woodham, Thomas <twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org> wrote:> > Thanks for the ideas. > > I switched onSuccess to onComplete and it didn''t affect anything. > > > Do any of your alerts fire in IE, or does nothing at all work at all? > > Can you try adding Firebug Lite to the mix and see if it flags anything > for you? > > In both browsers, > > alert (''filter-box should now be updated.\n\n'' + > transport.responseText); > > is fired as expected complete with the source code I''m looking for. The > odd thing to me is the update statement fails to fire in IE only. > > > $(''filter-box'').update (transport.responseText ); > > alert (''filter-box should now be updated.\n\n'' + > > transport.responseText); > > } else { > > alert ("I couldn''t find the filter-box div."); > > } > > }, > > onFailure: function () { > > alert (''Unable to draw filter.''); > > > Thomas Woodham > Data Editor - The Greenville News > 864.298.4302 > > [BECAUSE THE NEWS NEVER STOPS] > > > -----Original Message----- > From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto: > rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Walter Lee Davis > Sent: Wednesday, November 28, 2007 3:33 PM > To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails-spinoffs] Re: unable to update div in IE > > > > On Nov 28, 2007, at 12:32 PM, Woodham, Thomas wrote: > > > onSuccess: function (transport) { > > Also, try making this onComplete, and see if it makes any difference. > > Walter > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
arrrgh! No joy, though this approach still works in Firefox. Thomas Woodham Data Editor - The Greenville News 864.298.4302 [BECAUSE THE NEWS NEVER STOPS] ________________________________ From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] On Behalf Of Elden Sent: Wednesday, November 28, 2007 5:02 PM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: unable to update div in IE sometime IE it''s very very special ¬¬ try this and i hope that works Element.update("filter-box",transport.responseText); On Nov 28, 2007 3:33 PM, Woodham, Thomas < twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org<mailto:twoodham-lm4C025e6zTdToeN5bPUx9BPR1lH4CV8@public.gmane.org>> wrote: Thanks for the ideas. I switched onSuccess to onComplete and it didn''t affect anything.> Do any of your alerts fire in IE, or does nothing at all work at all? > Can you try adding Firebug Lite to the mix and see if it flags anything for you?In both browsers, alert (''filter-box should now be updated.\n\n'' + transport.responseText); is fired as expected complete with the source code I''m looking for. The odd thing to me is the update statement fails to fire in IE only.> $(''filter-box'').update (transport.responseText ); > alert (''filter-box should now be updated.\n\n'' + > transport.responseText); > } else { > alert ("I couldn''t find the filter-box div."); > } > }, > onFailure: function () { > alert (''Unable to draw filter.'');Thomas Woodham Data Editor - The Greenville News 864.298.4302 [BECAUSE THE NEWS NEVER STOPS] -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:rubyonrails-spinoffs@googlegroups.com> [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>] On Behalf Of Walter Lee Davis Sent: Wednesday, November 28, 2007 3:33 PM To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:rubyonrails-spinoffs@googlegroups.com> Subject: [Rails-spinoffs] Re: unable to update div in IE On Nov 28, 2007, at 12:32 PM, Woodham, Thomas wrote:> onSuccess: function (transport) {Also, try making this onComplete, and see if it makes any difference. Walter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-28 15:26 UTC
Re: unable to update div in IE
Hi Thomas! I am having the same problem on and on. It works without any trouble in firefox but for any unknown reason NOT in IE.... Did you find any solution or reason for this IE issue?? Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, First thing to check: are all your ids unique on the page ? Do you have an element with a name attribute of ''filter-box'' ? (IE shares the same namespace for name and id attributes). Hope this helps! Best, Tobie On Dec 28, 4:26 pm, "deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi Thomas! > > I am having the same problem on and on. It works without any trouble > in firefox but for any unknown reason NOT in IE.... > > Did you find any solution or reason for this IE issue?? > > Max--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-28 15:47 UTC
Re: unable to update div in IE
Hi Tobie, thanks for your quick response. well I am reading a static xml through the Ajax.Request and my ids are all unique and without any "_" underscores.. method: ''get'', onComplete: function(transport){ var site = transport.responseXML.documentElement; $(''resultContainer'').update(site); alert($(''resultContainer'').innerHTML); }, the alert in firefox shows the xml, the alert in IE is empty. Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
oh, that''s totally unrelated to the previous issue. To tell you the truth, I have no experience in parsing xml in JS, as I much rather rely on JSON. If you want to use Element#update, you should be loading HTML, not XML, and using the responseText property. Best, Tobie On Dec 28, 4:47 pm, "deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi Tobie, > > thanks for your quick response. well I am reading a static xml through > the Ajax.Request and my ids are all unique and without any "_" > underscores.. > > method: ''get'', > onComplete: function(transport){ > > var site = transport.responseXML.documentElement; > > $(''resultContainer'').update(site); > > alert($(''resultContainer'').innerHTML); > > }, > > the alert in firefox shows the xml, the alert in IE is empty. > > Max--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-28 15:57 UTC
Re: unable to update div in IE
oh, sorry, for the wrong issue, but I also read a smiliar thread with responseXML insteadof responseText but having the same problems. but maybe your answers helps, too. is it in general possible to Element#update / appendChild with XML Tags instead of HTML Tags in IE? Maybe there''s my main error !? Thanks, Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You''ll need to parse the XML to do that. You might either need to insert it with Element#insert or transform it into an HTML string before ou insert it. Either way, I encourage you to try using HTML instead, much better for your usecase. Best, Tobie On Dec 28, 4:57 pm, "deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> oh, sorry, for the wrong issue, but I also read a smiliar thread with > responseXML insteadof responseText but having the same problems. > but maybe your answers helps, too. is it in general possible to > Element#update / appendChild with XML Tags instead of HTML Tags in IE? > Maybe there''s my main error !? > > Thanks, > Max--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-28 16:21 UTC
Re: unable to update div in IE
This may sound stupid, but how do I transform my xml to html to us it instead? my xml consists only of data tags, no html tags. so I just want to append it in the background to extract the information with $$ function. And the question that drives me nuts is why''s there a responseXML when you cannot make use of $ or $$ functions in IE... Maybe I don''t see the tree... Thanks for your patience, Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-28 16:28 UTC
Re: unable to update div in IE
Or even better. You tell me a the client lib you use to parse a xml from a url to JSON, I immediately stick to JSON without hesitating... ;-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html http://www.thomasfrank.se/xml_to_json.html Haven''t tested either. On Dec 28, 5:28 pm, "deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" <deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Or even better. You tell me a the client lib you use to parse a xml > from a url to JSON, I immediately stick to JSON without hesitating... > > ;-)--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
This may sound stupid, but how do I transform my xml to html to us it instead? On the server... or using regular JS. you''re also welcomed to submit a patch to make $$ work on responseXML ;) Best, Tobie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I have found no magic bullet to convert XML to JSON. I started building an Ajax project where I was serving my data as XML and ran into the same IE vs Firefox problems. After bashing my head against the wall for a few days I gave up on using Prototype to fetch my XML and did it the old fashioned way: if (document.implementation && document.implementation.createDocument) { var parser=new DOMParser(); xmlDoc=parser.parseFromString('''',"text/xml"); xmlDoc.load(''data.xml''); x=setTimeout(''loadForm()'',500) //pray that the xml loads in 500 ms. //loadForm() is my function to parse the XML } if (window.ActiveXObject) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.onreadystatechange = function () { if (xmlDoc.readyState == 4) loadForm() }; xmlDoc.load(''data.xml''); } Because that was a really ugly solution, I decided to scrap the XML method and re-wrote my server code to spit out JSON instead. It was elegant, my client code was smaller, faster and easier to read. I''m never going back to XML. On Dec 28, 2:58 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html > > http://www.thomasfrank.se/xml_to_json.html > > Haven''t tested either. > > On Dec 28, 5:28 pm, "deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org" > > <deveis...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > Or even better. You tell me a the client lib you use to parse a xml > > from a url to JSON, I immediately stick to JSON without hesitating... > > > ;-)--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
deveismax-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Dec-30 15:15 UTC
Re: unable to update div in IE
You are both right, JSON is way more smart. My problem is that there won''t be any dynamic serverside :( so I have to deal with "ugly" client code... Well hope to find some time to get more into $$ and responseXML ;) Thanks both Best, Max --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---