1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Load a PDF file into a Text Box.

Discussion in 'JavaScript' started by kazanova_ks, Feb 10, 2020.

  1. #1
    I want to load a PDF file into a Text Box, I found working demo here [view-source:http://checkpointcams.com/test/test.html] but when I download HTML + JS files, and I put in my server when I remove <base href=", and <select> elements, it doesn't work in my project - domain. Can someone modify demo HTML and js files to make this HTML run on all domains /offline mode, without that base href and select elements?
    I think this problem is related to a file called "script19.min.js" which needs to be modified.

    All that I need is, this simple working Html file + [ js files], Text Box and Upload / Load button.
    I know that only real programmers can solve this problem,
    Thank you
     
    Last edited: Feb 10, 2020
    kazanova_ks, Feb 10, 2020 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    How about you set up a js fiddle for us to work with
     
    sarahk, Feb 10, 2020 IP
  3. kazanova_ks

    kazanova_ks Active Member

    Messages:
    99
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #3
    Thanks for your reply ,
    it looks like in jsfiddle, it doesn't work:( but in demo its work great :(
    here you have , https://jsfiddle.net/m2wpqakt/
     
    kazanova_ks, Feb 10, 2020 IP
  4. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #4
    Well I found a few problems.

    In the html part you include files via http and jsfiddle is served via http. So I changed them to https but then then the problem is that the site where they are being loaded from doesn't have a valid ssl certificate so the js files can't be loaded.

    So I wanted to look at the files in the browser and they don't exist so doesn't matter if it is http or https the files don't exist.

    Unless I have done something completely wrong.
     
    stephan2307, Feb 17, 2020 IP