Hi, I''m having troubles using form_remote_tag to render a partial (a new row in a table). It works on Firefox but with IE 6 nothing happens when I submit the form. I''m running WEBrick on windows localhost. Here is what I noticed : * using Firefox: 127.0.0.1 - - [02/Jul/2005:14:35:35 W. Europe Daylight Time] "POST /item/addItemRow HTTP/1.1" 200 267 - -> /item/addItemRow * using IE : 127.0.0.1 - - [02/Jul/2005:14:35:50 W. Europe Daylight Time] "POST /item/addItemRow HTTP/1.1" 200 267 http://127.0.0.1:3000/item/list -> /item/addItemRow Does anybody knows why with IE it''s "http://127.0.0.1:3000/item/list" while with Firefox it''s "-" ? Does it make any difference, or what else could be the problem? Regards Chris
I know it''s not quite the same problem, but take a look here: http://dema.ruby.com.br/articles/2005/05/06/be-careful-when-mixing-ajax-and-popup-windows-on-firefox To see if it rings a bell... Are you using popup windows to make those AJAX calls? rgds Dema http://dema.ruby.com.br/ Chris wrote:> Hi, > > I''m having troubles using form_remote_tag to render a partial (a new > row in a table). It works on Firefox but with IE 6 nothing happens when > I submit the form. > > I''m running WEBrick on windows localhost. > Here is what I noticed : > > * using Firefox: > 127.0.0.1 - - [02/Jul/2005:14:35:35 W. Europe Daylight Time] "POST > /item/addItemRow HTTP/1.1" 200 267 > - -> /item/addItemRow > > * using IE : > 127.0.0.1 - - [02/Jul/2005:14:35:50 W. Europe Daylight Time] "POST > /item/addItemRow HTTP/1.1" 200 267 > http://127.0.0.1:3000/item/list -> /item/addItemRow > > Does anybody knows why with IE it''s "http://127.0.0.1:3000/item/list" > while with Firefox it''s "-" ? > Does it make any difference, or what else could be the problem? > > Regards > Chris
The prototype.js code features a workaround for a Firefox bug, that sadly can trigger an IE bug (yeah, I know); where IE is returned from AJAX requests only after about 30 seconds. Try using the most current rails trunk (or, more specifically, the most current version of prototype.js) which should fix this (if this is the situation you hit here). Thomas Am 04.07.2005 um 20:29 schrieb Chris:> Hi, > > I''m having troubles using form_remote_tag to render a partial (a new > row in a table). It works on Firefox but with IE 6 nothing happens > when > I submit the form. > > I''m running WEBrick on windows localhost. > Here is what I noticed : > > * using Firefox: > 127.0.0.1 - - [02/Jul/2005:14:35:35 W. Europe Daylight Time] "POST > /item/addItemRow HTTP/1.1" 200 267 > - -> /item/addItemRow > > * using IE : > 127.0.0.1 - - [02/Jul/2005:14:35:50 W. Europe Daylight Time] "POST > /item/addItemRow HTTP/1.1" 200 267 > http://127.0.0.1:3000/item/list -> /item/addItemRow > > Does anybody knows why with IE it''s "http://127.0.0.1:3000/item/list" > while with Firefox it''s "-" ? > Does it make any difference, or what else could be the problem? > > Regards > Chris > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Thomas Fuchs <thomas@...> writes:> > The prototype.js code features a workaround for a Firefox bug, that > sadly > can trigger an IE bug (yeah, I know); where IE is returned from AJAX > requests > only after about 30 seconds. > > Try using the most current rails trunk (or, more specifically, the > most current > version of prototype.js) which should fix this (if this is the > situation you hit here). > > Thomas > > Am 04.07.2005 um 20:29 schrieb Chris: > > > Hi, > > > > I''m having troubles using form_remote_tag to render a partial (a new > > row in a table). It works on Firefox but with IE 6 nothing happens > > when > > I submit the form. > > > > I''m running WEBrick on windows localhost. > > Here is what I noticed : > > > > * using Firefox: > > 127.0.0.1 - - [02/Jul/2005:14:35:35 W. Europe Daylight Time] "POST > > /item/addItemRow HTTP/1.1" 200 267 > > - -> /item/addItemRow > > > > * using IE : > > 127.0.0.1 - - [02/Jul/2005:14:35:50 W. Europe Daylight Time] "POST > > /item/addItemRow HTTP/1.1" 200 267 > > http://127.0.0.1:3000/item/list -> /item/addItemRow > > > > Does anybody knows why with IE it''s "http://127.0.0.1:3000/item/list" > > while with Firefox it''s "-" ? > > Does it make any difference, or what else could be the problem? > > > > Regards > > Chris > > > > _______________________________________________ > > Rails mailing list > > Rails@... > > http://lists.rubyonrails.org/mailman/listinfo/rails > > >Thanks for your replies. I''m not using popups. I installed rails from gem. Doesn''t it include the latest version of Prototype? I tried to update the rails gem but the problem remains. And I could not find Prototype.js in the dependencies for rails gem: Gem rails-0.12.1 Requires rake (>= 0.5.3) activesupport (= 1.0.4) activerecord (= 1.10.1) actionpack (= 1.8.1) actionmailer (= 0.9.1) actionwebservice (= 0.7.1) Since you mentionned a 30 seconds delay, I waited some more but nothing changed in IE, well there was this javascript error: Line:506 Char:7 Code:0 Error:Invalid target element for this operation. URL:http://127.0.0.1:3000/item/list What''s funny is that the list.rhtml source is 36 lines long ;-) Question: does gem provides the latest rails from trunk, or only a tagged version (that would be 0.12.1 for me) ? Chris
> > I installed rails from gem. > Doesn''t it include the latest version of Prototype?Prototype is included with Rails, no extra gem here. Also, I mean the development version from the SVN trunk. :)> Since you mentionned a 30 seconds delay, I waited some more but > nothing changed > in IE, well there was this javascript error: > Line:506 > Char:7 > Code:0 > Error:Invalid target element for this operation. > URL:http://127.0.0.1:3000/item/listThis means you probably trying to use JS with an element internet explorer doesn''t support using on -- get yourself a copy of Microsoft''s Script Debugger http://www.microsoft.com/downloads/details.aspx? FamilyId=2F465BE0-94FD-4569-B3C4-DFFDF19CCD99&displaylang=en to see what''s going on. Thomas