IMG Elements acquiring height and width attributes "automatically"

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

    IMG Elements acquiring height and width attributes "automatically"

    I have an ASP.NET application that is mysteriously acquiring height and width
    attributes on a particular IMG element on multiple pages. This is not being
    caused by someone editing or uploading new copies of the files.

    There are various scripting and "active" technologies enabled on the server:

    ASP.NET
    ASP
    Front Page Extensions
    Perl
    PHP

    Could any of these be editing ASPX files to add size attributes to IMG
    elements? Are there any other circumstances in which this might happen?

    --
    Paul Taylor
    Dotcom Software Solutions

  • Curt_C [MVP]

    #2
    RE: IMG Elements acquiring height and width attributes "automatic ally"

    I can't speak for whatever tools you are using to edit/create the Perl or PHP
    pages but if you are using VS for the ASP.NET ones then NO.
    Now, if you are applying these images in the Designer (or FrontPage) and
    grab the edge of the image you will get the Height & Width since it thinks
    you are adjusting them......
    Again though, any of these tags will be coming in from an editor though, not
    from the server....

    --
    Curt Christianson
    site: http://www.darkfalz.com
    blog: http://blog.darkfalz.com



    "Dotcom" wrote:
    [color=blue]
    > I have an ASP.NET application that is mysteriously acquiring height and width
    > attributes on a particular IMG element on multiple pages. This is not being
    > caused by someone editing or uploading new copies of the files.
    >
    > There are various scripting and "active" technologies enabled on the server:
    >
    > ASP.NET
    > ASP
    > Front Page Extensions
    > Perl
    > PHP
    >
    > Could any of these be editing ASPX files to add size attributes to IMG
    > elements? Are there any other circumstances in which this might happen?
    >
    > --
    > Paul Taylor
    > Dotcom Software Solutions
    > www.dotcomsoftwaresolutions.co.uk[/color]

    Comment

    • Dotcom

      #3
      RE: IMG Elements acquiring height and width attributes

      There aren't any PHP or Perl pages or scripts in fact. All Pages are ASPX or
      HTML and were all produced by Visual Studio. It is a bit weird to say the
      least that these pages appear to be editing themselves. I have several
      instances of this application installed on the same server and only one is
      exhibiting this behaviour. Nobody has edited the files or even opened them in
      an editor; nor have they uploaded edited copies of the pages.

      I thought it might have something to do with the image size: in this case it
      is large enough to cause a fixed width table to "stretch" to accommodate it.

      I have never come across it, but I wondered if there Is any autoresizing
      functionality in one of the server technologies that might be editing the
      pages. Sounds highly undesirable - just wondered if anyone else had
      experienced this.

      --
      Paul Taylor
      Dotcom Software Solutions



      "Curt_C [MVP]" wrote:
      [color=blue]
      > I can't speak for whatever tools you are using to edit/create the Perl or PHP
      > pages but if you are using VS for the ASP.NET ones then NO.
      > Now, if you are applying these images in the Designer (or FrontPage) and
      > grab the edge of the image you will get the Height & Width since it thinks
      > you are adjusting them......
      > Again though, any of these tags will be coming in from an editor though, not
      > from the server....
      >
      > --
      > Curt Christianson
      > site: http://www.darkfalz.com
      > blog: http://blog.darkfalz.com
      >
      >
      >
      > "Dotcom" wrote:
      >[color=green]
      > > I have an ASP.NET application that is mysteriously acquiring height and width
      > > attributes on a particular IMG element on multiple pages. This is not being
      > > caused by someone editing or uploading new copies of the files.
      > >
      > > There are various scripting and "active" technologies enabled on the server:
      > >
      > > ASP.NET
      > > ASP
      > > Front Page Extensions
      > > Perl
      > > PHP
      > >
      > > Could any of these be editing ASPX files to add size attributes to IMG
      > > elements? Are there any other circumstances in which this might happen?
      > >
      > > --
      > > Paul Taylor
      > > Dotcom Software Solutions
      > > www.dotcomsoftwaresolutions.co.uk[/color][/color]

      Comment

      • Patrice

        #4
        Re: IMG Elements acquiring height and width attributes

        Do you see this as attributes in pixels in the client side HTML markup ?

        If yes it's likely that you have some server side code that grabs the size
        and use it to set these attributes in the HTML code (especaiilyl as you say
        you have this in a single page but not in others).

        --
        Patrice

        "Dotcom" <Dotcom@discuss ions.microsoft. com> a écrit dans le message de
        news:10145F60-D50C-4187-AEA3-C4A676F1F326@mi crosoft.com...[color=blue]
        > There aren't any PHP or Perl pages or scripts in fact. All Pages are ASPX[/color]
        or[color=blue]
        > HTML and were all produced by Visual Studio. It is a bit weird to say the
        > least that these pages appear to be editing themselves. I have several
        > instances of this application installed on the same server and only one is
        > exhibiting this behaviour. Nobody has edited the files or even opened them[/color]
        in[color=blue]
        > an editor; nor have they uploaded edited copies of the pages.
        >
        > I thought it might have something to do with the image size: in this case[/color]
        it[color=blue]
        > is large enough to cause a fixed width table to "stretch" to accommodate[/color]
        it.[color=blue]
        >
        > I have never come across it, but I wondered if there Is any autoresizing
        > functionality in one of the server technologies that might be editing the
        > pages. Sounds highly undesirable - just wondered if anyone else had
        > experienced this.
        >
        > --
        > Paul Taylor
        > Dotcom Software Solutions
        > www.dotcomsoftwaresolutions.co.uk
        >
        >
        > "Curt_C [MVP]" wrote:
        >[color=green]
        > > I can't speak for whatever tools you are using to edit/create the Perl[/color][/color]
        or PHP[color=blue][color=green]
        > > pages but if you are using VS for the ASP.NET ones then NO.
        > > Now, if you are applying these images in the Designer (or FrontPage) and
        > > grab the edge of the image you will get the Height & Width since it[/color][/color]
        thinks[color=blue][color=green]
        > > you are adjusting them......
        > > Again though, any of these tags will be coming in from an editor though,[/color][/color]
        not[color=blue][color=green]
        > > from the server....
        > >
        > > --
        > > Curt Christianson
        > > site: http://www.darkfalz.com
        > > blog: http://blog.darkfalz.com
        > >
        > >
        > >
        > > "Dotcom" wrote:
        > >[color=darkred]
        > > > I have an ASP.NET application that is mysteriously acquiring height[/color][/color][/color]
        and width[color=blue][color=green][color=darkred]
        > > > attributes on a particular IMG element on multiple pages. This is not[/color][/color][/color]
        being[color=blue][color=green][color=darkred]
        > > > caused by someone editing or uploading new copies of the files.
        > > >
        > > > There are various scripting and "active" technologies enabled on the[/color][/color][/color]
        server:[color=blue][color=green][color=darkred]
        > > >
        > > > ASP.NET
        > > > ASP
        > > > Front Page Extensions
        > > > Perl
        > > > PHP
        > > >
        > > > Could any of these be editing ASPX files to add size attributes to IMG
        > > > elements? Are there any other circumstances in which this might[/color][/color][/color]
        happen?[color=blue][color=green][color=darkred]
        > > >
        > > > --
        > > > Paul Taylor
        > > > Dotcom Software Solutions
        > > > www.dotcomsoftwaresolutions.co.uk[/color][/color][/color]


        Comment

        • Dotcom

          #5
          Re: IMG Elements acquiring height and width attributes

          Curiously, the height/width attributes actually appear in the aspx page when
          viewed on the server. (Obviously they also appear in the client-side markup
          too). That's what's so baffling. I can upload the pages and they are OK for a
          period, then the image resizes itself. It happens in multiple pages in a
          single site, not just one one page.

          --
          Paul Taylor
          Dotcom Software Solutions



          "Patrice" wrote:
          [color=blue]
          > Do you see this as attributes in pixels in the client side HTML markup ?
          >
          > If yes it's likely that you have some server side code that grabs the size
          > and use it to set these attributes in the HTML code (especaiilyl as you say
          > you have this in a single page but not in others).
          >
          > --
          > Patrice
          >
          > "Dotcom" <Dotcom@discuss ions.microsoft. com> a écrit dans le message de
          > news:10145F60-D50C-4187-AEA3-C4A676F1F326@mi crosoft.com...[color=green]
          > > There aren't any PHP or Perl pages or scripts in fact. All Pages are ASPX[/color]
          > or[color=green]
          > > HTML and were all produced by Visual Studio. It is a bit weird to say the
          > > least that these pages appear to be editing themselves. I have several
          > > instances of this application installed on the same server and only one is
          > > exhibiting this behaviour. Nobody has edited the files or even opened them[/color]
          > in[color=green]
          > > an editor; nor have they uploaded edited copies of the pages.
          > >
          > > I thought it might have something to do with the image size: in this case[/color]
          > it[color=green]
          > > is large enough to cause a fixed width table to "stretch" to accommodate[/color]
          > it.[color=green]
          > >
          > > I have never come across it, but I wondered if there Is any autoresizing
          > > functionality in one of the server technologies that might be editing the
          > > pages. Sounds highly undesirable - just wondered if anyone else had
          > > experienced this.
          > >
          > > --
          > > Paul Taylor
          > > Dotcom Software Solutions
          > > www.dotcomsoftwaresolutions.co.uk
          > >
          > >
          > > "Curt_C [MVP]" wrote:
          > >[color=darkred]
          > > > I can't speak for whatever tools you are using to edit/create the Perl[/color][/color]
          > or PHP[color=green][color=darkred]
          > > > pages but if you are using VS for the ASP.NET ones then NO.
          > > > Now, if you are applying these images in the Designer (or FrontPage) and
          > > > grab the edge of the image you will get the Height & Width since it[/color][/color]
          > thinks[color=green][color=darkred]
          > > > you are adjusting them......
          > > > Again though, any of these tags will be coming in from an editor though,[/color][/color]
          > not[color=green][color=darkred]
          > > > from the server....
          > > >
          > > > --
          > > > Curt Christianson
          > > > site: http://www.darkfalz.com
          > > > blog: http://blog.darkfalz.com
          > > >
          > > >
          > > >
          > > > "Dotcom" wrote:
          > > >
          > > > > I have an ASP.NET application that is mysteriously acquiring height[/color][/color]
          > and width[color=green][color=darkred]
          > > > > attributes on a particular IMG element on multiple pages. This is not[/color][/color]
          > being[color=green][color=darkred]
          > > > > caused by someone editing or uploading new copies of the files.
          > > > >
          > > > > There are various scripting and "active" technologies enabled on the[/color][/color]
          > server:[color=green][color=darkred]
          > > > >
          > > > > ASP.NET
          > > > > ASP
          > > > > Front Page Extensions
          > > > > Perl
          > > > > PHP
          > > > >
          > > > > Could any of these be editing ASPX files to add size attributes to IMG
          > > > > elements? Are there any other circumstances in which this might[/color][/color]
          > happen?[color=green][color=darkred]
          > > > >
          > > > > --
          > > > > Paul Taylor
          > > > > Dotcom Software Solutions
          > > > > www.dotcomsoftwaresolutions.co.uk[/color][/color]
          >
          >
          >[/color]

          Comment

          Working...