•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 329,821 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,886 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9485 | Replies: 5
![]() |
•
•
Join Date: Nov 2004
Location: Dallas, TX [USA]
Posts: 9
Reputation:
Rep Power: 0
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
<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
Location: Dallas, TX [USA]
Posts: 9
Reputation:
Rep Power: 0
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
Post the code of your image.
www.js-x.com
www.js-x.com/forum/
•
•
Join Date: Nov 2004
Location: Dallas, TX [USA]
Posts: 9
Reputation:
Rep Power: 0
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...
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- How to validate an image field with javascript (JavaScript / DHTML / AJAX)
- background image property (VB.NET)
- Need help with Image Swaping in Javascript (JavaScript / DHTML / AJAX)
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?


Linear Mode