Closed Bug 305074 Opened 19 years ago Closed 17 years ago

Focus change via JavaScript loses form data

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: moch_isnaini, Unassigned)

Details

(Keywords: dataloss, Whiteboard: CLOSEME - 06/29)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

please try in javascript  form.id_name.focus();  --> action will be refresh form
and lost all entry.

Reproducible: Always

Steps to Reproduce:
1.make form / document with name form and editbox with name id_name.
2.every call form.id_name.focus() --> will refresh form.
3.

Actual Results:  
Everything user entry will lost because firefox use refresh.

Expected Results:  
Will -- move focus, without refresh.
Please attach a simple testcase that demonstrates this problem.
Keywords: dataloss
Summary: Javascript → Focus change via JavaScript loses form data
20050822 -- I found that error is not on focus(), but every keypress always 
submit ( then refresh ).
Can Firefox only submit it another function in javascript hook event ?.
Reporter, are you still seeing this problem with the latest release of Firefox when using a clean profile?

http://kb.mozillazine.org/Profile_Manager
Whiteboard: CLOSEME - 06/29
Muhammad, please attach a testcase that exhibits the behavior you described and make sure that this doesn't happen using Firefox 2.0.0.6 or later with a clean profile (link in comment 3). Reopen this bug when you do so.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.