Hello everyone,
I hope that I'm in the right forum. I have a problem concerning the execution of taskforms in different browser.
I have a taskform that contains javascript code and is referenced by a userTask in a test process:
<h1>Handle Form</h1>
Usually the selection box shows "Misuse" at first.<br>
The aim of the javascrippt is to change this selection. After the execution of this form "Settings" should be selected.<br>
But in order to test the compatibility between different browser, we only use the alert-command.
<hr/>
<p>
<b>Classification:</b><br/>
<select id="classificationBox" name="issueClassification">
<option value="misUse" selected>Misuse</option>
<option value="settings">Settings</option>
<option value="technicalProblem">Technical problem</option>
</select>
</p>
<script type="text/javascript">
alert("Hello");
// To change the selection I use this code.
// YAHOO.util.Dom.get('classificationBox').selectedIndex = 1;
</script>
At first I run the process using the Firefox Browser. When I open the taskform in order to complete the userTask, a new Window appears saying "Hello". That's what I want.
Now I run the same process using Internet Explorer 8. Nothing happens when the taskform open. No new Window. No "Hello" :-(. It seems like the Internet Explorer doesn't evaluates the embedded script.
I also tested the process using IE 7 und Google Chrome. And again. No new Window. No "Hello".
Maybe someone could give me a hint where the problem could be. Or, maybe some of you know how to do it not using javascript.
I attached an eclipse project containing this test.
Thanks a lot,
Gerardo