Closed
Bug 173777
Opened 22 years ago
Closed 22 years ago
page doesn't display, java script errors
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 148782
People
(Reporter: harm.verhagen+bugzilla, Assigned: rogerl)
References
()
Details
Attachments
(1 file)
21.20 KB,
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020710 Build Identifier: Mozilla 1.2alpha and versions before that i used (from 0.9...) At work we're using a CM tools called Synergy. It also has a problem tracking tool (not as cool as bugzilla :) called ChangeSynergy. The web interface of this problem tracking tool (WebPT) does not work with mozilla. I'm not sure if its a bug in mozilla, or in the the WebPT tool. I attached the page that fails (pagesource.zip) Reproducible: Always Steps to Reproduce: 1.Open page 2.Press buttons (top) Actual Results: Java script errors. example errors when I pressed 3 buttons: Error: window.document.pt_form_load.submit is not a function Source File: http://ccmweb.natlab.research.philips.com:8605/servlet/com.continuus.webpt.servlet.PTweb?token=7371118935180557129&ACTION_FLAG=main_buttonbar_form&TEMPLATE_FLAG=ButtonBar&role=User Line: 563 Error: window.document.pt_form_load.submit is not a function Source File: http://ccmweb.natlab.research.philips.com:8605/servlet/com.continuus.webpt.servlet.PTweb?token=7371118935180557129&ACTION_FLAG=main_buttonbar_form&TEMPLATE_FLAG=ButtonBar&role=User Line: 517 Error: window.document.pt_form_load.submit is not a function Source File: http://ccmweb.natlab.research.philips.com:8605/servlet/com.continuus.webpt.servlet.PTweb?token=7371118935180557129&ACTION_FLAG=main_buttonbar_form&TEMPLATE_FLAG=ButtonBar&role=User Line: 696 Expected Results: update the screen. Works fine with IE. didn't try netscape 4.X All mozilla versions used didn't work. I have javascript & java enabled.
Comment 2•22 years ago
|
||
This is because window.document.pt_form_load.submit is an image node.... *** This bug has been marked as a duplicate of 148782 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 3•22 years ago
|
||
Marking Verified Duplicate - h.verhagen@chello.nl: thank you for zipping up the site! You have been cc'ed on bug 148782 so you can follow it. Here is some HTML from the file "com.html": The form element named "pt_button_bar" contains an <img> named "submit". That's what's causing problems for Mozilla: <form name="pt_button_bar" onsubmit="id_number_ChangeText(); show_form_OnClick(); return(false);"> <a href="javascript:submit_form_OnClick()" onmouseover="window.document.submit.src='/trapeze/ptimages/bb_submit_md_act.gif' ; return true;" onmouseout="window.document.submit.src='/trapeze/ptimages/bb_submit_md.gif';"> <img src="com_data/bb_submit_md.gif" name="submit" width="40" height="40" align="middle" border="0" alt="Submit a New Change Request"></a> There is a second form element named "pt_form_load": <!-- ----------------------------------------------------------------- --> <!-- pt_form_load.js --> <!-- Loads default form values for the specified input names.--> <form name="pt_form_load"> <input name="ACTION_FLAG" type="hidden" value="NO_ACTION"> <input name="TEMPLATE_FLAG" type="hidden" value="NO_ACTION"> <!-- Problem/Task/Cvid IDs : if necessary --> <input name="problem_number" type="hidden" value="NO_ACTION"> <input name="task_number" type="hidden" value="NO_ACTION"> <input name="cvid" type="hidden" value="NO_ACTION"> <!-- This is only needed for viewing an object w/ ASSOC_TASK_OBJECT.CUSTOM --> <input name="CHOSEN_REPORT" type="hidden" value="NO_ACTION"> <!-- PT Security Data --> <input name="role" type="hidden" value="NO_ACTION"> <input name="token" type="hidden" value="NO_ACTION"> </form> <!-- END pt_form_load.js --> <!-- ----------------------------------------------------------------- --> This form is forced to submit to the server by JavaScript code: function reload_frames() { window.document.pt_form_load.method = "POST"; window.document.pt_form_load.action = "/servlet/com.continuus.webpt.servlet.PTweb"; window.document.pt_form_load.target = "dialog"; window.document.pt_form_load.ACTION_FLAG.value = "frameset_form"; window.document.pt_form_load.TEMPLATE_FLAG.value = "WebPTUser"; window.document.pt_form_load.role.value = role; window.document.pt_form_load.token.value = token; window.document.pt_form_load.submit(); } Notice the error Mozilla is reporting is "Error: window.document.pt_form_load.submit is not a function" This shows that in Mozilla, the image named "submit" is shadowing |pt_form_load.submit|, even though that image is not even contained in the "pt_form_load" form. It's in the "pt_button_bar" form !
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•