UpdatePanel.Update() doesn't work in Firefox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mel

    UpdatePanel.Update() doesn't work in Firefox

    I have an update panel that has the UpdateMode set to "Conditiona l".
    When I call UpdatePanel1.Up date() in the VB code it does not work in
    FireFox. It works just fine in Internet Explorer 6.0. Any ideas on
    how to fix it so it works in FireFox 2.0.0.14?
  • Andy

    #2
    Re: UpdatePanel.Upd ate() doesn't work in Firefox

    Because the updatepanel runs on the client and renders part of the
    page without calling the server, I'm assuming that the script manager
    that it runs on is implemented as a Microsoft behavior. Firefox,
    Netscape, Mozilla, IE4 and earlier do not support Microsoft
    behaviors. You can test if this is the problem by trying to run your
    stuff on these other browsers. If it is because of behaviors, then
    your app won't work on these either.

    W3C has another HTML extensibility model equivalent to MS behaviors
    called Actions. To get your stuff to work on Netscape based browsers,
    you will have to re-implement the script manager and update panel
    controls as Actions (or see if somebody else has already done that).

    Comment

    • Mel

      #3
      Re: UpdatePanel.Upd ate() doesn't work in Firefox

      On Apr 21, 12:59 pm, Andy <ane...@infot ek-consulting.comw rote:
      Because the updatepanel runs on the client and renders part of the
      page without calling the server, I'm assuming that the script manager
      that it runs on is implemented as a Microsoft behavior. Firefox,
      Netscape, Mozilla, IE4 and earlier do not support Microsoft
      behaviors. You can test if this is the problem by trying to run your
      stuff on these other browsers. If it is because of behaviors, then
      your app won't work on these either.
      >
      W3C has another HTML extensibility model equivalent to MS behaviors
      called Actions. To get your stuff to work on Netscape based browsers,
      you will have to re-implement the script manager and update panel
      controls as Actions (or see if somebody else has already done that).
      Anyone know anything about implementing the update panel as Actions?

      Comment

      • gerry

        #4
        Re: UpdatePanel.Upd ate() doesn't work in Firefox

        forget about this actions malarky - can you post an example that
        demonstrates the issue ?



        "Mel" <MLightsOut@gma il.comwrote in message
        news:648d5936-44ff-4c08-aa3f-8692c4165c58@m7 3g2000hsh.googl egroups.com...
        On Apr 21, 12:59 pm, Andy <ane...@infot ek-consulting.comw rote:
        >Because the updatepanel runs on the client and renders part of the
        >page without calling the server, I'm assuming that the script manager
        >that it runs on is implemented as a Microsoft behavior. Firefox,
        >Netscape, Mozilla, IE4 and earlier do not support Microsoft
        >behaviors. You can test if this is the problem by trying to run your
        >stuff on these other browsers. If it is because of behaviors, then
        >your app won't work on these either.
        >>
        >W3C has another HTML extensibility model equivalent to MS behaviors
        >called Actions. To get your stuff to work on Netscape based browsers,
        >you will have to re-implement the script manager and update panel
        >controls as Actions (or see if somebody else has already done that).
        >
        Anyone know anything about implementing the update panel as Actions?

        Comment

        • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

          #5
          RE: UpdatePanel.Upd ate() doesn't work in Firefox

          most likely you have a scripting error on the page that prevents the ajax
          call. install firebug in ff and see what your error is.

          ..Update is a server sde method, so if it is firing with ff, then you have a
          serverside error, as this means the ajax library is running.

          -- bruce (sqlwork.com)


          "Mel" wrote:
          I have an update panel that has the UpdateMode set to "Conditiona l".
          When I call UpdatePanel1.Up date() in the VB code it does not work in
          FireFox. It works just fine in Internet Explorer 6.0. Any ideas on
          how to fix it so it works in FireFox 2.0.0.14?
          >

          Comment

          • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

            #6
            Re: UpdatePanel.Upd ate() doesn't work in Firefox

            the update panel supports ff and safari, no additional code is required.

            -- bruce (sqlwork.com)


            "Mel" wrote:
            On Apr 21, 12:59 pm, Andy <ane...@infot ek-consulting.comw rote:
            Because the updatepanel runs on the client and renders part of the
            page without calling the server, I'm assuming that the script manager
            that it runs on is implemented as a Microsoft behavior. Firefox,
            Netscape, Mozilla, IE4 and earlier do not support Microsoft
            behaviors. You can test if this is the problem by trying to run your
            stuff on these other browsers. If it is because of behaviors, then
            your app won't work on these either.

            W3C has another HTML extensibility model equivalent to MS behaviors
            called Actions. To get your stuff to work on Netscape based browsers,
            you will have to re-implement the script manager and update panel
            controls as Actions (or see if somebody else has already done that).
            >
            Anyone know anything about implementing the update panel as Actions?
            >

            Comment

            • gerry

              #7
              Re: UpdatePanel.Upd ate() doesn't work in Firefox

              for example , this works just fine in ie/ff/opera/...

              ===== WebForm1.aspx =======
              <%@ Page Language="C#" AutoEventWireup ="true" CodeBehind="Web Form1.aspx.cs"
              Inherits="Web.W ebForm1" %>
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
              <html xmlns="http://www.w3.org/1999/xhtml" >
              <head runat="server">
              <title>Untitl ed Page</title>
              </head>
              <body>
              <form id="form1" runat="server">
              <div>
              <asp:ScriptMana ger ID="ScriptManag er1" runat="server" />
              <asp:UpdatePane l ID="UpdatePanel 1" runat="server"
              UpdateMode="Con ditional">
              <ContentTemplat e>
              1 <asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
              <asp:Button ID="Button1" runat="server" Text="Just 1"
              onclick="Button 1_Click" />
              <asp:Button ID="Button3" runat="server" onclick="Button 3_Click"
              Text="Both" />
              </ContentTemplate >
              </asp:UpdatePanel >
              <asp:UpdatePane l ID="UpdatePanel 2" runat="server"
              UpdateMode="Con ditional">
              <ContentTemplat e>
              2 <asp:TextBox ID="TextBox2" runat="server"> </asp:TextBox>
              <asp:Button ID="Button2" runat="server" Text="Just 2"
              onclick="Button 2_Click" />
              </ContentTemplate >
              </asp:UpdatePanel >
              </div>
              </form>
              </body>
              </html>

              ====== WebForm1.aspx.c s =========

              using System;
              namespace Web
              {
              public partial class WebForm1 : System.Web.UI.P age
              {
              protected void Page_Load( object sender , EventArgs e )
              {
              }
              private void UpdateThings()
              {
              TextBox1.Text = TextBox2.Text = DateTime.Now.To String(
              "hh:mm:ss.fffff f" );
              }
              protected void Button1_Click( object sender , EventArgs e )
              {
              UpdateThings();
              }
              protected void Button3_Click( object sender , EventArgs e )
              {
              UpdateThings();
              UpdatePanel2.Up date();
              }
              protected void Button2_Click( object sender , EventArgs e )
              {
              UpdateThings();
              }
              }
              }



              "gerry" <germ@newsgroup .nospamwrote in message
              news:OnrxlZ%23o IHA.4928@TK2MSF TNGP04.phx.gbl. ..
              forget about this actions malarky - can you post an example that
              demonstrates the issue ?
              >
              >
              >
              "Mel" <MLightsOut@gma il.comwrote in message
              news:648d5936-44ff-4c08-aa3f-8692c4165c58@m7 3g2000hsh.googl egroups.com...
              >On Apr 21, 12:59 pm, Andy <ane...@infot ek-consulting.comw rote:
              >>Because the updatepanel runs on the client and renders part of the
              >>page without calling the server, I'm assuming that the script manager
              >>that it runs on is implemented as a Microsoft behavior. Firefox,
              >>Netscape, Mozilla, IE4 and earlier do not support Microsoft
              >>behaviors. You can test if this is the problem by trying to run your
              >>stuff on these other browsers. If it is because of behaviors, then
              >>your app won't work on these either.
              >>>
              >>W3C has another HTML extensibility model equivalent to MS behaviors
              >>called Actions. To get your stuff to work on Netscape based browsers,
              >>you will have to re-implement the script manager and update panel
              >>controls as Actions (or see if somebody else has already done that).
              >>
              >Anyone know anything about implementing the update panel as Actions?
              >
              >

              Comment

              • Mel

                #8
                Re: UpdatePanel.Upd ate() doesn't work in Firefox

                On Apr 21, 1:58 pm, Mel <MLights...@gma il.comwrote:
                On Apr 21, 12:59 pm, Andy <ane...@infot ek-consulting.comw rote:
                >
                Because the updatepanel runs on the client and renders part of the
                page without calling the server, I'm assuming that the script manager
                that it runs on is implemented as a Microsoft behavior. Firefox,
                Netscape, Mozilla, IE4 and earlier do not support Microsoft
                behaviors. You can test if this is the problem by trying to run your
                stuff on these other browsers. If it is because of behaviors, then
                your app won't work on these either.
                >
                W3C has another HTML extensibility model equivalent to MS behaviors
                called Actions. To get your stuff to work on Netscape based browsers,
                you will have to re-implement the script manager and update panel
                controls as Actions (or see if somebody else has already done that).
                >
                Anyone know anything about implementing the update panel as Actions?
                Fixed. Apparently this is a known issue with images in UpdatePanels.
                I "change" the imageURL of the imagebutton to something different each
                time, by appending "?a=" followed by a number which gets incremented
                each time. Now the image updates properly.

                Comment

                Working...