calculate image property in javascript

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Nov 2004
Posts: 19
Reputation: Deepa is an unknown quantity at this point 
Solved Threads: 0
Deepa Deepa is offline Offline
Newbie Poster

calculate image property in javascript

 
0
  #1
Nov 18th, 2004
how to calculate the heigth,width and size of a image using javascript
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 9
Reputation: js-x.com is an unknown quantity at this point 
Solved Threads: 0
js-x.com js-x.com is offline Offline
Newbie Poster

Re: calculate image property in javascript

 
0
  #2
Nov 24th, 2004
if:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <img src="abc.gif" name=myimg>

then:
* document.myimg.width
* document.myimg.src

same syntax for:
border, complete, height, vspace, lowsrc, name, src, vspace, width

methods:
handleEvent()

events:
onAbort, onError, onKeyDown, onKeyPress, onKeyUp, onLoad

1000s of Free Javascripts
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 19
Reputation: Deepa is an unknown quantity at this point 
Solved Threads: 0
Deepa Deepa is offline Offline
Newbie Poster

Re: calculate image property in javascript

 
0
  #3
Nov 25th, 2004
if the image src is in a text box,then how to calculate width,height,Size of then image
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 9
Reputation: js-x.com is an unknown quantity at this point 
Solved Threads: 0
js-x.com js-x.com is offline Offline
Newbie Poster

Re: calculate image property in javascript

 
0
  #4
Nov 27th, 2004
Originally Posted by Deepa
if the image src is in a text box,then how to calculate width,height,Size of then image
Post the code of your image.


www.js-x.com
www.js-x.com/forum/
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 19
Reputation: Deepa is an unknown quantity at this point 
Solved Threads: 0
Deepa Deepa is offline Offline
Newbie Poster

Re: calculate image property in javascript

 
0
  #5
Nov 29th, 2004
this the code
from this path how to calculate the image height and width using javascript
Photo path:<input class="Message" id="filePicture" type="file" name="file" runat="server">
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 9
Reputation: js-x.com is an unknown quantity at this point 
Solved Threads: 0
js-x.com js-x.com is offline Offline
Newbie Poster

Re: calculate image property in javascript

 
0
  #6
Nov 29th, 2004
you can not.

this code is going to accept an image file which has not been posted to the server yet, nor is it running inside of the DOM.

If you had the image in your page <img src="blah.gif" name="abc"> then it would be accessable inside of the DOM.

There are PHP and Perl [etc] programs that can accept the posted images and determine the sizes...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC