Note that there are some explanatory texts on larger screens.

plurals
  1. POPage refresh in IE but not in Firefox with __doPostback
    primarykey
    data
    text
    <p>I have the following HTML code :-</p> <pre><code> &lt;telerik:RadSplitter ClientIDMode="Static" ID="RadSplitter1" runat="server" PanesBorderSize="0" BorderSize="0" Width="100%" Height="100%" Orientation="Vertical" CssClass="radSplitterCss" HeightOffset="98"&gt; &lt;telerik:RadPane ID="RadPane2" runat="server" Width="293px" Height="100%" BackColor="white" CssClass="radLeftPane"&gt; &lt;uc1:UCMainMenu ID="UCMainMenu1" runat="server" /&gt; &lt;/telerik:RadPane&gt; &lt;telerik:RadSplitBar ID="RadSplitbar2" runat="server" Width="1%" CollapseMode="Forward" CssClass="radSplitBar" &gt; &lt;/telerik:RadSplitBar&gt; &lt;telerik:RadPane ID="RadPane3" runat="server" BackColor="white" CssClass="radRightPane" &gt; &lt;div class="mainContent"&gt; &lt;asp:ContentPlaceHolder ClientIDMode="Static" runat="server" ID="MainContent" /&gt; &lt;/div&gt; &lt;/telerik:RadPane&gt; &lt;/telerik:RadSplitter&gt; </code></pre> <p>and the code for the UCMainMenu is as follows :-</p> <pre><code> &lt;asp:UpdatePanel runat="server" ID="MainMenuUP" UpdateMode="Conditional"&gt; &lt;ContentTemplate&gt; &lt;div id="mainMenu"&gt; &lt;telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" Height="100%" OnItemDataBound="ItemDataBound" &gt; &lt;ExpandAnimation Type="None" /&gt; &lt;/telerik:RadPanelBar&gt; &lt;/div&gt; &lt;/ContentTemplate&gt; &lt;/asp:UpdatePanel&gt; </code></pre> <p>Now I have some JQuery, to do a search, and its supposed to filter the menu without any page refresh (that is why I included the UpdatePanel).</p> <pre><code> $("#reports_textSearch").keyup(function () { var textLength = $(this).val().length; delay(function () { if (textLength == 0) { emptySearchString(); } if (textLength &gt; 2) { var args = { reportName: document.getElementById('reports_textSearch').value }; doSearchString(args); } }, 1000); }); function doSearchString(args) { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "Dashboard.aspx/FetchReports", data: JSON.stringify(args), dataType: "json", success: function (data) { __doPostBack('#MainMenuUP', data.d); }, error: function (data) { } }); } </code></pre> <p>The problem is that in Firefox, the first time it does a refresh but after that there is no refreshing anymore, whilst in IE, its refreshing the whole page all the time.</p> <p>How can I fix this?</p> <p>Thanks for your help and time</p> <p>-------------------UPDATE-------------------------------------------------------- Found 1 of the provlems, changing :-</p> <pre><code> //__doPostBack('#MainMenuUP', data.d); __doPostBack('&lt;%= MainMenuUP.ClientID %&gt;', data.d); </code></pre> <p>the page refresh is gone. However, another piece of JQUERY code is not working now :-</p> <pre><code> $('.rpItem').on("click", "img", function (e) { var text = $(this).siblings('span.rpText').text(); //e.preventDefault(); //e.stopPropagation(); var args = { reportName: text }; $.ajax({ type: "POST", url: "Dashboard.aspx/AddToFavourites", data: JSON.stringify(args), contentType: "application/json;charset=utf-8;", success: function (data) { //__doPostBack('#MainMenuUP', text); __doPostBack('&lt;%= MainMenuUP.ClientID %&gt;', text); }, error: function () { } }); }); </code></pre> <p>Still trying to solve this issue</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload