MochiKit 1.1, Opera 8.51 on OS X and a problem

1 view
Skip to first unread message

hugo

unread,
Nov 24, 2005, 5:23:55 PM11/24/05
to MochiKit
Hi,

URL: http://rfc1437.de/heatmap/

Click on one of the four boxes (most visible reaction on the "links"
box) and the heatmap will be changed to reflect only tags of the still
selected content types. Works nice with FF, Camino, Safari, Omniweb
(although that one breaks the characterset). But not with Opera. Any
idea?

The JSON code that is loaded is a URL like:

http://rfc1437.de/heatmap/page+collection+media/

And the JavaScript is at:

http://media.rfc1437.de/heatmap.js

bye, Georg

Bob Ippolito

unread,
Nov 24, 2005, 5:28:08 PM11/24/05
to hugo, MochiKit
I haven't taken a look at anything but curl -I on the JSON, but I
think I already know what your problem is.

Opera is dumb. It corrupts text/javascript content fetched by
XMLHttpRequest. Makes no goddamn sense.

Try using text/x-json as the Content-type for your JSON urls.

% curl -I http://rfc1437.de/heatmap/page+collection+media/
HTTP/1.1 200 OK
Date: Thu, 24 Nov 2005 22:31:01 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) mod_scgi/1.7 mod_gzip/
1.3.26.1a PHP/4.3.10-16 mod_fastcgi/2.4.2 mod_auth_pgsql/0.9.12.1
mod_perl/1.29 DAV/1.0.3
Vary: Accept-Language,Cookie
Content-Length: 4888
Content-Type: text/javascript; charset=utf-8

-bob

hugo

unread,
Nov 24, 2005, 5:42:47 PM11/24/05
to MochiKit
Hi,

>Opera is dumb. It corrupts text/javascript content fetched by
>XMLHttpRequest. Makes no goddamn sense.
>Try using text/x-json as the Content-type for your JSON urls.

Did change that, didn't help. Ok, it might have helped a bit - but the
result is still the same ;-)

(not having any useful way to at least look at possible javascript
errors doesn't really help debugging with Opera ...)

bye, Georg

Bob Ippolito

unread,
Nov 24, 2005, 6:05:53 PM11/24/05
to hugo, MochiKit
Use MochiKit.Logging and the logging bookmarklet to do your
debugging. You're not seeing any errors because whatever it is gets
swallowed by the deferred and put into the errback chain. addErrback
on it and introspect the error instance (with the logging functions).

-bob

hugo

unread,
Nov 24, 2005, 6:25:18 PM11/24/05
to MochiKit
Hi,

>Use MochiKit.Logging and the logging bookmarklet to do your
>debugging. You're not seeing any errors because whatever it is gets
>swallowed by the deferred and put into the errback chain. addErrback
>on it and introspect the error instance (with the logging functions).

Beside the fact that the MochiKit debugging panel is marvelous (even
though it could use a scrollbar for it's content!), the result isn't
really helpful, because it's obviously garbage (hopefully googlegroups
keeps the garbage intact):

INFO: [Error: name: ReferenceError message: Statement on line 1:
Reference to undefined variable:
孻≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䅳瑲潮潭楥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈱⸠乯瘮′〰㔬′㈺㌸∬≵牬∺∯瑡术慳瑲潮潭楥⼢Ⱒ獬畧∺≡獴牯湯浩攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≍慲猢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′ㄮ⁎潶⸠㈰〵Ⱐ㈲㨳㠢Ⱒ畲氢㨢⽴慧⽭慲猯∬≳汵朢㨢浡牳≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢坩獳敮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈱⸠乯瘮′〰㔬′㈺㌸∬≵牬∺∯瑡术睩獳敮⼢Ⱒ獬畧∺≷楳獥渢紬笢捯畮琢㨱㠬≳瑹汥∺≦潮琭獩穥㨠㈮㈵敭∬≮慭攢㨢䙯瑯杲慦楥∬≴楴汥∺∱㠠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㔢Ⱒ畲氢㨢⽴慧⽦潴潧牡晩支∬≳汵朢㨢景瑯杲慦楥≽ⱻ≣潵湴∺㈬≳瑹汥∺≦潮琭獩穥㨠ㄮㄲ敭∬≮慭攢㨢䅢獴牡歴∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄶ⸠乯瘮′〰㔬′〺ㄵ∬≵牬∺∯瑡术慢獴牡歴⼢Ⱒ獬畧∺≡扳瑲慫琢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≓瑲畫瑵爢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㔢Ⱒ畲氢㨢⽴慧⽳瑲畫瑵爯∬≳汵朢㨢獴牵歴畲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡歴畳浩汢攢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㌢Ⱒ畲氢㨢⽴慧⽫慫瑵獭楬扥⼢Ⱒ獬畧∺≫慫瑵獭楬扥≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡歴畳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄶ⸠乯瘮′〰㔬′〺ㄲ∬≵牬∺∯瑡术歡歴畳⼢Ⱒ獬畧∺≫慫瑵猢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≕浬慵瑥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄴ⸠乯瘮′〰㔬‱㠺㌱∬≵牬∺∯瑡术畭污畴支∬≳汵朢㨢畭污畴攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≐祴桯渢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㐮⁎潶⸠㈰〵Ⱐㄸ㨳ㄢⰢ畲氢㨢⽴慧⽰祴桯港∬≳汵朢㨢灹瑨潮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䑪慮杯∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄴ⸠乯瘮′〰㔬‱㠺㌱∬≵牬∺∯瑡术摪慮杯⼢Ⱒ獬畧∺≤橡湧漢紬笢捯畮琢㨷Ⱒ獴祬攢㨢景湴⵳楺攺‱⸸㡥洢Ⱒ湡浥∺≎慴畲∬≴楴汥∺∷⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺㄵ∬≵牬∺∯瑡术湡瑵爯∬≳汵朢㨢湡瑵爢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≆汵獳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺㄳ∬≵牬∺∯瑡术晬畳猯∬≳汵朢㨢晬畳猢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≗慳獥爢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨱㌢Ⱒ畲氢㨢⽴慧⽷慳獥爯∬≳汵朢㨢睡獳敲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢卥攢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨱ㄢⰢ畲氢㨢⽴慧⽳敥⼢Ⱒ獬畧∺≳敥≽ⱻ≣潵湴∺㈬≳瑹汥∺≦潮琭獩穥㨠ㄮㄲ敭∬≮慭攢㨢䉡畭∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ㄰∬≵牬∺∯瑡术扡畭⼢Ⱒ獬畧∺≢慵洢紬笢捯畮琢㨳Ⱒ獴祬攢㨢景湴⵳楺攺‱⸵づ洢Ⱒ湡浥∺≔楥牥∬≴楴汥∺∳⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〶∬≵牬∺∯瑡术瑩敲支∬≳汵朢㨢瑩敲攢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≍慫牯∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〶∬≵牬∺∯瑡术浡歲漯∬≳汵朢㨢浡歲漢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≓灩湮攢Ⱒ瑩瑬攢㨢㈠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨰㘢Ⱒ畲氢㨢⽴慧⽳灩湮支∬≳汵朢㨢獰楮湥≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䯃ꑦ敲∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〳∬≵牬∺∯瑡术歡敦敲⼢Ⱒ獬畧∺≫慥晥爢紬笢捯畮琢㨳Ⱒ獴祬攢㨢景湴⵳楺攺‱⸵づ洢Ⱒ湡浥∺≍畳瑥爢Ⱒ瑩瑬攢㨢㌠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨰〢Ⱒ畲氢㨢⽴慧⽭畳瑥爯∬≳汵朢㨢浵獴敲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡湡氢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′㤮⁏歴⸠㈰〵Ⱐ〰㨴㤢Ⱒ畲氢㨢⽴慧⽫慮慬⼢Ⱒ獬畧∺≫慮慬≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䷃뱮獴敲∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㐹∬≵牬∺∯瑡术浵敮獴敲⼢Ⱒ獬畧∺≭略湳瑥爢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂狃뱣步∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术扲略捫支∬≳汵朢㨢扲略捫攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≔散桮楫∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术瑥捨湩欯∬≳汵朢㨢瑥捨湩欢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≅楳敮扡桮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术敩獥湢慨港∬≳汵朢㨢敩獥湢慨渢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≂汵浥渢Ⱒ瑩瑬攢㨢㈠䕩湴狃ꑧ攬⁤敲整穴攠慭′〮⁏歴⸠㈰〵Ⱐ㈱㨰〢Ⱒ畲氢㨢⽴慧⽢汵浥港∬≳汵朢㨢扬畭敮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䝥拃ꑵ摥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈰⸠佫琮′〰㔬′〺㈶∬≵牬∺∯瑡术来扡敵摥⼢Ⱒ獬畧∺≧敢慥畤攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂楥湥渢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′〮⁏歴⸠㈰〵Ⱐ㈰㨰㤢Ⱒ畲氢㨢⽴慧⽢楥湥港∬≳汵朢㨢扩敮敮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䱯杯∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术汯杯⼢Ⱒ獬畧∺≬潧漢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≉湦潲浡瑩潮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术楮景牭慴楯港∬≳汵朢㨢楮景牭慴楯渢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂慳楳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术扡獩猯∬≳汵朢㨢扡獩猢絝
Backtrace: Line 1 of eval script
孻≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䅳瑲潮潭楥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈱⸠乯瘮′〰㔬′㈺㌸∬≵牬∺∯瑡术慳瑲潮潭楥⼢Ⱒ獬畧∺≡獴牯湯浩攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≍慲猢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′ㄮ⁎潶⸠㈰〵Ⱐ㈲㨳㠢Ⱒ畲氢㨢⽴慧⽭慲猯∬≳汵朢㨢浡牳≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢坩獳敮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈱⸠乯瘮′〰㔬′㈺㌸∬≵牬∺∯瑡术睩獳敮⼢Ⱒ獬畧∺≷楳獥渢紬笢捯畮琢㨱㠬≳瑹汥∺≦潮琭獩穥㨠㈮㈵敭∬≮慭攢㨢䙯瑯杲慦楥∬≴楴汥∺∱㠠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㔢Ⱒ畲氢㨢⽴慧⽦潴潧牡晩支∬≳汵朢㨢景瑯杲慦楥≽ⱻ≣潵湴∺㈬≳瑹汥∺≦潮琭獩穥㨠ㄮㄲ敭∬≮慭攢㨢䅢獴牡歴∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄶ⸠乯瘮′〰㔬′〺ㄵ∬≵牬∺∯瑡术慢獴牡歴⼢Ⱒ獬畧∺≡扳瑲慫琢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≓瑲畫瑵爢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㔢Ⱒ畲氢㨢⽴慧⽳瑲畫瑵爯∬≳汵朢㨢獴牵歴畲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡歴畳浩汢攢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㘮⁎潶⸠㈰〵Ⱐ㈰㨱㌢Ⱒ畲氢㨢⽴慧⽫慫瑵獭楬扥⼢Ⱒ獬畧∺≫慫瑵獭楬扥≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡歴畳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄶ⸠乯瘮′〰㔬′〺ㄲ∬≵牬∺∯瑡术歡歴畳⼢Ⱒ獬畧∺≫慫瑵猢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≕浬慵瑥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄴ⸠乯瘮′〰㔬‱㠺㌱∬≵牬∺∯瑡术畭污畴支∬≳汵朢㨢畭污畴攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≐祴桯渢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㐮⁎潶⸠㈰〵Ⱐㄸ㨳ㄢⰢ畲氢㨢⽴慧⽰祴桯港∬≳汵朢㨢灹瑨潮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䑪慮杯∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄴ⸠乯瘮′〰㔬‱㠺㌱∬≵牬∺∯瑡术摪慮杯⼢Ⱒ獬畧∺≤橡湧漢紬笢捯畮琢㨷Ⱒ獴祬攢㨢景湴⵳楺攺‱⸸㡥洢Ⱒ湡浥∺≎慴畲∬≴楴汥∺∷⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺㄵ∬≵牬∺∯瑡术湡瑵爯∬≳汵朢㨢湡瑵爢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≆汵獳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺㄳ∬≵牬∺∯瑡术晬畳猯∬≳汵朢㨢晬畳猢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≗慳獥爢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨱㌢Ⱒ畲氢㨢⽴慧⽷慳獥爯∬≳汵朢㨢睡獳敲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢卥攢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨱ㄢⰢ畲氢㨢⽴慧⽳敥⼢Ⱒ獬畧∺≳敥≽ⱻ≣潵湴∺㈬≳瑹汥∺≦潮琭獩穥㨠ㄮㄲ敭∬≮慭攢㨢䉡畭∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ㄰∬≵牬∺∯瑡术扡畭⼢Ⱒ獬畧∺≢慵洢紬笢捯畮琢㨳Ⱒ獴祬攢㨢景湴⵳楺攺‱⸵づ洢Ⱒ湡浥∺≔楥牥∬≴楴汥∺∳⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〶∬≵牬∺∯瑡术瑩敲支∬≳汵朢㨢瑩敲攢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≍慫牯∬≴楴汥∺∲⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〶∬≵牬∺∯瑡术浡歲漯∬≳汵朢㨢浡歲漢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≓灩湮攢Ⱒ瑩瑬攢㨢㈠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨰㘢Ⱒ畲氢㨢⽴慧⽳灩湮支∬≳汵朢㨢獰楮湥≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䯃ꑦ敲∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄳ⸠乯瘮′〰㔬′ㄺ〳∬≵牬∺∯瑡术歡敦敲⼢Ⱒ獬畧∺≫慥晥爢紬笢捯畮琢㨳Ⱒ獴祬攢㨢景湴⵳楺攺‱⸵づ洢Ⱒ湡浥∺≍畳瑥爢Ⱒ瑩瑬攢㨢㌠䕩湴狃ꑧ攬⁤敲整穴攠慭‱㌮⁎潶⸠㈰〵Ⱐ㈱㨰〢Ⱒ畲氢㨢⽴慧⽭畳瑥爯∬≳汵朢㨢浵獴敲≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䭡湡氢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′㤮⁏歴⸠㈰〵Ⱐ〰㨴㤢Ⱒ畲氢㨢⽴慧⽫慮慬⼢Ⱒ獬畧∺≫慮慬≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䷃뱮獴敲∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㐹∬≵牬∺∯瑡术浵敮獴敲⼢Ⱒ獬畧∺≭略湳瑥爢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂狃뱣步∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术扲略捫支∬≳汵朢㨢扲略捫攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≔散桮楫∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术瑥捨湩欯∬≳汵朢㨢瑥捨湩欢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≅楳敮扡桮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈹⸠佫琮′〰㔬‰〺㌹∬≵牬∺∯瑡术敩獥湢慨港∬≳汵朢㨢敩獥湢慨渢紬笢捯畮琢㨲Ⱒ獴祬攢㨢景湴⵳楺攺‱⸱㉥洢Ⱒ湡浥∺≂汵浥渢Ⱒ瑩瑬攢㨢㈠䕩湴狃ꑧ攬⁤敲整穴攠慭′〮⁏歴⸠㈰〵Ⱐ㈱㨰〢Ⱒ畲氢㨢⽴慧⽢汵浥港∬≳汵朢㨢扬畭敮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䝥拃ꑵ摥∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠㈰⸠佫琮′〰㔬′〺㈶∬≵牬∺∯瑡术来扡敵摥⼢Ⱒ獬畧∺≧敢慥畤攢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂楥湥渢Ⱒ瑩瑬攢㨢ㄠ䕩湴狃ꑧ攬⁤敲整穴攠慭′〮⁏歴⸠㈰〵Ⱐ㈰㨰㤢Ⱒ畲氢㨢⽴慧⽢楥湥港∬≳汵朢㨢扩敮敮≽ⱻ≣潵湴∺ㄬ≳瑹汥∺≦潮琭獩穥㨠〮㜵敭∬≮慭攢㨢䱯杯∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术汯杯⼢Ⱒ獬畧∺≬潧漢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≉湦潲浡瑩潮∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术楮景牭慴楯港∬≳汵朢㨢楮景牭慴楯渢紬笢捯畮琢㨱Ⱒ獴祬攢㨢景湴⵳楺攺‰⸷㕥洢Ⱒ湡浥∺≂慳楳∬≴楴汥∺∱⁅楮瑲쎤来Ⱐ摥爠汥瑺瑥⁡洠ㄸ⸠佫琮′〰㔬′〺ㄴ∬≵牬∺∯瑡术扡獩猯∬≳汵朢㨢扡獩猢絝;
Line 2048 of linked script http://media.rfc1437.de/MochiKit/MochiKit.js
res = f(res); Line 1996 of linked script
http://media.rfc1437.de/MochiKit/MochiKit.js this._fire(); Line 2007 of
linked script http://media.rfc1437.de/MochiKit/MochiKit.js
this._resback(res); Line 2146 of linked script
http://media.rfc1437.de/MochiKit/MochiKit.js d.callback(req); At
unknown location [statement source code not available] ]

bye, Georg

Bob Ippolito

unread,
Nov 24, 2005, 6:29:36 PM11/24/05
to hugo, MochiKit

On Nov 24, 2005, at 6:25 PM, hugo wrote:

>> Use MochiKit.Logging and the logging bookmarklet to do your
>> debugging. You're not seeing any errors because whatever it is gets
>> swallowed by the deferred and put into the errback chain. addErrback
>> on it and introspect the error instance (with the logging functions).
>
> Beside the fact that the MochiKit debugging panel is marvelous (even
> though it could use a scrollbar for it's content!), the result isn't
> really helpful, because it's obviously garbage (hopefully googlegroups
> keeps the garbage intact):

Maybe Opera's brokenness is related to the charset section of the
Content-Type. Use exactly text/x-json as the content-type, no
charset declaration.

-bob

hugo

unread,
Nov 24, 2005, 6:40:30 PM11/24/05
to MochiKit
>Maybe Opera's brokenness is related to the charset section of the
>Content-Type. Use exactly text/x-json as the content-type, no
>charset declaration.

Same result.

bye, Georg

hugo

unread,
Nov 24, 2005, 7:28:00 PM11/24/05
to MochiKit

And actually dropping the charset breaks character encoding with Safari
- it seems to see them as iso-8859-1, if I don't give the utf-8
charset. Omniweb is quite ignorant - wether I give the charset or not,
it allways treats the json stuff as iso-8859-1 ...

Maybe I should just ignore Opera and OmniWeb ;-)

bye, Georg

Bob Ippolito

unread,
Nov 25, 2005, 2:24:05 AM11/25/05
to hugo, MochiKit
Well, one way around that is to use unicode escape sequences instead
of unicode literals. JSON allows for \uXXXX. I don't know if that
does anything wrt to Opera, but sometimes a 7 bit ASCII transport is
nice to have because it'll also work if you serve the content by
means other than HTTP (e.g. file://)... though that normally only
matters for testing.

-bob

hugo

unread,
Nov 25, 2005, 3:19:20 AM11/25/05
to MochiKit
>Well, one way around that is to use unicode escape sequences instead
>of unicode literals. JSON allows for \uXXXX. I don't know if that
>does anything wrt to Opera, but sometimes a 7 bit ASCII transport is
>nice to have because it'll also work if you serve the content by
>means other than HTTP (e.g. file://)... though that normally only
>matters for testing.

Added that to my local copy of json.py and it now works fine for FF,
Camino, Safari and OmniWeb. Still the same weird error with Opera. I
don't think it really is the JSON encoded stuff, it's something else
that breaks Opera.

bye, Georg

Reply all
Reply to author
Forward
0 new messages