Can I call extenal API in Acrobat javascript?

I have some methods in a dll. Can I call it somehow in in Acrobat javascript?

Thank you Leo.

Similar Messages

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • Can I call Windows API in java?

    How can I?

    you can use JNI. I do not know much about it, but there are also some tools that make it simplier to you. One of the most famous is one call JIntegra.You pass to it a dll and it will generate for you the Java classes needed to access the API.

  • How can I call a servlet from a javascript

    Hello
    I have a JSP page that has 2 aim : save and list. I want to use javascript like this to call my save and list methods :
    <SCRIPT language="JavaScript">
    function savedata(){
    document.kaydetsorgula.action = "hatBilgisiKaydetKontroller.java";
    document.kaydetsorgula.submit();     
    function listdata(){
    document.kaydetsorgula.action = "hatbilGoruntulemeKontroller.java";
    document.kaydetsorgula.submit();     
    </SCRIPT>
    I use this js in my JSP, hatBilgisiKaydetKontroller.java and hatbilGoruntulemeKontroller.java are my servlets names.In servlets I call the methods of sessions.
    Also in my JSP I use
    <tr>
    <td colspan=9 align=center>
    <input type="submit" value="Kaydet" >
    <input type="submit" value="Sorgu">
    </td>
    </tr>
    code to call the js.
    But my code does not work?
    Does anyone have any idea?
    Thanks
    ANIL

    Thanks.....
    I could manage to work it by using <input type="submit" value="Sorgu" onClick="sorgula()"> ...
    And know I have another problem...
    I have a listing page.This pages shows data from a database table and in this table there are 100 rows but I want to show data 10 by 10.I mean when I click on next link I want to see the other 10...
    My JSP code is like this :
    <%@ page contentType="text/html;charset=windows-1254"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.lang.*"%>
    <% Context context = new InitialContext();
    DataSource ds = (DataSource) context.lookup("jdbc/DUKSDS");
    Connection conn = ds.getConnection();
    Statement stmt = conn.createStatement();
    stmt.executeQuery("select rownum,hatKodu,hatAdi from HATBIL where rownum < 11 order by hatkodu");
    String vhatKodu = request.getParameter("hatKodu");
    ResultSet rs = stmt.getResultSet();
    ResultSetMetaData rsmd = rs.getMetaData();
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
    </head>
    <SCRIPT language="JavaScript">
    function sonrakikayitlar(){
    document.listelemeekrani.action = "listeleme.jsp";
    document.listelemeekrani.submit();     
    </SCRIPT>
    <body>
    <img src="file:/C:/DUKS/ERD Logo.gif" width="100" height="100">
    <H2><center>DEMIR URETIM KONTROL SISTEMI</center> </H2>
    <br>
    <H3><center>HAT BILGISI LISTELEME EKRANI</center> </H3>
    <center><input type="hidden" name="hiddenField">
    <form name="listelemeekrani" method="get">
    <table class="clsScroller" cellspacing="2" cellpadding="3">
    <tr>
    <td>Previous</td>
    <td align="center">
    <select>
    <option selected value="1">1-2 of 2</option>
    </select>
    </td>
    <td>Next</td>
    </tr>
    </table>
    <table border="1">
    <tr>
    <td align="center" colspan="5" >HAT KODU</td>
    <td align="center" colspan="5">HAT ADI</td>
    </tr>
    <%
    while (rs.next()) {
    %>
    <tr>
    <td bgcolor="pink" colspan="5"><%=rs.getString("hatKodu")%></td>
    <td bgcolor="pink" colspan="5"><%=rs.getString("hatAdi")%></td>
    <!-- <td bgcolor="pink" colspan="5"><%=vhatKodu%></td>-->
    </tr>
    <%
    rs.close();%>
    </table>
    <% System.out.println(rsmd.getColumnCount()); %></p>
    BILGI GIRIS EKRANI
    </table>
    </form>
    </body>
    </html>
    How?
    Thanks
    ANIL

  • Browser Javascript call Acrobat Javascript function

    What I want to do is call a function in Acrobat Javascript by clicking a button in my browser.
    So if you click the browser button it executes a javascript function that calls an acrobat javascript function.
    I found this example:
    Browser javascript
    function printDocument() {
         var pdfObject = document.getElementById(\"PDFObj\");
         pdfObject.postMessage([\"alert\", \"Hello from HTML\"]);
    Acrobat javascript
    In the secure folder (C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\kassa.js) my folder level script
    so this is executed for each pdf document.
    this.hostContainer.messageHandler =
         onMessage: function(aMessage)
              for(var i = 0; i < aMessage.length; i++)
              console.println("Recvd Msg[ " + i + "]: " + aMessage[i]);
          onError: function(error, aMessage){ },
          onDisclose: HostContainerDisclosurePolicy.SameOriginPolicy
    This should do the job...
    But if i look at the javascript debugger window(acrobat)
    it shows:
    this.hostContainer has no properties
    9:Folder-Level:App:kassa.js
    this.hostContainer has no properties
    9:Folder-Level:App:kassa.js
    Any solution for my problem?

    hi levi,
    Thank u very much for responding,
    to be precise i have to show the user a small window saying that the excel sheet is being prepared and once the sheet is prepared this window has to be closed. So to open and close this child window i need to use the javascript functions.
    currently my jsp looks this way
    <script>
         function open()
         funciton close()
    </script>
    <body>
    <script>
         open();
    </script>
    include x.jsp //sets the content type to excel
    include y.jsp //writes to the excel sheet
    <script>
         close();
    </script>
    <body>
    My x.jsp looks this way
    response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "filename=" + "abc.xls");
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader("Expires",0);
    response.addHeader("Cache-control", "no-store");
    response.addHeader("Cache-control", "max-age=0");
    The issue is the javascripts are not getting called at all. Is there any other way to solve this. Since i am the beginner in this field i dont have much idea about this. A code snippet will be of great help.
    Thanx

  • Call objective c Method using javascript

    how can i call objective c mehod using javascript..........

    If the JavaScript is running in a browser or UIWebView on iOS, you cannot. Allowing direct access to the native API would be a huge security vulnerability.
    As an alternative, there are development frameworks such as PhoneGap that allow developers to access some native iOS features (such as Contacts, Camera) from JavaScript by using a runtime that includes a foreign function interface. The app must be deployed to the device, bundled with the runtime.

  • Calling HRMS APIs from a DotNet plateform

    Hello,
    I am new on this forum and I have difficulty in beginning, i don't know if it's the right category to post my question.
    I'm working in a project looking for a solution of revision of the self-service's interfaces of oracle e-business suite, indeed I need an example or a document which can help me for using the HRMS APIs of oracle e-business suite via a dotNet plateform or SharePoint application.
    I have to work on a middelware allowing retreiving and persisting data from oracle e-business suite database using oracle HRMS APIs like hr_appraisals_api. So haw can i call these APIs from .NET application how can i use a .NET code to call these api's ?
    Can you help me please ? i'm waiting for your answers if possible and this is my e-mail address if necessary "[email protected]" .
    I would be so grateful if someone can help me. Thank you in advance.
    Cordially.

    HRMS PLSQL API can be called from Java and .Dot net support to execute Java API . This way it could be done.
    I have not idea how call PLSQL API from direct .Dot net code.
    Thanks

  • How to call web services from Acrobat API using VC++

    Hi,
    I have api plugin which installs custom menu and tool bar to adobe acrobat. In this plugin once user installs this plugin, he need to activate this tool by entering key value. this limites to limited number of users (which is decided by client while buying).
    I am using javascript and VC++ with Visual studio 2008.
    So can some one suggest me how can i achive this.
    Thanks
    Shiva

    First, this is the scripting forum.  You want the SDK forum.
    Second, this isn't an Acrobat issue.  It's a C++ programming issue. If you want to connect to a web service you'll need to use the windows or mac socket interface.  If you're doing this using MFC then there is a library for internet interactions. If not, I'm sure there is still a library for it, I know there is a system API, you'll just have to look around.  But the main point is that it's completely outside the Acrobat SDK.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • HTML/javascript interaction with swf content - can I call swf functions from JS?

    Hi,
    I've created an AIR application where the
    intialWindow.content is a HTML page / JavaScript application. On
    this HTML page I want to include some SWF content as a plugin (a
    Flex 3 app), so I have an object tag.
    From my SWF I can call out to JavaScript using
    flash.external.ExternalInterface fine. I can also call methods
    within the AIR and Flex APIs via the window or runtime objects.
    However, if I try to call methods within my SWF from
    JavaScript, nothing happens. Further, I can pass a function
    reference from my SWF to JavaScript (via ExternalInterface), and
    while I can see a valid function reference in JavaScript, calling
    it doesn't call the function within the SWF.
    Is this not supported? Or is this something else, like an
    applicationDomain issue? My SWF object is loaded via the app:/ uri,
    so I didn't think it would be that.

    I hadn't tried that, and it does work. Thank you. Everyone
    should note though that the documentation here
    Flex
    3 - External Interface
    and
    Flash
    9 - ExternalInterface.html
    says:
    "Note: Adobe AIR currently does not support the
    ExternalInterface class."
    which by my reading means that none of this should work,
    although it clearly does.
    The page
    Example:
    Using the external API with a web page container was most
    helpful in finding the solution, since it mentions referencing the
    object id of the plugin (e.g.
    window['my-object-id'].functionToCall()) when referencing the
    callback function.
    This
    page has a more concise example.

  • How to call SOAP API from JavaScript

    Hi,
    I'm trying to call the SOAP API to get statistics about emails. Are there any examples on how to call the API from JavaScript?
    Here is a link to my original question about using the REST API. REST API URL for email statistics
    Thanks,
    Tim

    Tim,
    In order to consume a SOAP API I recommend you use something other than JavaScript.
    Any platform can offer you a good SOAP client should be OK. (.Net, Java, php, Ruby, python).
    I didn't see anyone successfully used javascript and consume the Eloqua SOAP API.
    I know you can create a SOAP client in Java script but it will be too much work to handle the Eloqua response in some cases.
    Regards,
    Daniel

  • How can I call a servlet method from a javascript function

    I want to call l a servlet method from a javascript function.
    Does any one have an example of code.
    Thinks in advance

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • Can we call a javascript function from backing bean class?

    I have a requirement. In a multiselect table, when users selects some rows and clicks a button. Depending upon some condition, an alert box should appear with 2 buttons 'Yes' and 'No'. On clicking yes, certain field values in the selected rows of table should change. On clicking no, the alert box should close. As far as i know alert box can be done only in JS.
    Please help me, if a javascript function can be called in backing bean method or suggest some way where alert boxes can appear through ADF.

    I need to go back to the backing bean as i need to iterate through each selected row of the table in a method( method written for command button) and then if atleast one of the selected rows has job field='Manager', then an alert box needs to be displayed. If none of the rows have job field as 'manager', alert box should not be displayed.
    If I write the function for onclick, i cannot iterate through the selected rows of the table in JS function.
    Please suggest a way to do this.

  • (how) can I access Java APIs from web-page-hosted JavaScript?

    Can I access Java APIs from a web-page via JavaScript if I have a JRE installed on the client machine? And if so, how?
    Thanks in advance for your time and consideration.

    John L. wrote:
    Can I access Java APIs from a web-page via JavaScript if I have a JRE installed on the client machine? And if so, how?As far as I can remember that was actually possible in the very first versions of Netscape because Netscape really wanted to pretend Javascript and Java were meant to be used together. But they soon removed that functionality. Can you guess why?
    Because people were using the File/IO classes to easily steal or remove files on the harddrive, among other such niceties. You do NOT want to have such control from a web application. People will abuse it.

  • Can we call an Standard API from the BPM process

    Hi,
    Can we call a Public API from within a BPM Process. Can you please suggest the procedure for achieving the same.
    Also wanted to know the procedure to insert into Standard Interface tables and called Standard Interface program to Create objects like Employees, Employee assignments, etc.
    Please send any documents / writeup to achieve the above.
    Thanks & Regards,
    Murali

    You will have to catalog the API (refer to the Studio help files for the details). Once you catalog the api you can use it in a method. The method can then be used in an activity in the process.

  • How can I call tuexdo client api in VB

    I want to build a ATL com (c++) to call tuexdo api,then I can create object in
    VB, is it good way?

    Yes, it is a good way. I've done this before, you can create an Active X tuxedo
    component and then use that from VB. The only hard part is building an object
    model encapsulation of the API . I've attached a partial C++ encapsulation that
    you can use (build using nmake /f Makefile.nt with TUXDIR set). All you have
    to do is expose these methods from your Active X component.
    "XiaoAn" <[email protected]> wrote:
    >
    I want to build a ATL com (c++) to call tuexdo api,then I can create
    object in
    VB, is it good way?[tuxobj.zip]

Maybe you are looking for

  • Free upgrade from vista to windows 7?

    Does anyone know if buying a lenovo x301 now with vista will get free upgrade to windows 7 later this year? Thx.

  • Import files from memory stick on Sony CX-100

    Hi, I have several CX-100s and two iMacs - having the same problem with both. I have borrowed a memory stick from one CX-100 and put it in another (both PAL). I can view the footage on the memory stick through the camera, but when I connect the camer

  • Import to another server

    I hav release my transport request,but dnt know how to import it on another server..........plz guide me in this..

  • Getting the current row in a datatable

    Hi, I am using datatable. How do I get the current row in the datatable and use it for my processing in the JSP page or I want to just output that value with out using any jsf tags. Examples <h:dataTable styleClass="dataTable" id="table1" border="0" 

  • How to write the Business Process

    Can anybody please give me the link on How to write the Business Process for <b>IC_C03</b>... we have done the blue print and going to write the documentation for this info provider. So please provide the related links..........