dcsimg
Results 1 to 3 of 3

Thread: Getting error in aspx page and not sure why?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    4,832

    Getting error in aspx page and not sure why?

    I have an aspx page that's throwing an exception and not sure why. It says "HideWaitingImage" is not a member of 'ASP.masftninfo_aspx'". Here is my markup code as well as the javascript function.

    Code:
            function HideWaitingImage() {
                document.getElementById("imgWaiting").style.display = "none";
            }
    Code:
    <asp:Panel ID="pBody6" runat="server" CssClass="cpBody">
         <asp:Image ID="imgWaiting" ImageUrl="Images/waiting-6_rz.gif" style="margin-left: 800" runat="server" />
         <iframe id="iFrameTool" onload="HideWaitingImage()" scrolling="yes" frameborder="0" width="100%" height="800px" runat="server"></iframe>
    </asp:Panel>
    Blake

  2. #2
    Hyperactive Member
    Join Date
    Nov 2017
    Posts
    398

    Re: Getting error in aspx page and not sure why?

    runat="server" causes it to look for a server side function with that name, not client side Javascript.

    Suggestions in the URL below, hope it helps.

    https://forums.asp.net/t/1595376.asp...e+onload+event

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    4,832

    Re: Getting error in aspx page and not sure why?

    I just abandoned the task. It was no big deal anyway. Basically, I loaded an animated gif as the "src" for the iframe (just one of those gif's that show a page is loading). As soon as the page loaded into the iframe, I wanted to call a javascript function that would reset some of the iframe's styles, which I had set in the iframe tag, that would center the image.

    I couldn't get it to do what I wanted.
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width