When loading two PopUpAppenders on a single page (inner frame on separate domain - don't ask!) in IE7 it was giving an Access Exception on the second popup (because the windowName was identical). It worked fine on Chrome.
To fix I changed the following line to make windowName unique:
Since the consoleAppenderId should be unique for each PopUpAppender generated by a single instance of log4javascript, I assume you must have log4javascript running in two separate windows. Is that correct?
If so, the timestamp seems a reasonable workaround. Theoretically you could end up with two windows generating PopUpAppenders within a millisecond of each other. I'm about to do a bugfix release, so I'll add something in to help with this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually the timestamp is bad for one reason I've just remembered, which is that the idea is that the window name will remain the same if the page is refreshed, allowing a single pop-up window to be reused for multiple requests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
When loading two PopUpAppenders on a single page (inner frame on separate domain - don't ask!) in IE7 it was giving an Access Exception on the second popup (because the windowName was identical). It worked fine on Chrome.
To fix I changed the following line to make windowName unique:
to
Let me know if I'm doing something wrong. Cheers.
Since the consoleAppenderId should be unique for each PopUpAppender generated by a single instance of log4javascript, I assume you must have log4javascript running in two separate windows. Is that correct?
If so, the timestamp seems a reasonable workaround. Theoretically you could end up with two windows generating PopUpAppenders within a millisecond of each other. I'm about to do a bugfix release, so I'll add something in to help with this.
Actually the timestamp is bad for one reason I've just remembered, which is that the idea is that the window name will remain the same if the page is refreshed, allowing a single pop-up window to be reused for multiple requests.
I've added a possible workaround for this in 1.4.4. Let me know if it doesn't work for you.