How to use javascript code in a plugin ?

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default How to use javascript code in a plugin ?

    Hi,

    I'd like to use javascript in my plugin but after reading the JS API reference, i still don't understand where the code should be placed, and to call it from my plugin.

    I'm quite new in Acrobat SDK and developping applications in Acrobat using Javascript, so I hope it's not a dumb question...
    nicolas_PUSET@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. code hint javascript api
      I am extending dreamweaver to add code hinting and color coding to my proprietary scripting language. I am fine with the Javascript but I am not...
    2. Call JavaScript function from Acrobat Plugin
      Hi All, I want to call JavaScript function from Acrobat Plugin? Where is to write JavaScript function in Acrobat SDK? Please reply.. Thanks in...
    3. javascript to detect if flash plugin
      I want to have javascript file (.js) with a function to detect if flash plugin (for netscape ,mozilla etc) or flash activeX exists in that browser...
    4. execute javascript from php code
      How can I execute a javascript file(test.js) from within PHP. I'm running oscommerce and want to insert a menu created in javascript by Sothink...
    5. download flash plugin javascript
      does anyone on this list know how I could detect if flash was installed and if not download and refresh the page?
  3. #2

    Default Re: How to use javascript code in a plugin ?

    AFExecuteThisJavaScript() is the API that you want to use to execute arbitrary JavaScript from your plugin.

    Leonard
    Leonard_Rosenthol@adobeforums.com Guest

  4. #3

    Default Re: How to use javascript code in a plugin ?

    Thank you Leaonard,

    I had already found that 'AFExecuteThisScript' procedure but ity seems that it execute a script passed in param as a string. What about if I want to execute an external '.js' file ?
    nicolas_PUSET@adobeforums.com Guest

  5. #4

    Default Re: How to use javascript code in a plugin ?

    You could try reading the file and passing it as a string. Not sure if
    newlines work, but it's worth a try.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139