PC Review


Reply
Thread Tools Rate Thread

Call javascript with table cell dimensions

 
 
AAaron123
Guest
Posts: n/a
 
      31st Jul 2008
I have an image inside a table cell.

I'd like to scale the image to fill the cell.

I have a javascript routine that can change the image's height but can't
seem to fine a place to call it with the cell dimensions not equal to zero.

Got any ideas where?


Thanks


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      31st Jul 2008
Why don't you just specify the height in percentage?

If you care about different browsers, you may want to test it to see if all
of them handle image percentage height in the same way.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"AAaron123" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an image inside a table cell.
>
> I'd like to scale the image to fill the cell.
>
> I have a javascript routine that can change the image's height but can't
> seem to fine a place to call it with the cell dimensions not equal to
> zero.
>
> Got any ideas where?
>
>
> Thanks
>
>



 
Reply With Quote
 
AAaron123
Guest
Posts: n/a
 
      31st Jul 2008
It may be the width that should determine the size (or maybe the height).

But more importantly: As you may have guessed, I'm new at web development. I
wanted to try some javascript. I tried calling it in the onload event of the
image and other places but the cell sizes are always zero. (used debugger so
that I could check the values)

thanks



"Eliyahu Goldin" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Why don't you just specify the height in percentage?
>
> If you care about different browsers, you may want to test it to see if
> all of them handle image percentage height in the same way.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]
> http://msmvps.com/blogs/egoldin
> http://usableasp.net
>
>
> "AAaron123" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I have an image inside a table cell.
>>
>> I'd like to scale the image to fill the cell.
>>
>> I have a javascript routine that can change the image's height but can't
>> seem to fine a place to call it with the cell dimensions not equal to
>> zero.
>>
>> Got any ideas where?
>>
>>
>> Thanks
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call a javascript when i call an aspx page with a form html not running on server Fabio Mastria Microsoft ASP .NET 4 28th Jan 2008 09:05 AM
Get Table Cell value using Javascript =?Utf-8?B?Qw==?= Microsoft ASP .NET 4 30th Apr 2007 07:39 PM
Get Table Cell Value using Javascript =?Utf-8?B?Qw==?= Microsoft ASP .NET 1 23rd Apr 2007 02:10 PM
Javascript code inside a table cell.... Pete Smith Microsoft ASP .NET 1 15th Mar 2006 09:40 AM
How to alter text inside a table cell using Javascript Trevor L. Microsoft Frontpage 8 17th Feb 2005 03:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 PM.