
原本的設計,是第一個選項先塞個空字串,
那就一定要下拉選一個option,
誰知道,user又堅持一定要一進入頁面,就要代入Default Location
你不選,我的select onChange Function就不會執行…
因為忽略了這一點,造成頁面上的一個欄位為空值,導致最後insert
一筆資料到DB時因null而insert失敗
其實只要利用 object.fireEvent() 就可以在onload的時候,就觸發onChange
這樣就會在page load的時候,將channelName 代入xxxxx門市了…
—————–2010/07/16《Update》—————–
後來同事問到,
「那支不支援firefox??」
結果是…NO…
在firefox裡沒有fireEvent這個event
要利用dispatchEvent這個方法,
所以我又修改了一下
這樣在IE及FireFox下,就都可以運行了。


Simply wish to say your article is as astounding. The clarity in your post is simply spectacular and i can assume you are an expert on this subject. Well with your permission let me to grab your feed to keep updated with forthcoming post. Thanks a million and please carry on the rewarding work.
Incredible! This blog looks exactly like my old one! It’s on a totally different topic but it has pretty much the same page layout and design. Excellent choice of colors!
Hi everyone, it’s my first pay a quick visit at this web site, and piece of writing is actually fruitful in support of me, keep up posting these types of posts.
Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to the whole thing. Do you have any tips for inexperienced blog writers? I’d certainly appreciate it.
I pay a quick visit day-to-day a few websites and websites to read posts, except this webpage offers feature based articles.
1win vpn access 1win vpn access