カテゴリ別 2003年 | 2004年 | 2005年 | 2006年 | 2007年 | 2008年
知り合いサイト: よんだもの / 暴想 / Linuxでやる夫 / 新宿Vipper / 僕だけが幸せになればいいのに。
仕事でユーザサポートしていて気付いたことです。IE6 で以下のような HTML を表示して、
<form> <input type="text" name="tags" value=""> </form>
[ファイル]-[印刷]しようとすると、こういうエラーになります。
このページのスクリプトでエラーが発生しました。 ライン:1402 文字:1 エラー:オブジェクトでサポートされていないプロパティまたはメソッドです コード:0 URL:res://C:¥WINNT¥system32¥shdoclc.dll/preview.dlg
tags メソッド とバッティングするのかしらん。
なるものがnaoya さんからまわって来たので答えてみます。いやー更新したいのですが、アウトプットするものも気力もない日々が続いてますので。
PC に 7GB、iPod に 15GB。PC の容量を食うのが嫌なので同期させてません。
BOOM BOOM SATELLITES の FULL OF ELEVATING PLEASURES
そういや最近めっきり CD 買わなくなりました。
さて、バトンを渡す相手ですが……トラックバックは打ちません。
少し前になりますが、大量のツッコミスパムが来ましたので、あおきさんの tDiary / コメント SPAM 避けチェックボックスパッチを適用しました。
2.0.1 ですと index.rb にそのままパッチを当てても動作しませんので、手抜き修正をしています。手抜きじゃない修正をしている方がいましたら教えて下さい……
--- tdiary-2.0.1/index.rb 2004-03-15 00:03:59.000000000 +0900
+++ /var/www/localhost/htdocs/diary/index.rb 2005-06-15 19:56:26.000000000 +0900
@@ -28,7 +28,12 @@
begin
if @cgi.valid?( 'comment' ) then
- tdiary = TDiary::TDiaryComment::new( @cgi, "day.rhtml", conf )
+# tdiary = TDiary::TDiaryComment::new( @cgi, "day.rhtml", conf )
+ if @cgi.valid?('ishuman') and @cgi.params['ishuman']
+ tdiary = TDiary::TDiaryComment::new( @cgi, "day.rhtml", conf )
+ else
+ raise TDiary::ForceRedirect.new('spamwarn.html')
+ end
elsif @cgi.valid?( 'date' )
date = @cgi.params['date'][0]
if /^\d{8}$/ =~ date then
@@ -98,6 +103,20 @@
<body>Wait or <a href="#{$!.path}">Click here!</a></body>
</html>]
end
+rescue TDiary::ForceRedirect
+ head = {
+ #'Location' => $!.path
+ 'type' => 'text/html',
+ }
+ print @cgi.header( head )
+ print %Q[
+ <html>
+ <head>
+ <meta http-equiv="refresh" content="1;url=#{$!.path}">
+ <title>moving...</title>
+ </head>
+ <body>Wait or <a href="#{$!.path}">Click here!</a></body>
+ </html>]
rescue Exception
if @cgi then
print @cgi.header( 'type' => 'text/plain' )
最近のコメント:
RSS
![]()
This work is licensed under a
Creative Commons License
(note: text only. w/o web design, citations, (re)distributed softwares).