PHBs, the bane of sanity everywhere.

On Jan 14, 4:59 pm, Bryan M <[email protected]> wrote:
> Above and beyond the Element.prototype problem, there's yet another
> issue with the addOne method in ie7.
> For some reason, the second time you call it, it fires twice and
> doesn't build the DOM right.  I'm going through it with firebug lite,
> but it's pretty maddening.
>
> (I'm in love with hobo-rapid, but the bossman I'm trying to convince
> runs ie7 exclusively -- I absolutely have to get this working.  FWIW,
> it's pretty stunning in firefox and ie8)
>
> On Jan 13, 4:54 am, Bryan Larsen <[email protected]> wrote:
>
> > Francois,
>
> > Please try Bryan M's second patch
> > (http://groups.google.com/group/hobousers/browse_thread/thread/85423ac...)
> > and let me know if it fixes your problem.  I haven't pushed it to the
> > main repository yet, but I definitely plan on digging further into it.
>
> > Bryan
>
> > Fran ois Beausoleil wrote:
> > > Hi!
>
> > > I just created a fresh new app:  http://github.com/francois/hobo-repro,
> > > using the 0.9.103 gem.  I manually fixed the hobo-rapid.js error with
> > > the trailing comma, referenced by
> > >http://github.com/tablatom/hobo/commit/97c3f24207c4faa59fd18c91e57ff9....
>
> > > Next, I created 2 models:
>
> > > Person has_many :addresses, :accessible => true
>
> > > Each model has a single name field.  I migrated, started the server,
> > > booted my VMware image for IE7.
>
> > >>From /people/new, I can create a Person instance with no city.  Trying
> > > again but adding a city fails with a failsafe error:
>
> > > /!\ FAILSAFE /!\  Wed Jan 13 00:25:56 -0500 2010
> > >   Status: 500 Internal Server Error
> > >   expected Hash (got String) for param `addresses'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > utils.rb:93:in `normalize_params'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > utils.rb:94:in `normalize_params'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > utils.rb:62:in `parse_nested_query'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > utils.rb:60:in `each'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > utils.rb:60:in `parse_nested_query'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > request.rb:140:in `POST'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > methodoverride.rb:15:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/params_parser.rb:15:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/session/cookie_store.rb:93:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/failsafe.rb:26:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > lock.rb:11:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > lock.rb:11:in `synchronize'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > lock.rb:11:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/dispatcher.rb:114:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/reloader.rb:34:in `run'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/actionpack-2.3.5/lib/
> > > action_controller/dispatcher.rb:108:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rails-2.3.5/lib/rails/
> > > rack/static.rb:31:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > urlmap.rb:46:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > urlmap.rb:40:in `each'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > urlmap.rb:40:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rails-2.3.5/lib/rails/
> > > rack/debugger.rb:19:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rails-2.3.5/lib/rails/
> > > rack/log_tailer.rb:17:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > content_length.rb:13:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > chunked.rb:15:in `call'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > handler/mongrel.rb:64:in `process'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:159:in `process_client'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:158:in `each'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:158:in `process_client'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:285:in `run'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:285:in `initialize'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:285:in `new'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:285:in `run'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:268:in `initialize'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:268:in `new'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/mongrel-1.1.5/lib/
> > > mongrel.rb:268:in `run'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rack-1.0.1/lib/rack/
> > > handler/mongrel.rb:34:in `run'
> > >     /Users/francois/.rvm/gems/ruby/1.8.7/gems/rails-2.3.5/lib/commands/
> > > server.rb:111
> > >     /Users/francois/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/
> > > rubygems/custom_require.rb:31:in `gem_original_require'
> > >     /Users/francois/.rvm/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/
> > > rubygems/custom_require.rb:31:in `require'
> > >     script/server:3
>
> > > This is *exactly* what IE7 POSTed (used nc to get that):
>
> > > POST /people HTTP/1.1
> > > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> > > application/x-shockwave-flash, */*
> > > Referer:http://172.16.139.1:3001/people/new
> > > Accept-Language: en-us
> > > Content-Type: application/x-www-form-urlencoded
> > > UA-CPU: x86
> > > Accept-Encoding: gzip, deflate
> > > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
> > > Host: 172.16.139.1:3001
> > > Content-Length: 177
> > > Connection: Keep-Alive
> > > Cache-Control: no-cache
> > > Cookie:
> > > _repro_session=BAh7CToQX2NzcmZfdG9rZW4iMTZ0RlVycEpnRjBEenNYNnNYdGJkREVyYVhWcW5lOUYyckdKTm04NXlNMFE9Ogl1c2VyIgt1c2VyOjE6D3Nlc3Npb25faWQiJWQ4NmJhNzY0ZDgxZDgyMjFmNmE5OWIyODkxMzhjNmRkIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--6273a45b2f7da474c0380ec473d456939fdcddd2
>
> > > page_path=people
> > > %2Fnew&authenticity_token=6tFUrpJgF0DzsX6sXtbdDEraXVqne9F2rGJNm85yM0Q
> > > %3D&person%5Bname%5D=james&person%5Baddresses%5D=&person%5Baddresses%5D
> > > %5B0%5D%5Bcity%5D=abc
>
> > >>From an existing person, I can add cities.  I get a JavaScript error
> > > attempting to remove a city though:
>
> > > Line: 706
> > > Char: 15
> > > Error: Object doesn't support this property or method
> > > Code: 0
>
> > > This looks like a function call on a null/undefined object, but IE7
> > > helpfully does not tell us what it was doing at the time...
>
> > > Anybody else has problems with IE7?
>
> > > Thanks!
> > > Fran ois
>
>
-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to