2011-07-31 4 views
-1

ここで私が取り組んでいることのjsfiddleの例です: http://jsfiddle.net/bdijVd/2/。 テキストフィールドが更新されないのはなぜですか? Chromeの場合イベントがonkeyup、onkeypress、onmouseupのように発火しないのはなぜですか?

+0

**代表的なコード**のサンプルを**の質問**に掲載してください。JavaScript **と**あなたのhtmlです。 –

+0

テキストフィールドはいつ、そしていつ更新されますか?あなたは何をしようとしているのですか? – Guffa

答えて

2

、イベントは動作していますが、エラーのために何も表示されません。

ライン38にスローされます

Uncaught TypeError: Object [object DOMWindow] has no method 'getBrowser'

:Firefoxで

document.getElementById('txtarea').innerHTML = ("<b>" + tagline + "</b>" + "</br >" + "<br />" + "<i>" + "<u>" + author + " " + date + "." + "</u> " + author + " (" + credentials + ") " + date + " " + publication + " " + title + " " + (window.top.getBrowser().selectedBrowser.contentWindow.location.href) + "</i>" + "<br />" + "<br />" + evidence);

+1

そして、ちょうどあなたが 'のdocument.getElementById( 'txtarea')にその行を変更した場合、フォローアップする。innerHTMLプロパティ=(」"+キャッチフレーズ+" "+"
"+"
"+" "+" "+ author +" "+ author +" + "+ author +" "+ date +" "+" "+ author +"( "+ credentials +") "+ date +" "+ publication +" "+ title +" "+(window.location.href )+ "" + "
" + "
" +証拠); 'あなたがビジネスにいるように見える - http://jsfiddle.net/bdjVd/6/ –

+0

ありがとうございます。 –

2

、あなたのformat()機能が投げていますエラーPermission denied to access property 'getBrowser'

+0

ありがとうございます。 –

関連する問題