Closed
Bug 104996
Opened 23 years ago
Closed 23 years ago
selectedIndex not set while page is loading
Categories
(Core :: DOM: Navigation, defect)
Tracking
()
mozilla0.9.6
People
(Reporter: brad, Assigned: radha)
References
()
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5) Gecko/20011011
BuildID: 200110117
There is javascript that submits this form after a shipping method or quantity
has been set. If you change the shipping method, it reverts back to the
original setting when it returns.
Reproducible: Always
Steps to Reproduce:
1. Go to http://store.palm.com/ShoppingCart/basket.asp?action=add&productnr=3C80800U
2. Select shipping method other than US Mail (UPS or Rush Overnight)
3. Notice how shipping method is reset to US Mail when page returns
Actual Results: Shipping method is reset to US Mail when page returns
Expected Results: Shipping method should have remained what it was set to.
When shipping method is changed or the "Recalculate Subtotal" button is binked,
javascript code in the page calls for a form submission. The calling page
(basket.asp) is the result of the submission, but the shipping method is reset.
Netscape 4.x and IE keep the shipping method the same through submissions.
Comment 1•23 years ago
|
||
I bet the problem here is a session history one... but ccing jkeiser just in
case.
Assignee: rods → radha
Component: Form Submission → History: Session
QA Contact: vladimire → claudius
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
store.palm.com apparently uses cookies to track the shopping cart & user's
session, so I'm not sure how we could test it offline. Also, many of the
buttons are relative images, so the IMG SRC= needs to have http://store.palm.com
added. I already did so in my offline version and will see if I can figure out
how to add an attachment.
Reporter | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
This is in fact a SELECT initialization problem. I believe the problem is
related to the fact that the frame hasn't been constructed (and the options
aren't there) by the time the JavaScript to initialize the select is executed.
Why they didn't just make the option SELECTED is beyond me. But this is fixed
in the bug 34297 patch regardless. Thanks, bz :)
P.S. This could easily be a related symptom of bug 101720. It is a different
problem, but I am not sure if we close this one as a dup or not.
Comment 7•23 years ago
|
||
Aha, I was looking for this bug but the misleading subject threw me off track.
Yes, this one is fixed in 34297.
Status: UNCONFIRMED → NEW
Depends on: 34297
Ever confirmed: true
Summary: Form values reset on page reload/submission → selectedIndex not set while page is loading
Comment 8•23 years ago
|
||
*** Bug 105685 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 9•23 years ago
|
||
putting in my plate to see what actually is going on?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Assignee | ||
Comment 10•23 years ago
|
||
Checked this out in the debugger. Sessionhistory has nothing to do with it. The
form is submitted when the shipping option is changed and select list should be
set to proper value like the other form element "quantity". But it doesn't. This
should be a dupe of 34297 or 101720.
Comment 11•23 years ago
|
||
It is fixed in bug 34297, yes ... the problem is dual:
1. selected index is not set until the select frame is created and all options
are added. (Not sure when this happens.)
2. Even then selected index is set only after a timer fires.
Assignee | ||
Comment 12•23 years ago
|
||
as per John Keiser, marking this dupe of 34297
*** This bug has been marked as a duplicate of 34297 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 13•22 years ago
|
||
mass-verifying Duplicate bugs which haven't changed since 2001.12.31.
set your search string in mail to "CitizenGKar" to filter out these messages.
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: claudius → docshell
You need to log in
before you can comment on or make changes to this bug.
Description
•