Welcome Guest Search | Active Topics | Sign In | Register

eo_Callback and IE 9.0 issue Options
Darrell Reinke
Posted: Monday, June 20, 2011 5:09:01 PM
Rank: Advanced Member
Groups: Member

Joined: 7/18/2008
Posts: 76
Good Afternoon,

I have been doing some testing with IE 9.0 browser against an application that I have written and I am running into issues with the eo_Callback function. I have been reading your support site and it appears that Microsoft has done something to cause the AJAX functionality to become flakey within their latest web browser (no surprise there). Based upon the feedback you have been giving your users, you have addressed most of them so I decided to download and install version 8.0.60.2 hoping that it would address the issue I am seeing. Please keep in mind that this functionality is working great on IE 7.0 and IE 8.0 browsers, just not the new IE 9.0.

Basically, I am prompting a the user of this screen to pick a different user so they can impersonate them. I have verified that all of the javascript is working correctly and that it is passing the correct value into the eo_Callback function of
Code: JavaScript
eo_Callback("<%=cbpWrkFlow.ClientID%>", sAddValue);
. What does not happen is that the callback function appears to post back to the server, but nothing happens (meaning the callback method is not executed).

I have dummied down a test page to demostrate what I am experiencing (I have kept all my EO objects, but trimmed down the code to demonstrate what is not working in IE9, but what is working in the lower browser versions. Any help would be greatly appreciated. I did some research of my own and found some blobs stating that Micorsoft new that there were some issues with AJAX postbacks, but that they were not going to address them and that the programmers would have to "work around" those issues (I am basically summarizing the last statement).

I need this resolved before I can officially support my app on IE 9.0

Test ASPX page
Code: HTML/ASPX
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TestEOCallback.aspx.vb" Inherits="PCN.TestEOCallback" %>

<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title></title>
   <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="Frame.js"></script>
   <link href="WrkFlow.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-left: 2px; margin-top: 2px;">
   <script type="text/javascript">
      window.status = "PCN Dashboard";
   </script>
   <form id="frmWrkFlow" runat="server">
   <eo:CallbackPanel ID="cbpWrkFlow" runat="server" AutoDisableContents="True">
      <asp:Panel ID="pnlError" runat="server" Visible="False">
         <table cellpadding="0" cellspacing="0" border="0" style="font-family: Tahoma; width: 750px; font-size: xx-small">
            <tr>
               <td valign="top">
                  <img src="Images/confirmation_close_48.gif" alt="" />
               </td>
               <td valign="top" style="padding-top: 3px; padding-left: 5px;">
                  <asp:Label ID="Label3" runat="server" Text="An error has occurred in the application." Font-Names="tahoma" Font-Size="Medium" ForeColor="Red" Width="735px" Font-Bold="True"></asp:Label>
               </td>
            </tr>
            <tr>
               <td align="right" style="padding-top: 2px;">
                  <img src="Images/error.gif" alt="" />
               </td>
               <td>
                  <asp:Label ID="lblError" runat="server" Text="Error" Font-Size="Small"></asp:Label>
               </td>
            </tr>
            <tr style="padding-bottom: 5px;">
               <td>
               </td>
               <td>
                  <asp:Label ID="lblErrorDetail" runat="server" Font-Size="Small" Text="Detail"></asp:Label>
               </td>
            </tr>
            <tr>
               <td>
               </td>
               <td valign="top">
                  <table cellpadding="0" cellspacing="0" border="0">
                     <tr>
                        <td style="padding-bottom: 10px; padding-top: 10px;">
                           <asp:LinkButton ID="lbNotFound" runat="server" OnClientClick="javascript:return notifyTM('FINDUSER');" ForeColor="Blue" Text="Click here to report issue to Payroll Support" ToolTip="Click here to report issue to Payroll Support." Font-Names="tahoma" Font-Size="small" />
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
         </table>
      </asp:Panel>
      <asp:Panel ID="pnlWrkFlow" runat="server" Visible="true">
         <div id="dvContent" style="overflow: auto; height: 515px;">
            <table cellpadding="0" cellspacing="0" border="0">
               <tr style="background-image: url('Images/bgBlue.jpg')">
                  <td>
                     <asp:Table ID="tblImpersonate" runat="server" Visible="true">
                        <asp:TableRow ID="trImpersonate" runat="server" Font-Names="tahoma" Font-Size="XX-Small">
                           <asp:TableCell ID="tcImpersonate1" runat="server">
                              <asp:ImageButton ID="imgbtnImpersonate" runat="server" ImageUrl="Images/id_config_16.gif" ToolTip="Click here if you would like to Impersonate a different Greystar Team Member" Visible="True" />
                           </asp:TableCell>
                           <asp:TableCell ID="tcImpersonate2" runat="server">
                               
                              <asp:Label ID="lblImpersonateUser" runat="server" Text="&lt;-- Click here to impersonate as a different Greystar team member." Font-Names="tahoma" Font-Size="XX-Small" ForeColor="White" Font-Bold="True"></asp:Label>
                           </asp:TableCell>
                        </asp:TableRow>
                     </asp:Table>
                  </td>
               </tr>
               <tr style="background-color: #0A2D65; padding-top: 3px; padding-bottom: 3px; width: 760px;">
                  <td align="center">
                     <asp:Label ID="lblHdr1" runat="server" Text="Currently Assigned PCN Transactions (In Process)" Font-Bold="True" Font-Names="tahoma" Font-Size="Small" ForeColor="White"></asp:Label>
                  </td>
               </tr>
               <tr>
                  <td style="padding-bottom: 5px;">
                     <eo:Grid ID="grdAssigned" runat="server" BorderColor="#C7D1DF" BorderWidth="1px" ColumnHeaderAscImage="00050303" ColumnHeaderDescImage="00050304" ColumnHeaderDividerImage="00050302" FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
                        Font-Overline="False" Font-Size="XX-Small" Font-Strikeout="False" Font-Underline="False" GridLineColor="199, 209, 223" Height="185px" ItemHeight="19" Width="775px" ClientSideOnItemCommand="grdPCNOnItemCommand" ClientSideOnContextMenu="ShowContextAssigned"
                        KeyField="workflowid">
                        <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
                        <ItemStyles>
                           <eo:GridItemStyleSet>
                              <ItemStyle CssText="background-color: white" />
                              <ItemHoverStyle CssText="background-image:url('00050202');background-repeat:repeat-x;" />
                              <SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x" />
                              <CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;white-space:nowrap;" />
                           </eo:GridItemStyleSet>
                        </ItemStyles>
                        <ColumnTemplates>
                           <eo:TextBoxColumn>
                              <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
                           </eo:TextBoxColumn>
                        </ColumnTemplates>
                        <Columns>
                           <eo:RowNumberColumn Width="0">
                           </eo:RowNumberColumn>
                           <eo:ButtonColumn AllowResize="False" ButtonText="Process" HeaderText="Action" CommandName="APPROVE_PCN" ButtonType="PushButton" Width="72" DataField="transaction_status" StyleField="">
                              <ButtonStyle CssText="font-family:tahoma;font-size:XX-Small;" />
                              <CellStyle CssText="padding-bottom:0px;padding-left:2px;padding-right:0px;padding-top:0px;" />
                           </eo:ButtonColumn>
                           <eo:StaticColumn DataField="transactionid" HeaderText="Trans. #" Width="55">
                              <CellStyle CssText="color:#336699; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; text-align: right; padding-right: 4px; font-size:xx-small;" />
                           </eo:StaticColumn>                           
                           <eo:StaticColumn HeaderText="Type" Width="190" DataField="work_flow_step_descp">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="Submit Dt" DataField="initiate_dt_frmt" Width="75" Text="" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="Eff. Dt" DataField="pcn_eff_dt" Width="75" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="pcn_full_nm" HeaderText="Team Member Name" Width="140" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="Initiated by" DataField="initiate_full_nm" AllowSort="True" Width="150">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="workflowid" DataField="workflowid" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="initiate_id" DataField="initiate_id" Width="0" Visible="false">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="wf_step_id" DataField="wf_step_id" Width="0" Visible="false">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="transactionid" HeaderText="transactionid" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="workflow_type_code" HeaderText="workflow_type_code" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="approval_type_code" HeaderText="approval_type_code" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="transaction_status" HeaderText="transaction_status" Visible="False" Width="0">
                           </eo:StaticColumn>                           
                        </Columns>
                        <ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;" />
                     </eo:Grid>
                  </td>
               </tr>
               <tr style="background-color: #0A2D65; padding-top: 3px; padding-bottom: 3px; width: 760px;">
                  <td align="center">
                     <asp:Label ID="lblHr2" runat="server" Text="Submitted Transactions Waiting Approval" Font-Bold="True" Font-Names="tahoma" Font-Size="Small" ForeColor="White"></asp:Label>
                  </td>
               </tr>
               <tr>
                  <td style="padding-bottom: 5px;">
                     <eo:Grid ID="grdInProcess" runat="server" BorderColor="#C7D1DF" BorderWidth="1px" ColumnHeaderAscImage="00050303" ColumnHeaderDescImage="00050304" ColumnHeaderDividerImage="00050302" FixedColumnCount="1" Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
                        Font-Overline="False" Font-Size="XX-Small" Font-Strikeout="False" Font-Underline="False" GridLineColor="199, 209, 223" Height="195px" ItemHeight="19" Width="775px" ClientSideOnContextMenu="ShowContextAssigned" ClientSideOnItemCommand="grdPCNOnItemCommand"
                        KeyField="workflowid">
                        <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
                        <ItemStyles>
                           <eo:GridItemStyleSet>
                              <ItemStyle CssText="background-color: white" />
                              <ItemHoverStyle CssText="background-image:url('00050202');background-repeat:repeat-x;" />
                              <SelectedStyle CssText="background-image: url(00050207); background-repeat: repeat-x" />
                              <CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;white-space:nowrap;" />
                           </eo:GridItemStyleSet>
                        </ItemStyles>
                        <ColumnTemplates>
                           <eo:TextBoxColumn>
                              <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
                           </eo:TextBoxColumn>
                        </ColumnTemplates>
                        <Columns>
                           <eo:RowNumberColumn Width="0">
                           </eo:RowNumberColumn>
                           <eo:ButtonColumn AllowResize="False" HeaderText="Action" ButtonText="View" CommandName="VIEW_PCN" ButtonType="PushButton" Width="65">
                              <ButtonStyle CssText="font-family:tahoma;font-size:XX-Small;width: 55px;" />
                              <CellStyle CssText="padding-bottom:0px;padding-left:2px;padding-right:0px;padding-top:0px;" />
                           </eo:ButtonColumn>
                           <eo:StaticColumn DataField="transactionid" HeaderText="Trans. #" Width="55" AllowSort="True">
                              <CellStyle CssText="color:#336699; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; text-align: right; padding-right: 4px; font-size:xx-small;" />
                           </eo:StaticColumn>                           
                           <eo:StaticColumn HeaderText="Type" Width="140" DataField="work_flow_step_descp" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="Submit Dt" DataField="initiate_dt_frmt" Width="75" Text="" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="Eff. Dt" DataField="pcn_eff_dt" Width="75" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="pcn_full_nm" HeaderText="Team Member Name" Width="115" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="workflow_status" HeaderText="Status" Width="225" AllowSort="True">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="workflowid" DataField="workflowid" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="initiate_id" DataField="initiate_id" Width="0" Visible="false">
                           </eo:StaticColumn>
                           <eo:StaticColumn HeaderText="wf_step_id" DataField="wf_step_id" Width="0" Visible="false">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="transactionid" HeaderText="transactionid" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="workflow_type_code" HeaderText="workflow_type_code" Visible="False" Width="0">
                           </eo:StaticColumn>
                           <eo:StaticColumn DataField="approval_type_code" HeaderText="approval_type_code" Visible="False" Width="0">
                           </eo:StaticColumn>  
                           <eo:StaticColumn DataField="transaction_status" HeaderText="transaction_status" Visible="False" Width="0">
                           </eo:StaticColumn>                              
                        </Columns>
                        <ColumnHeaderStyle CssText="background-image:url('00050301');padding-left:8px;padding-top:2px;font-weight: bold;color:white;" />
                     </eo:Grid>
                  </td>
               </tr>
               <tr>
                  <td>
                     <asp:Label ID="lblDebug" runat="server" Text="Debug Area" style="font-family: Tahoma; font-size: 10pt;"></asp:Label>
                     <asp:Button ID="btnTestSessionTimeOut" Visible="false" Font-Names="Tahoma" Font-Size="XX-Small" runat="server" Text="Test Session TimeOut" UseSubmitBehavior="true" />
                  </td>
               </tr>
            </table>
         </div>
      </asp:Panel>
      <asp:HiddenField ID="hdnUserID" runat="server" />
      <asp:HiddenField ID="hdnWrkFlowID" runat="server" />
      <asp:HiddenField ID="hdnAssociateID" runat="server" />
      <asp:HiddenField ID="hdnSupervisorEMail" runat="server" />
      <asp:HiddenField ID="hdnSupervisorUserID" runat="server" />
      <asp:HiddenField ID="hdnLoginAssociateID" runat="server" />
      <asp:HiddenField ID="hdnAccessType" runat="server" />
      <asp:HiddenField ID="hdnFullName" runat="server" />
      <asp:HiddenField ID="hdnImpersonateID" runat="server" />
      <asp:HiddenField ID="hdnLoginFullName" runat="server" />
      <asp:HiddenField ID="hdnLoginEMailAddr" runat="server" />            
      <asp:Label ID="lbljvexecute" runat="server" ForeColor="White" Style="font-size: 1px;"></asp:Label>
   </eo:CallbackPanel>
   <eo:ContextMenu ID="mnuGridOptions" runat="server" ClientSideOnItemClick="OnContextMenuItemClickedEdit" ControlSkinID="None" Width="200px" CheckIconUrl="OfficeCheckIcon2">
      <LookItems>
         <eo:MenuItem DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;color:gray" Height="24"
            HoverStyle-CssText="background-color:#C0D6F4;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;"
            ItemID="_TopLevelItem" NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px;" SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:4px;padding-right:4px;padding-top:0px;padding-bottom:0px;">
            <SubMenu CollapseEffect-Type="GlideTopToBottom" ExpandEffect-Type="GlideTopToBottom" ItemSpacing="3" LeftIconCellWidth="25" SideImage="Office2003SideBar2" Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;">
            </SubMenu>
         </eo:MenuItem>
         <eo:MenuItem IsSeparator="True" ItemID="_Separator" NormalStyle-CssText="background-color:#6a8ccb;height:1px;margin-left:30px;width:1px;">
         </eo:MenuItem>
         <eo:MenuItem DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;color:gray" Height="24"
            HoverStyle-CssText="background-color:#FFEEC2;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
            ItemID="_Default" NormalStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;padding-bottom:1px;padding-left:2px;padding-right:5px;padding-top:1px;" SelectedStyle-CssText="background-color:white;border-bottom-color:#000080;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#000080;border-left-style:solid;border-left-width:1px;border-right-color:#000080;border-right-style:solid;border-right-width:1px;border-top-color:#000080;border-top-style:solid;border-top-width:1px;padding-left:1px;padding-right:4px;padding-top:0px;"
            Text-Padding-Right="30">
            <SubMenu CollapseEffect-Type="GlideTopToBottom" ExpandEffect-Type="GlideTopToBottom" ItemSpacing="3" LeftIconCellWidth="25" SideImage="Office2003SideBar2" Style-CssText="background-color:#F6F6F6;border-bottom-color:#002D96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002D96;border-left-style:solid;border-left-width:1px;border-right-color:#002D96;border-right-style:solid;border-right-width:1px;border-top-color:#002D96;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;">
            </SubMenu>
         </eo:MenuItem>
      </LookItems>
      <TopGroup Style-CssText="background-color:white;">
         <Items>
            <eo:MenuItem Text-Html="View Approval Details" LeftIcon-Url="~/Images/table_properties_info_16.gif">
            </eo:MenuItem>
         </Items>
      </TopGroup>
   </eo:ContextMenu>
   <script type="text/javascript">
      function impersonateUser() {

         try {

            //I manually set this value for testing purposes.
            sValue = "impersonate@6701";

            if (sValue !== "CANCEL") {
               if (sValue !== undefined) {
                  var sRequestSplitResult;
                  sRequestSplitResult = sValue.split("@");
                  var sAddValue = "impersonate@" + sRequestSplitResult[0]
                  eo_Callback("<%=cbpWrkFlow.ClientID%>", sAddValue);
               }
               else {
                  eo_Callback("<%=cbpWrkFlow.ClientID%>", "RESETAUTH");
               } //End if (sValue !== undefined) { 
            } //End if (sValue !== "CANCEL"){      

         }
         catch (errorObject) {
            msg = "There was an error on this page (impersonateUser).\n\n"
            msg += "An internal programming error may keep\n"
            msg += "this page from displaying properly.\n"
            msg += "Click OK to continue viewing this page.\n\n"
            msg += "Description: " + errorObject.description + "\n\n"
            alert(msg);
            return false;
         } //try catch(errorObject) 

      } //End function impersonateUser() {       
      
   </script>   
   
   </form>
</body>
</html>



Test VB.NET
Code: Visual Basic.NET
Public Class TestEOCallback
    Inherits System.Web.UI.Page

   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

      'Turn Off Caching at the Server Level for this page.
      Response.Cache.SetCacheability(HttpCacheability.NoCache)

      'First Time Through, Load Information to Screen
      If Not IsPostBack Then

         lblDebug.Visible = True

         'Set the Height of the Panel Based upon the Height of the Parents IFrame
         If Not IsNothing(Request.QueryString("hgt")) Then
            If IsNumeric(Request.QueryString("hgt")) Then
               pnlWrkFlow.Height = CInt(Request.QueryString("hgt")) - 180
            End If
         End If

         hdnLoginAssociateID.Value = "0000"
         hdnSupervisorUserID.Value = "userid"
         hdnLoginEMailAddr.Value = "email"
         hdnSupervisorEMail.Value = "email"
         hdnLoginFullName.Value = "full_nm"
         hdnFullName.Value = "full_nm"

         lblDebug.Text = "Begin Testing..."
         tblImpersonate.Visible = True
         imgbtnImpersonate.Attributes.Add("onclick", "javascript:impersonateUser();")

      End If 'End If Not IsPostBack Then




   End Sub

#Region "  Callback Code"

   Protected Sub cbpWrkFlow_Execute(ByVal sender As Object, ByVal e As EO.Web.CallbackEventArgs) Handles cbpWrkFlow.Execute

      Dim sValues() As String = Nothing

      Try

         sValues = e.Parameter.Split("@")

         'This should contain the word "impersonate"
         If sValues(0).ToLower.Trim.Length = 0 Then
            lblDebug.Text = "No value is available within e.Parameter"
         Else
            lblDebug.Text = "Value for e.Parameter is " + sValues(0).ToLower
         End If

         Select Case sValues(0).ToLower
            Case "impersonate"
               hdnImpersonateID.Value = sValues(1).ToString
               'Would really launch impersonate code (not supplied) to refresh the data grids
            Case "resetauth"
               hdnImpersonateID.Value = ""
               'code not supplied for testing reasons....
            Case "refresh"
               If hdnImpersonateID.Value.Trim.Length > 0 Then
                  'code not supplied for testing reasons....
               Else
                  'code not supplied for testing reasons....
               End If

         End Select

      Catch exLoad As Exception
         pnlWrkFlow.Visible = False
         lblError.Text = "Error in application (pcnWrkFlowDashBoard.aspx--cbpWrkFlow_Execute):  " + exLoad.Message.Trim
         lblErrorDetail.Text = exLoad.ToString.Trim
         pnlError.Visible = True
      End Try

   End Sub

#End Region

End Class



Darrell Reinke
Posted: Monday, June 20, 2011 5:12:29 PM
Rank: Advanced Member
Groups: Member

Joined: 7/18/2008
Posts: 76
I forgot to tell you that I am using Visual Studio 2010 with EO Objects 8.0 (latest build) using the .NET 4.0 framework.
eo_support
Posted: Tuesday, June 21, 2011 2:10:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The problem is not an IE 9 issue or an eo_Callback issue. The root of the problem is you did not cancel the onclick event after you called eo_Callback. So onclick event proceeds further on the image button and starts another full page post back after the AJAX callback. This should have never worked, or at least not working reliably on any browser. However it may appear to have worked for you in earlier browsers because of timing differences.

To cancel onclick event is easy. You can just change “javascript:impersonateUser();” to “javascript:impersonateUser();return false;”

Note this is only an issue if you manually call eo_Callback. If you use triggers then everything will be automatically taken care of.

Thanks
Darrell Reinke
Posted: Tuesday, June 21, 2011 2:13:57 PM
Rank: Advanced Member
Groups: Member

Joined: 7/18/2008
Posts: 76
Thank you for the help. Sorry to have troubled you with this.
eo_support
Posted: Tuesday, June 21, 2011 2:22:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
No problem. Glad that we were able to help.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.