The table has 2 buttons directly above it.
The first is an Edit button that when clicked on sets displayOnly to false on the table so that the user can edit the table and changes the button text to Save. Clicking on Save sets displayOnly to true again and changes the button text back to Edit.
The other button is a schedule button which is tied a HTML Entities->jQuery click event. The code in the click event is as follows:
Code: Select all
var sessionid=$eb.getField("SESSIONID").getValue();
var realname=$eb.getField("REALNAME").getValue();
var jobwindow=window.open('ufsmain?formid=SCHEDULE&Realname=' + realname + '&SessionID=' + sessionid,'_blank','fullscreen=yes');
jobwindow.resizeTo(screen.availWidth, screen.availHeight);
return false;
As you can see from this code, all I am doing is displaying another eBase form in a popup window.
When the user clicks on the Schedule, the window pops up once as expected.
Here is the problem.
When the user clicks on the Edit button then click on the Schedule button or the user clicks on Edit->Save then clicks on the schedule button the jQuery click event is triggered multiple times causing the popup window to open multiple times (the exact # of times varies). I have verified that my jQuery code in itself is not the issue by replacing all of the code with a sample javaScript alert which displays the alert multiple times.
I have also seen this behavior on another form so I do not believe that it is something specific to my jQuery code. It appears as though some kind of bug is causing eBase to trigger multiple click events on the button.
I can replicate this bug every time and it appears to be jQuery specific.
If I move the exact same code to an HTML onclick event this behavior does NOT occur.