それは私が不思議に思うその日の1つです:私は私の心を失っていますか?この単純なjavascript関数をステップ実行すると、実行は3行目から7行目までスキップされます。
function editStudy() {
var studyindex = document.StudyMaint.StudyList.selectedIndex;
var studyabrv = document.StudyMaint.StudyList[index].text; //Line 3
var msg="Edit study "+studyabrv+"?";
// Get the Study record id was selected in the picklist,
// then go to Study edit screen, then
if (confirm(msg)) {
location.href="editStudy.php?action=UPDATE&studyindex="+studyindex+"&studyabrv="+studyabrv;
} //Line 7
}
しかし、私のフォームStudyMaintは次のように定義されています。
<body>
<?php showUserLine(); ?>
<form name="StudyMaint" action="Process_StudyMaint.php" method="POST" onsubmit="return false">
<div id="dataentrybox">
<div id="innerbox">
<div align="center">
...
私がここで間違っていることを誰かが見ていますか?