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 的差別 (用條碼機的問題) | 豬窩

I am now not positive where you're getting your information, but good
topic. I must spend some time finding out much
more or understanding more. Thanks for excellent info
I used to be on the lookout for this info for my mission.

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

This is very attention-grabbing, You are
an overly skilled blogger. I've joined your rss feed and look ahead to in the hunt for
more of your excellent post. Also, I have shared your site in my social networks

作者 http://tinyurl.com @ 22:11, 2020-06-26

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

Simply wish to say your article is as astonishing.
The clarity in your post is just nice and i could assume you're an expert on this subject.
Fine with your permission allow me to grab your RSS feed to keep up to date with forthcoming post.
Thanks a million and please carry on the gratifying work.

作者 http://tinyurl.com/y8opkt6g @ 12:03, 2020-06-27

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

I do not even know how I ended up here, but I thought this post
was great. I don't know who you are but
certainly you're going to a famous blogger if you aren't already
;) Cheers!

作者 cbd oil that works 2020 @ 04:10, 2020-06-28

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

It's going to be ending of mine day, except before ending I am reading this enormous post
to increase my experience.

作者 cbd oil that works 2020 @ 11:16, 2020-06-28
發表迴響
 authimage