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

Similar Messages

  • Windows 8.1 background task Javascript - Call angular controller function from task js

    Hi,
    The Ionic Side menu starter template for windows 8.1 is a very good option to run the ionic apps on Windows  8.1 phones.
    I am not sure whether this is related to Ionic/angular or VS2013 CTP 3.1 but if anyone can give some tips ,that would be great. I registered a background task as per the VS tutorial (Run JS task in background) and i tested it with windows toast notifications.However
    my requirement is to access webservice in background which I am not able to implement.
    The setup for background task is path to the js file but my requirement is to call a function defined within a controller.Is there any way i can access the controller function from an outside js file.I am new to Ionic,Angular and VS 2013.Any help would be great
    The structure of background task js file is as below
    (function() {
       --- I need to call my controller/service  function here---
        var notifications = Windows.UI.Notifications;
        var template = notifications.ToastTemplateType.toastImageAndText01;
        var toastXml = notifications.ToastNotificationManager.getTemplateContent(template);
        var toast = new notifications.ToastNotification(toastXml);
        var toastTextElements = toastXml.getElementsByTagName("text");
        toastTextElements[0].appendChild(toastXml.createTextNode("From Background!"));
        var toastNotifier = notifications.ToastNotificationManager.createToastNotifier();
        toastNotifier.show(toast);
        close();
     

    Are there any updates on this issue? I'm currently seeing this on a Lumia 822 with WP8.1, and the app has never been published to the store. I've only ever deployed the app from Visual Studio to my device. It worked when deploying the Debug build, then I
    tried a Release build, and it crashed immediately upon launch when trying to register the background task, but then I was able to go back to deploying/debugging the Debug build on the device for awhile. I made more changes, and now neither Debug nor Release
    builds work--both fail on the BackgroundTaskBuilder.Register() call with the error described in the original question:
    "The drive cannot locate a specific area or track on the disk. (Exception from HRESULT: 0x80070019)"
    I've tried changing the Task name during registration, rev-ing the version number of the application, adding the call to BackgroundExecutionManager.RemoveAccess() before BackgroundExecutionManager.RequestAccessAsync(), changing the name of the IBackgroundTask
    concrete implementation and changing the corresponding EntryPoint in the package.appxmanifest (as well as in the BackgroundTaskBuilder instance), and changing the package DisplayName to a new reserved name, all to no avail. The only thing I didn't try
    was associating with an entirely new app in the app store or paving my phone, as these are both fairly undesirable "workarounds."
    Even if this won't affect clients downloading the app from the store, this is a major roadblock during development, as we can essentially only use the emulator to test an app specifically designed to help solve problems involving moving around physically
    in the real world.
    Any more information would be greatly appreciated. If there's any information I can provide, please let me know.

  • How do I call an object written in Plugin from Javascript in Acrobat 9.0?

    Hi,
    Since Acrobat 9.0 has no longer support  GetNumAVDocs() called in Javascript, it does not return number counter of opened pdf documents.
    I am looking for a way to write method GetNumAVDocs() or similar one in Plug-in. My questions are that
    1. Can we write the method  GetNumAVDocs() or similar in Plug-in?
    2. Can we integrate that method GetNumAVDocs() which written in Plug-in in Javascript or Can Javascript call that method GetNumAVDocs()?
    Any of your comments or advices are very helpful to me.
    Thanks a lot for your support,
    Thai Nguyen

    Hi lrosenth,
    Thank you for help so far. In fact we our codes have been using COM/ActiveX and AcroExch.App library along. These codes are working find with Acrobat 8.0, but they do not work with Acrobat 9.0 since the function GetNumAVDocs() is no longer working. It always returns 0, instead of maximum number of documents.
    I would like to attach the code along with PDF documents for you to take a look and help us. This zip file is test1.zip.  This zip file include a html file test1.html. This file includes HTML page and a number of Javascript/Activex functions. 
    The function getActiveDoc() is the target of the issue. It contains an AcroExch.App function GetNumAVDocs() which does not return a number of the maximum number of documents the Acrobat application can open on Acrobat 9.0. It always returns 0 regardless how many how many documents are opened.
    At the bottom of the source code is html page that called the function getActiveDoc()  at the <input>  tag.  <input type="button" value="Show Active Docs" onclick="getActiveDoc();">
    For testing this code, you unzip test1.zip file. Open test1.html on a web browser. It will load couple pdf files that include on test1.zip.  Click on button "Show Active Docs" that calls function getActiveDoc().  This function trigger GetNumAVDocs(). It then call alert(numdoc)  to display a value of number of opened documents.
    Thank you,
    Thai Nguyen
    -------------------------------The Codes below-------------------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Test for Adobe 8&amp;9</title>
    </head>
    <script type="text/javascript">
    function nextPage(){
    var acrobatpdf= document.getElementById("acrobatpdf");
    acrobatpdf.GotoNextPage();
    function prevPage(){
    var acrobatpdf= document.getElementById("acrobatpdf");
    acrobatpdf.GotoPreviousPage();
    function showToolbar(){
    var acrobatpdf= document.getElementById("acrobatpdf");
      acrobatpdf.setShowToolbar(1);
    function hideToolbar(){
    var acrobatpdf= document.getElementById("acrobatpdf");
      acrobatpdf.setShowToolbar(0);
    function loadfile(){
    var file = document.getElementById("file").value;
    alert(file);
    var acrobatpdf= document.getElementById("acrobatpdf");
    var rtn = acrobatpdf.LoadFile(file);
    alert(rtn);
    function getActiveDoc(){
    var acrobatapp= document.getElementById("acrobatapp");
    var numdoc = acrobatapp.GetNumAVDocs();
    alert(numdoc);
    for(i=0;i < numdoc;i++){
      actDoc = acrobatapp.getIEPDFDoc();
      var actDoc = acrobatapp.GetAVDoc(i);
      alert("item:"+i);
      if(actDoc!=null){
              var title = actDoc.GetTitle();
        alert(title);
      }else{
       alert("Null object");
    function findText(){
    var file = "D:\\lab\\adobe\\test1\\fcom012360.pdf";
    var text = document.getElementById("findtext").value;
    var acrobatapp= new ActiveXObject("AcroExch.App");
    var avdoc= new ActiveXObject("AcroExch.AVDoc");
    var acrobatpdf= document.getElementById("acrobatpdf");
    var x = acrobatpdf.LoadFile(file);
    alert(x);
    </script>
    <body>
    <div>
    <input type="button" value="Next Page" onclick="nextPage();">
    <input type="button" value="Prev Page" onclick="prevPage();">
    <input type="text" id="file" width="80">
    <input type="button" value="Load File" onclick="loadfile();">
    <input type="button" value="Show toolbar" onclick="showToolbar();">
    <input type="button" value="Hide toolbar" onclick="hideToolbar();">
    </div>
    <div>
    <input type="button" value="Show Active Docs" onclick="getActiveDoc();">
    <input type="text" id="findtext" width="80">
    <input type="button" value="Find Text" onclick="findText();">
    </div>
    <div>
        <OBJECT id="acrobatapp"
                classid="clsid:85DE1C45-2C66-101B-B02E-04021C009402">
        </OBJECT>
        <OBJECT id="avdoc"
                classid="clsid:72498821-3203-101B-B02E-04021C009402">
        </OBJECT>
        <OBJECT classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"
                width="960" height="492" id="acrobatpdf"
                style="WIDTH: 784px; HEIGHT: 492px">
         <PARAM NAME="_cx" VALUE="26035">
            <PARAM NAME="_cy" VALUE="15663">
            <Param name="SRC" value="fcom012330.pdf">
        </OBJECT>
    </div>
    </body>
    </html>

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • Acrobat Javascript button not loading when PDF is opened in browser

    We have a requirement to have a custom print button in Acrobat Reader 9.1.3. We've created this via a JavaScript file stored in the users application data Adobe javascript folder. The button appears when Acrobat is started up normally and works as expected. However when opening a pdf file via Internet Explorer 7  acrobat is loaded inside the browser but the button does not appear automatically. Instead we need to right click on the tool bar and select Add on tools for the button to appear. Once loaded it works as expected.
    Now I was wondering is there a way to make the button to appear automatically when acrobat is launched from within IE as my users are getting a bit annoyed now. I've been searching all over the place and can't find a solution to this.
    Am hoping someone here might have an idea as to what the problem might be. I've attached the code I'm using below.
    Thanks in advance
    app.addToolButton({
    cName: "myToolButton",
    cExec: "printGreen()",
    cEnable: true,
    cTooltext: "Print to Green",
    cLabel: "Print to Green"
    global.objDoc = this;
    printGreen = app.trustedFunction (
    function()
    app.beginPriv();
    var objPrintParams = this.getPrintParams();
    objPrintParams.printerName = "\\\\burns\\prn-cash-copier";
    objPrintParams.interactive = objPrintParams.constants.interactionLevel.automatic;
    this.print(objPrintParams);
    app.endPriv();

    OK... I'm still puzzled. There seems to be something else that controls whether Acrobat JavaScript runs or not.
    If I'm loading a pdf stream though a http GET, JavaScript in Acrobat is run even when the setting in Edit->Preferences is disabled.
    <body>
        <iframe height=600 width=400 src = "http://<some servlet that returns a pdf stream>" />
    </body>
    If I'm loading the pdf from a file...
    <body>
        <iframe height=600 width=400 src = "<pdf file path>" />
    </body>
    ... the expected warning (that Adobe javascript is disabled) pops up
    The http response in the first case is something like...
    HTTP/1.1 200 OK
    Pragma: public
    Content-Type: application/pdf
    Content-Encoding: no-compress
    Content-Language: en-US
    Expires: 0
    Accept-Ranges: bytes
    Server: Microsoft-IIS/7.5
    X-UA-Compatible: IE=EmulateIE7
    Content-Disposition: inline;filename=<some UNC file path>
    Server: WebSphere Application Server/7.0
    X-Powered-By: ASP.NET
    Date: Tue, 17 Jun 2014 19:19:09 GMT
    Connection: close
    %PDF-1.6
    %����
    2 0 obj
    <</Metadata 36 0 R/Pages 3 0 R/OCProperties<</D<</RBGroups[]/ON[27 0 R]/Order 26 0 R>>/OCGs[27 0 R]>>/OpenAction 29 0 R/Type/Catalog/AA 31 0 R>>
    endobj
    Do you have any idea why this is happening?
    Thanks,
    Radu

  • Calling a JavaScript function from an JApplet...

    Can anyone help? Is it possible to call a JavaScript function from within a JApplet? If so, what is the syntax? I've seen reference to the Netscape package but I've been led to believe it doesn't always work within Internet Explorer 6 which is the target browser.
    If the above is not possible can anyone tell me if and how it is possible to load images from outside the init() method of a JApplet? This would allow me to work around the problem.
    Thanks in advance - Jim.

    Call javascript you use the JSObject
    Please note the MAYSCRIPT int the html file.
    html file:
         <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
                  height="0" width="0" >
            <param name="code" value="someApplet.class" />
            <!--[if !IE]> Mozilla/Netscape and its brethren -->
            <object classid="java:someApplet.class"
                    height="0" width="0"
                    mayscript=true>
            </object>
            <!-- <![endif]-->
          </object>
    <LABEL id="lblOutputText">This text is the HTML text </LABEL>java class:
    // new class for jsObject!!!! compile this: javac -classpath "C:\Program Files\Java\jre1.5.0\lib\plugin.jar" someApplet.java
    // since jaws.jar does not exsist anymore
    // in 1.4.0 to compile: javac -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    // for msjvm use the -source 1.3 -target 1.1 option so the command looks like this:
    // javac -source 1.3 -target 1.1 -classpath "C:\j2sdk1.4.0_03\jre\lib\jaws.jar" someApplet.java
    import netscape.javascript.*;
    public class someApplet extends java.applet.Applet {
        JSObject win;
        public void init() {
             try{
                 win = JSObject.getWindow(this);
    // you need win.eval("window.close();"); // to close the window. if the current window is not a popup
    // opened by a parent with window.open than the user will get a waring, your next question probably will
    // be "can I stop this warning" and the answer is simple: NO
                 JSObject textBoxLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                 textBoxLabel.setMember("innerHTML", "<center><h1>Some text</h1></center>");
            }catch(Exception e){
                 e.printStackTrace();
    }

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • Help needed in calling a javascript function from a jsp

    Hey guys,
    I need help.
    In my jsp I have a field called date. When i get date field from the database, it is a concatination of date and time field, so I wrote a small javascript function to strip just the date part from this date and time value.
    The javascript function is
    function formatDate(fieldName)
              var timer=fieldName;
              timer = timer.substring(5,7)+"/"+timer.substring(8,10)+"/"+timer.substring(0,4);
              return timer;
    Now I want to call this javascript function from the input tag in jsp where I am displaying the value of date. Check below
    This is one way I tried to do:
    <input size="13" name="startDate" maxLength="255" value=<script>formatDate("<%=startDate%>")</script> onChange="checkDate(this)">
    I even tried this:
    <input size="13" name="startDate" maxLength="255" value="'formatDate(<%=startDate%>)'" onChange="checkDate(this)">
    But it dosen't work
    Please help. I am struggling on this for days.
    Thanks,
    Ruby

    Hey all you developers out there , Pleaseeee help me with this one.

  • How do you call a JavaScript function from a Java applet

    I have an Applet that needs to run on the following platforms: Internet Explorer (Windows-NT, Windows -2000), Netscape (Windows-NT, Windows-2000, Sun(Solaris), RedHat(Linux), HP(11.0), IBM(AIX)).
    The Applet needs to call a JavaScript function that is included on the HTML page that contains the applet. In JRE-1.3.1 I used the AppletContext.showDocument(url,"_self" ) where the url is "javascript:MyScript('param1')". This works just fine. I tried using showDocument without the second parameter and all the other choices for the second parameter and none of them worked (nothing happened).
    I tried the same code with JRE version 1.4-beta. It seems that version 1.4-beta no longer supports a URL that starts with "javascript" in the AppletContext.showDocument(url,"_self" ) method. The error is:
    netscape.javascript.JSException: call does not support self.open
    at sun.plugin.javascript.navig.Window.call(Unknown Source)
    at sun.plugin.ActivatorAppletContext.showDocument(Unknown Source)
    I tried to catch the JSException but I cannot seem to.
    I then tried a completely different approach. I then grabbed the JSObject for the page and tried to call my javascript function (MyScript) directly:
    JSObject theObj = JSObject.getWindow(this);
    Object paramArray[] = new Object[1];
    paramArray[0] = Param1;
    theObj.call("MyScript", paramArray);
    This worked fine on Netscape[Windows-NT, Windows-2000]. HP throws a JSException on getWindow() and Solaris just hangs. I did not even try IE.
    What is the recommended approach here?

    you can try this, it worked for me:
    JSObject win = JSObject.getWindow(this);
    win.eval(function_call);
    I have other ways also, so if this doesn't work, let me know.

  • Howto call a Javabean function from javascript

    Hi,
    I want to fill some properties from an object which can be chosen from a selection box. When an object is chosen, I want to fill the propertie fields of the chosen object. How can I do this? Can I call from a 'onChange' a javabean function? or do I have to call a javascript function which calls a javabean function?
    Thanks in advance..
    Hugo Hendriks

    Actually, in a way you can call a bean method from a javascript function. But it's not really the bean method that is called for but the value it should have returned at the server side.
    Take a look at this example:
    <%@ page language="java"
    %>
    // list is a Vector containing a collection of "set & get-beans" retrieved through a db query
    <jsp:useBean id="list" class="java.util.Vector" scope="request" />
    <%
    Iterator itr = list.iterator();
    MyBean mb = new MyBean();
    %>
    <head>
    <script>
    var limit = <%=list.size()%>;
    function fillTextArea(theButton){
    for(a=0;a<limit;a++){
    <%
    while(itr.hasNext()){
    mb = (MyBean)itr.next();
    %>
    if(this.name=="bt1")
    document.theForm.ta.value += "<%=mb.getValue1()%>";
    else
    document.theForm.ta.value += "<%=mb.getValue2()%>";
    <%
    %>
    </script>
    </head>
    <body>
    <form name="theForm">
    <textarea name="ta" cols="50" rows="20"></textarea>
    <br>
    <br>
    <input type="button" name="bt1" value="click me" onclick="javascript:fillTextArea(this)">
    <input type="button" name="bt2" value="...or me" onclick="javascript:fillTextArea(this)">
    </form>
    </body>
    </html>
    The result of this will be a javascript function containing code for each element in the vector but that will be accessable in the client side.
    Of course this could render in large jsp pages being returned if the list vector is large, but sometimes this could be preferred against making a new servlet request each time.
    /Rickard

  • Call a Javascript function without JSObject

    Hi all,
    With j2 sdk 1.4.2_08 the JSObject doesn't seem to ship anymore. I need to find a solution to either:
    1. call a javascript function from within an applet without the JSObject
    2. or find a different way of executing the http: or mailto: protocols in a new browserwindow.
    Would getAppletContext ().showDocument (new URL (oURLString),"Titlet"); be able to do this trick for me? The thing is that with this applet people can click on an image of a map, and then a new browserwindow opens up which calls an asp which shows certain database information. The mailto: protocol is used to enable users to send an email from the applet with certain informations about the map as well.
    TIA,
    Stefan

    hmmmm. That might do the trick for me as well, but I had hoped I would not have to change the page in which the applet loads ...
    I think I'll give showDocument a couple of tries, and I also think I should download the docs for this version.
    BTW, it could very well be that the JSObject was never part of the JRE/plugin. It's just that this project is a very old solution revisited (I first developed it in 1998 or 1999, then worked again on it in 2001/2003, and now it's come back to haunt me again). It's just that when I do a javac it complains about not being able to find netscape.javascript.*. For now I've commented them out, which means two of my commands don't work anymore, and before I deliver I have to fix that.
    Thanks,
    Stefan

  • Is it possible to call a JavaScript function from a dialog?

    Hi there,
    At the moment I have created a dialog, that consists of three text fields that a user fills out, and then clicks next.
    What I am attempting to do, is pass the result of these three textboxes to a JavaScript function I have laying in a file in Web Resources. I've done some research, and I can't find anything.
    So my question is - is it possible to call a JavaScript function from a dialog?
    Thanks for your time.

    Hi,
         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.
    Hope this helps.
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/
     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • How to call a javascript function from XSL

    I'd a requirement to take an action each time a page loads
    I called the javascript function from addLoadEvent() available in javascript.
    But my reviewer commented that it should be called using XSL as we are using XSLT,
    What is preferred?
    To pass function name to the already available function or somehow call it from xsl ? if second is preferred option then,
    how to call a function through XSLT, if it is to be called aftr the page loads?

    Thank u..
    but i'd seen that link wen i searched in google..
    Is it possible without using any 3rd party JARs and all?
    and more importantly plz tell me what should be preferred way to call a javascript function?
    Do it using addLoadEvent() or Windows.Load etc
    OR
    Call it thru Xsl? (I donno how to do dis)
    Thanks in Advance..
    Edited by: ranjjose on Jun 3, 2008 8:21 AM

  • Having problem with calling external javascript functions in LV

    Hi,
    I found this VI: http://lavag.org/topic/10304-discuss-calling-external-javascript/, which I believe can be really helpful for my work. The problem is I can't get it to run based on the following problem:
     - Apparently the "ScriptControl" cannot be loaded
    I am using LabView 8.6, and this vi has been produced in a 8.0 version. Do you think this is the problem? If not, what could cause this problem running this VI?
    Thanks,
    Diogo

    Hi,
    To start I am using this examplo from the google code page.
    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>Google Maps JavaScript API Example</title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
                type="text/javascript"></script>
        <script type="text/javascript">
        function initialize() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(37.4419, -122.1419), 13);
            map.setUIToDefault();
        </script>
      </head>
      <body onload="initialize()" onunload="GUnload()">
        <div id="map_canvas" style="width: 500px; height: 300px"></div>
      </body>
    </html>  
    It loads a basic map, and is saved in a html file created for example in Notepad. Basically as I said the VI is very simple, see next image.
    But like I said, this strategy does not allow labview to interface dinamically with the javasscript code in the html file. Doing it this way, I would have to constantly update the code in the file with new coordinates and loading the map again. This causes the mentioned flickering problem that I also had with static maps.
    Diogo

Maybe you are looking for