Closed Bug 301015 Opened 19 years ago Closed 19 years ago

in plesk7, clicking "OK" buttons, the forms doesn't submit

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: francesco.monte, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050716 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050716 Firefox/1.0+

in pages like "file manager" (or any other page with OK button), if i try to
select a file and click "delete", plesk ask me if i want really to delete the file
then i check the box and click "ok" to delete, but nothing happen

this in firefox1+ 2005-07-16, in firefox 1.0.6 it works

Reproducible: Always

Steps to Reproduce:
1. login into plesk and click "file manager"
2. select something to remove, and click "remove selected"
3. check the box "confirmation removal" and click OK
Actual Results:  
the form doesn't submit
i have searched into the html code, the "OK" button that doesn't work in
deerpark has:
onClick="remove_submit_oC();; return false;"

this is the JS function:

function remove_submit_oC()
{
	f = document.forms[0];
	if (!f.confirm.checked) {
		alert("Dovete confermare la cancellazione."); //in en.: you must to confirm
the removal
		return false;
	}

	f.cmd.value="remove";
	f.subcmd.value = "";
	f.submit();

	return false;
}

if i don't confirm, i see the alert "confirm the removal", but i check the
checkbox, the form doesn't submit :(

ps: in the JS console, there are only some graphical stuff dropped

if i attach an hard copy of the page, can to be helpful?
(sorry my very bad english :()
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/200908 (No IDN)
Firefox/1.4

Just wanting to confirm that I have the same issue when using Mozilla Firefox
1.5b1.  Looking for any report of the issue on http://fourm.sw-soft.com/
well i make a testcase
save the 2 file in the same directory
i cleaned only the html file, the JS file is original of plesk

on firefox 1.0: the form is submitted on click (to a fake url)
on firefox 1.5: doesn't submit

i noted if i removed the checkbox, works on firefox 1.5 O_o and if i
check/uncheck the checkbox, the JS console shows some errors.. i think the
problem is the that input
Attached file the testcase
btw, i tried with 1.6a1: same result

note that the checkbox isn't a confirmation checkbox :)
I have experienced this bug with plesk 7.1.7 on Firefox 1.5 beta 1 only, firefox
1.0.7 works fine. Clicking the submit button when trying to add a new email
account doesn't submit the form. The button is not the standard input
type='submit' variety it uses javascript to submit the form. Strangly the
javascript that checks the form for proper data entry does in fact run the form
is simply never submitted. It doesn't move on to the post submission page either
stays at the form...

I have taken a look at the source and it seems the problem is in fact related to
submission of forms with the document.forms[x].submit() function in javascript. 
(In reply to comment #7)
> I have taken a look at the source and it seems the problem is in fact related to
> submission of forms with the document.forms[x].submit() function in javascript. 

Hmm.. that seems to work properly on a testcase I've made.. can you create a
small test page with the minimal amount of javascript that showcases this bug
reliably?
Forgot to add Timotthy to CC!

Read comment 8..
Everything works perfectly in my test case at:
https://foxcns.com/test_case.php
I did have to change the html a little. They were used a <button> tag to submit
the form but that was working fine, but it wasn't checking the form with the
javascript. I forced it to submit with document.forms[0].submit() and it works
fine. But I don't see what's going on in plesk that is so different from my test
case...
The release of Firefox 1.5 Beta 2 seems to have fixed the issue.  I can now use
the Plesk Control Panel without any problems.  

Thank you!!

Brandon Petersen
yes, i confirm

in the 5th oct build now all works!

this bug will be closed?
Closed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
*** Bug 308421 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: