Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to scan a document through HMTL page at client side?

    Dears,

    How to scan a document through HMTL page at client side?

    does we need JavaScript, VBScript or anything else.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Not sure exactly what you mean by "scan", but this script will read the entire HTML source:-

    Code:
    <script type="text/javascript" >
    
    window.onload=function(){
    var str = document.getElementsByTagName('html')[0].innerHTML;
    alert (str);
    
    }
    </script>

    "This is all about historical events in the past". - Tony Blair.

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Philip M,

    but I mean to scan a paper using scanner.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    No offense but it reminds me of the question "How can I use X to do Y?"
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It is not how to do X using Y, I think u misunderstood me.

    There could be ActiveX to do the scanning, and then what we need is to run it using JavaScript.

    Or, there could be a way to build a client application that will do the scan, and we need JavaScript to run that (.EXE) application, and to send the scanned pages back to the server.

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,919
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    I do not have a clue what you mean by "scan using ActiveX", or "send the scanned pages back to the server". You say "but I mean to scan a paper using scanner." So use a scanner then.

    I have shown you how to capture the entire HTML source of a webpage.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •