By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,559 Members | 1,150 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,559 IT Pros & Developers. It's quick & easy.

IMG Elements acquiring height and width attributes "automatically"

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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:
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

Nov 19 '05 #2

P: n/a
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
www.dotcomsoftwaresolutions.co.uk
"Curt_C [MVP]" wrote:
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:
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

Nov 19 '05 #3

P: n/a
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" <Do****@discussions.microsoft.com> a écrit dans le message de
news:10**********************************@microsof t.com...
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
www.dotcomsoftwaresolutions.co.uk
"Curt_C [MVP]" wrote:
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:
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

Nov 19 '05 #4

P: n/a
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
www.dotcomsoftwaresolutions.co.uk
"Patrice" wrote:
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" <Do****@discussions.microsoft.com> a écrit dans le message de
news:10**********************************@microsof t.com...
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
www.dotcomsoftwaresolutions.co.uk
"Curt_C [MVP]" wrote:
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:

> 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


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.