電子書籍の厳選無料作品が豊富!

PHP smartyで4×6のチェックボックスのリストを表示しています。
しかし、上の2行(8つのチェックボックス)が、
初期表示から3分以上たたないと、選択できない状態になります。
ブラウザはIE6.0です。
原因が不明の状態です。どのようにすればよろしいでしょうか。

Mozilla Firefox2.0では正常に動作します。

<table border=0 class="tabledetails">
<{section name="index" loop=$data start="0" step="1" max="10"}>
<tr>
<th>
<{$data[index].name_1}>
</th>
<td>
<{if $data[index].name_1 <> '' }>

<{if ($curentview == 'CHECK' or (($modeid == 'SERH1') or ($modeid == 'SERH2') or ($modeid == 'SERH3') or ($modeid == 'SERH4'))) }>
<input type="hidden" name='code_<{$data[index].code_1}>' <{if $data[index].name_1_flg}>value='on'<{/if}> >
<{if $data[index].name_1_flg}><img src="./images/reten.png" /><{/if}>
<{else}>
<input type="checkbox" name='code_<{$data[index].code_1}>' <{if $data[index].name_1_flg}>CHECKED<{/if}> >
<{/if}>

<{/if}>
</td>
<th>
<{$data[index].name_2}>
</th>
<td>
<{if $data[index].name_2 <> '' }>

<{if ($curentview == 'CHECK' or (($modeid == 'SERH1') or ($modeid == 'SERH2') or ($modeid == 'SERH3') or ($modeid == 'SERH4'))) }>
<input type="hidden" name='code_<{$data[index].code_2}>' <{if $data[index].name_2_flg}>value='on'<{/if}> >
<{if $data[index].name_2_flg}><img src="./images/reten.png" /><{/if}>
<{else}>
<input type="checkbox" name='code_<{$data[index].code_2}>' <{if $data[index].name_2_flg}>CHECKED<{/if}> >
<{/if}>

<{/if}>
</td>
<th>
<{$data[index].name_3}>
</th>
<td>
<{if $data[index].name_3 <> '' }>

<{if ($curentview == 'CHECK' or (($modeid == 'SERH1') or ($modeid == 'SERH2') or ($modeid == 'SERH3') or ($modeid == 'SERH4'))) }>
<input type="hidden" name='code_<{$data[index].code_3}>' <{if $data[index].name_3_flg}>value='on'<{/if}> >
<{if $data[index].name_3_flg}><img src="./images/reten.png" /><{/if}>
<{else}>
<input type="checkbox" name='code_<{$data[index].code_3}>' <{if $data[index].name_3_flg}>CHECKED<{/if}> >
<{/if}>

<{/if}>
</td>
<th>
<{$data[index].name_4}>
</th>
<td>
<{if $data[index].name_4 <> '' }>

<{if ($curentview == 'CHECK' or (($modeid == 'SERH1') or ($modeid == 'SERH2') or ($modeid == 'SERH3') or ($modeid == 'SERH4'))) }>
<input type="hidden" name='code_<{$data[index].code_4}>' <{if $data[index].name_4_flg}>value='on'<{/if}> >
<{if $data[index].name_4_flg}><img src="./images/reten.png" /><{/if}>
<{else}>
<input type="checkbox" name='code_<{$data[index].code_4}>' <{if $data[index].name_4_flg}>CHECKED<{/if}> >
<{/if}>

<{/if}>
</td>
</tr>

<{/section}>

</table>

A 回答 (3件)

ANo.1です。



つまりHTMLが完全に読み込まれていないから押せないという可能性は無いわけですね。(ちなみにdisabled状態になっているのでしょうか?)
firefoxで出力されたHTMLとieで出力されたHTMLもdiffで一致なのですよね。。。
うーむ。

提示頂いたHTMLを自分のPC(IE6)で試してみましたが再現しませんでした。
その他のソースが影響しているのでしょうかね。。
自分なら・・・
単純な手ですが、ある部分を消して試して、別の部分を消して試して・・・で絞り込むかな・・・。

自分の経験値ではここが限界のようです。
力になれずに申し訳ございません。頑張ってください。
    • good
    • 0

たぶん、私にはわからないけど


Javascriptのカテゴリに投稿しているという事は何かJavascriptが関係している?
classが付いているという事はcss(ファイルの読み込み)が関係している?

解決するまで「何か」を削って試していくと何が問題かわかるかも・・・しれないですね。
    • good
    • 0

経験5年目のWEB系エンジニアです。

が、PHP歴は浅いです。
なので的確な事は言えないと思いますのでご参考程度にお願いします。

自分も経験がありますが、
IEでは上手く表示されるのにFireFoxでは・・・というのはままありますね^^;
逆もありますが。

出力されたHTMLの文法に間違いはないのですよね?

まずは文法チェッカなどを使ってW3Cの規約に沿っているか確認してみては如何でしょう。
大体のブラウザは基本的にW3Cに沿って作られていると思うので。

あと念のためですが、画面上に出ている不都合はサーバでPHP→HTMLに変換されて返ってきたHTMLを再現した結果です。
なのでデバッグを進めるにあたり、最初に気にすべきは出力されたHTMLになると思います。

3分・・・とのことですので、
3分経たない時点でのHTMLと、
3分経過後のHTMLをdiffしてみるのも解決の手口になるかもしれません。

この回答への補足

3分たった状態でも、同じHTMLになると思います。
以下、サーバーから出力したHTMLです。
文法の調べましたが、問題ないようです。

<table border=0 class="tabledetails">

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_1' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_2' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_3' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_4' >
</td>
</tr>

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_5' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_6' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_7' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_8' >
</td>
</tr>

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_9' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_10' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_11' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_12' >
</td>
</tr>

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_13' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_14' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_15' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_16' >
</td>
</tr>

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_17' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_18' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_19' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_20' >
</td>
</tr>

<tr>
<th>

</th>
<td>
<input type="checkbox" name='code_21' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_22' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_23' >
</td>
<th>

</th>
<td>
<input type="checkbox" name='code_24' >
</td>
</tr>
</table>

補足日時:2008/06/25 13:34
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!