Results 1 to 3 of 3

Thread: javascript control embeded PDF

  1. #1

    Thread Starter
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404

    javascript control embeded PDF

    Hello people it's been a long time.

    Here's my problem.

    I'm embedding a PDF file like so:
    Code:
     
    <OBJECT name="monkey" id="monkey" CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=450 HEIGHT=450>
      <PARAM NAME="SRC" VALUE="test.pdf">
     </OBJECT>
    PDF's have built in javascript so i have a function within the PDF's javascript called helloworld()

    What I want to do is call the PDF's helloworld() function from the Parent HTML page using javascript I would have thought that :
    if i put :
    Code:
    document.all.monkey.helloworld()
    That this would do the trick but it doesn't.

    Can't find a single web referenc on this so please someone help...

    Cheers people.

  2. #2

    Thread Starter
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    Any takers ??

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Beside being completly IE-specific...

    You could call it somewhat of a security hazard. It's probably a good thing this isn't allowed. Beside, I think the plugin just doesn't integrate well enough to allow this. Maybe there is some function called callEmbeddedJavascript or some such.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width