ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題)
今天在用條碼機讀取後送出表單,結果在 IE 網頁一直有問題,而在 firefox 及 Chrome 都沒有問題,查找的結果,才知道,原來用條碼讀取時,會直接送出 Enter,做送出表單的動作,因為我有用 submit 的 value 值,判斷新增或刪除的動作.
測試的結果,在 IE 用 Enter 送出表單,是不會將 submit 的值送出,所以判斷一直出錯,而 firefox,Chrome 用 Enter 送出表單,是會將 submit 的值送出,所以就沒有問題.
解決方法:不要用 submit 值判斷,而是增加一個 <input type='hidden' ....>做為判別.
迴響
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
This article offers clear idea for the new visitors of blogging, that truly how to do running a blog.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
I've been exploring for a little for any high-quality articles or blog posts in this
sort of area . Exploring in Yahoo I ultimately stumbled upon this website.
Reading this info So i'm satisfied to exhibit that I have a very good uncanny feeling I found out just what
I needed. I so much certainly will make sure to don?t omit this site and provides it a glance regularly.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Piece of writing writing is also a fun, if you be acquainted with
after that you can write otherwise it is difficult to write.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
I am now not positive the place you're getting your information, but great topic.
I needs to spend some time studying much more or understanding more.
Thanks for excellent information I used to be looking for this
info for my mission.
ie ,firefox 在 form 表單按 Enter 的差別 (用條碼機的問題) | 豬窩
Hey there! I could have sworn I've been to this blog before but after checking through some
of the post I realized it's new to me. Anyways, I'm definitely happy I found it and I'll be book-marking and checking back often!