| | |
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
![]() |
•
•
Join Date: Nov 2004
Posts: 9
Reputation:
Solved Threads: 0
if:
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
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<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
•
•
Join Date: Nov 2004
Posts: 9
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Deepa
if the image src is in a text box,then how to calculate width,height,Size of then image
www.js-x.com
www.js-x.com/forum/
•
•
Join Date: Nov 2004
Posts: 9
Reputation:
Solved Threads: 0
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...
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...
![]() |
Similar Threads
- Form with Image Link/Javascript Issue (ColdFusion)
- PictureBox Image property (C#)
- How to validate an image field with javascript (JavaScript / DHTML / AJAX)
- background image property (VB.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Posting form data to an Oracle database
- Next Thread: Could I Link My Statcounter Javascript to another page?
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scriptlets scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





