Hey all, I''m lost. I have a legacy JSP site. I have an Ajax.Request wired up to a mouseover event. This mouseover may be on "/ itemdetail.do?action=prepare_detail&itm_id=5694" and it may request info from "/itemdetail.do?action=prepare_detail&itm_id=3594". This works just as it should in Firefox. In IE7 the onException event gets fired. e.name returns ''error'' and e.message returns ''Unknown runtime error.''. I can''t get any of the onXXXs to fire. That little yellow triangle of hate appears in the left corner of the status bar signifying that there were errors on the page. After 4 days of pulling my hair out over this I''m beginning to think that something in the way that IE handles the jsp page that causes the transport to lose its scope. I''m looking for a savior. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tried replacing onmouseover with onmouseenter and onmouseleave in IE? Might be that the event fires to many times (with the bubbling and all that). Check out event.relatedTarget and descendantOf too for handling mouseout on non IE browsers. PS: You''ve got to share the code if you realy want someone to be able to help :) On 28 Feb, 06:38, Michelob <michelobm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey all, I''m lost. I have a legacy JSP site. I have an Ajax.Request > wired up to a mouseover event. This mouseover may be on "/ > itemdetail.do?action=prepare_detail&itm_id=5694" and it may request > info from "/itemdetail.do?action=prepare_detail&itm_id=3594". This > works just as it should in Firefox. In IE7 the onException event gets > fired. e.name returns ''error'' and e.message returns ''Unknown runtime > error.''. > > I can''t get any of the onXXXs to fire. > > That little yellow triangle of hate appears in the left corner of the > status bar signifying that there were errors on the page. After 4 > days of pulling my hair out over this I''m beginning to think that > something in the way that IE handles the jsp page that causes the > transport to lose its scope. > > I''m looking for a savior.--~--~---------~--~----~------------~-------~--~----~ 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''d be more than happy to give you code... I''ll even do one better. I made a 30 second screen recording to better illustrate what''s going on. To view that recording, go to: http://catalog.minnair.com:9080/storefrontB2BWEB/Navigation/AjaxRequestErrorExample/AjaxRequestErrorExample.html Here''s the code: function ItemToolTipInfo(itmId, elmId){ // NOTE: Inserts the Loading image $(elmId).innerHTML=''<img text-align="center" '' + ''src="/storefrontB2BWEB/images/Loading.gif" />'' // NOTE: Build Url var url=''/storefrontB2BWEB/itemdetail.do? action=prepare_detail&itm_id='' + itmId; // NOTE: Make request new Ajax.Request( url, { method: ''get'', contentType: ''text/html'', asynchronous: true, evalScripts: true, onComplete: function(transport) { // NOTE: Insert xhr response into div $(elmId).innerHTML=transport.responseText; // NOTE: Item description is now in the 9th tbody within the itemtooltip div. var itemToolTipInfo=$A($$(''#'' + elmId + '' tbody''))[8].innerHTML; // NOTE: wrap itemToolTipInfo in a table tag $(elmId).innerHTML=''<table id="itemDetailTable" width="450">'' + itemToolTipInfo + ''</table>''; // NOTE: hide the 9th row (tr) in the itemtooltip div // this removes the Extended price since it will always equal // the sell price. $A($$(''#'' + elmId + '' tr''))[8].hide(); }, on404: function(t) { alert(''on404: '' + t.statusText);}, on401: function(t) { alert(''on401: '' + t.statusText);}, on403: function(t) { alert(''on403: '' + t.statusText);}, on500: function(t) { alert(''on500: '' + t.statusText);}, on501: function(t) { alert(''on501: '' + t.statusText);}, onFailure: function(transport){alert(transport.responseText)}, onException: function(t,e){ $(elmId).innerHTML=$(elmId).innerHTML + ''<b>Request Failed</b><br />error name: '' + e.name + ''<br />error message: '' + e.message; } } ); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
ah now I get what you were refering to :) try adding the parameters in the parameters option of ajax.request maybe, hard to say what the problem is without trying it out. but perhaps IE messes up the uri when you pass the query like that. Now: var url=''/storefrontB2BWEB/itemdetail.do? action=prepare_detail&itm_id='' + itmId; new Ajax.Request( url, { method: ''get'', Try: var url=''/storefrontB2BWEB/itemdetail.do; var params = new Hash(); params.set(''action'', ''prepare_detail''); params.set(''itm_id'', encodeURIComponent(itmId)); new Ajax.Request( url, { method: ''get'', parameters: params'', On 28 Feb, 18:22, Michelob <michelobm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''d be more than happy to give you code... I''ll even do one better. I > made a 30 second screen recording to better illustrate what''s going > on. To view that recording, go to: > > http://catalog.minnair.com:9080/storefrontB2BWEB/Navigation/AjaxReque... > > Here''s the code: > > function ItemToolTipInfo(itmId, elmId){ > // NOTE: Inserts the Loading image > $(elmId).innerHTML=''<img text-align="center" '' > + ''src="/storefrontB2BWEB/images/Loading.gif" />'' > // NOTE: Build Url > var url=''/storefrontB2BWEB/itemdetail.do? > action=prepare_detail&itm_id='' + itmId; > // NOTE: Make request > new Ajax.Request( > url, { > method: ''get'', > contentType: ''text/html'', > asynchronous: true, > evalScripts: true, > onComplete: function(transport) { > // NOTE: Insert xhr response into div > $(elmId).innerHTML=transport.responseText; > > // NOTE: Item description is now in the 9th tbody within the > itemtooltip div. > var itemToolTipInfo=$A($$(''#'' + elmId + '' tbody''))[8].innerHTML; > > // NOTE: wrap itemToolTipInfo in a table tag > $(elmId).innerHTML=''<table id="itemDetailTable" width="450">'' > + itemToolTipInfo > + ''</table>''; > > // NOTE: hide the 9th row (tr) in the itemtooltip div > // this removes the Extended price since it will always equal > // the sell price. > $A($$(''#'' + elmId + '' tr''))[8].hide(); > }, > on404: function(t) { alert(''on404: '' + t.statusText);}, > on401: function(t) { alert(''on401: '' + t.statusText);}, > on403: function(t) { alert(''on403: '' + t.statusText);}, > on500: function(t) { alert(''on500: '' + t.statusText);}, > on501: function(t) { alert(''on501: '' + t.statusText);}, > onFailure: function(transport){alert(transport.responseText)}, > onException: function(t,e){ > $(elmId).innerHTML=$(elmId).innerHTML > + ''<b>Request Failed</b><br />error name: '' > + e.name > + ''<br />error message: '' > + e.message; > > } > } > ); > > }--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---