users@woodstock.java.net

Re: IE6 SP2 Issue with round tripping to server.

From: Dan Labrecque - Sun Microsystems <Dan.Labrecque_at_Sun.COM>
Date: Wed, 20 Jun 2007 13:19:16 -0400

What version of Woodstock are you using?

I don't see my examples refreshing, but it could be an error in your
JavaScript -- &gt; looks suspicious. You'll need to narrow this down a
bit. For example, what happens when you do not call your initAllRows()
script (e.g., will clicking on a checkbox still refresh)?

Dan

John Yeary wrote:
> Hello All,
>
> I have a wonderful application that runs perfectly in Firefox, but has
> some issues with IE 6. Here is one of my issues:
>
> I have a table component which has a checkbox column. Every time I
> click on a checkbox, the page apparently round-trips to the server. I
> can see it re-downloading images etc. On Firefox, Firebug shows NO
> activity. This is what I expect. On IE 6, I am wondering why it round
> trips to the server. The code for the selection is based on the work
> done by Winston Prakash on his blog. It is simple Javascript.
>
> function initAllRows() {
> // Disable table actions by default.
> var table =
> document.getElementById("form1:layoutPanel1:table1");
> table.initAllRows();
> }
>
> function disableActions() {
> // Disable table actions by default.
> var table =
> document.getElementById("form1:layoutPanel1:table1");
> var selections = table.getAllSelectedRowsCount();
> var disabled = selections &gt; 0 ? false : true;
> // Set disabled state for top actions.
>
> document.getElementById("form1:layoutPanel1:table1:groupPanel1:submit").setDisabled(disabled);
>
> document.getElementById("form1:layoutPanel1:table1:groupPanel1:delete").setDisabled(disabled);
> }
>
> Does anyone have any thoughts on how to prevent IE from doing this? I
> have users which are on a VPN tunnel using wireless cellular cards,
> and this results in very poor performance. Again, it works exactly as
> expected on Firefox, but I don't have a choice on browsers.
>
> Thanks,
>
> --
> John Yeary
> --
> "If I have seen further, it is because I have stood on the shoulders
> of giants..." Sir Isaac Newton