Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題)

2012-04-18 @ 16:58 in 學校網頁

今天在用條碼機讀取後送出表單,結果在 IE 網頁一直有問題,而在 firefox 及 Chrome 都沒有問題,查找的結果,才知道,原來用條碼讀取時,會直接送出 Enter,做送出表單的動作,因為我有用 submit 的 value 值,判斷新增或刪除的動作.

測試的結果,在 IE 用 Enter 送出表單,是不會將 submit 的值送出,所以判斷一直出錯,而 firefox,Chrome 用 Enter 送出表單,是會將 submit 的值送出,所以就沒有問題.

解決方法:不要用 submit 值判斷,而是增加一個 <input type='hidden' ....>做為判別.

迴響

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩

My spouse and I absolutely love your blog and find most of your post's to be exactly I'm looking
for. Do you offer guest writers to write content
to suit your needs? I wouldn't mind creating a post or elaborating on a lot of
the subjects you write with regards to here. Again, awesome web log!

作者 website hosting companies @ 04:53, 2020-07-27

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩

I am sure this post has touched all the internet users, its really really nice article
on building up new web site.

作者 air flights cheap @ 21:19, 2020-07-27

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩

Wow that was unusual. I just wrote an really long comment but after I clicked submit my comment
didn't show up. Grrrr... well I'm not writing all that over again. Anyways, just wanted to say fantastic blog!

adreamoftrains best web hosting company

作者 adreamoftrains web hosting @ 19:58, 2020-07-30

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩

This text is worth everyone's attention. When can I find out more?

作者 webhosting @ 21:39, 2020-08-05

ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩

I am sure this article has touched all the internet visitors, its really really
good paragraph on building up new website.

作者 web hosting sites @ 02:16, 2020-08-07
發表迴響
 authimage