Call the MTC to display Ajax

I use a demonstration of a flowchart of CF (downloaded from http://www.cfdan.com/index.cfm?tag=CFOrgChart).

There has been little customization (increase in the number of fields in the database from 2 to 7, for example) and overall, it works very well.

I built a ColdFusion front end that allows the user to see the table, add, edit and delete various nodes.  Dan example includes the ability to perform the same functions of the flowchart itself hierarchical by clicking two icons that appear on the mouse and change it by double-clicking the node area.  Again, it works.

Now the problem:

When I perform one of the functions of adding/changing/deleting the chart hierarchy display screen, it accesses the form CFM for the data entry page, but little he incorporates in the organization chart.  See my screen shot by an example:

Org Chart Screen Print.jpg

The stuff in the Center (blue banners) should be a new page...

sockerdad wrote:

When I perform one of the functions of adding/changing/deleting the chart hierarchy display screen, it accesses the form CFM for the data entry page, but little he incorporates in the organization chart.

...

The stuff in the Center (blue banners) should be a new page...

It is the usual intention of using AJAX.  The purpose of the creation of the xmlHttpRequest() had to be able to do in JavaScript HTTP requests and manipulate behind the scenes, so that all of the web pages does not need to be refreshed.

If you do NOT, then I would probably not bother with the AJAX features.

Tags: ColdFusion

Similar Questions

  • Several months ago the button, if that's what it's called, the task bar that displays hidden icons has stopped working.

    Original title: the task bar icons

    Several months ago the button, if that's what it's called, the task bar that displays hidden icons has stopped working. Can I get a virtual device driver format in the registry is incorrect when you use a disk with the drivers on this subject. I found information on how to correct this problem and now the botton of task bar work again although it works until the computer is used for a while. How is the hidden icon button suppose to work or it should be visible all the time? Also the virtual device driver registry entry has something to do with it? I think that the problem of the DMV has installed a Norton program antivirus software that was on a disc that came with the computer.

    Hello

    1 have had any changes made to your computer before this problem?

    I suggest you try the methods mentioned below and check if it helps:

     

    Method 1:

    You can also scan your computer the Microsoft Security Scanner, which would help us to get rid of viruses, spyware and other malicious software.

    The Microsoft Security Scanner is a downloadable security tool for free which allows analysis at the application and helps remove viruses, spyware and other malware. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Hope this information is useful.

     

  • How do I get the name of the caller (no contacts) that displays on the incoming call screen?

    Hi all
    1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
    2 opportunity BB JDE v4.7

    3. signed request

    4. the request is:

    I need to get the name of the appellant on the screen programmatically incall.
    I have observed that there are some providers will provide some default/a name on-screen incall.

    Note: I am not match the number of incall in contacts and look for the name.

    How do I get the name of the caller (no contacts) that displays on the incoming call screen?

    can any body help on this.

    Thanks in advance

    Ratna-

    There is no API that provides this information.  You can get the number of incoming callers, but not the name of caller ID.

  • 11 GR 2 forms: display windows calculator on before calling the form?

    I called the windows calculator in my forms through

    AppID: = DDE. App_Begin ('C:\Windows\system32\calc.exe', DDE. APP_MODE_MAXIMIZED);

    DDE. App_Focus (appid);

    which trigger key, but when I press the button the calculator is displayed but not active, I want the calculator should display on the front of my form (call the adapted form).

    I use forms GR 11, 2.

    As mentioned Amatu, what you do will not work as expected when you deploy your application in a production facility.  I suspect that you run the form directly from the form Builder on your local computer.

    To display a calculator to an end user, you'll either need add WebUtil to your application and use the Windows calculator or calculator Java Bean.  The Java Bean option is probably a better because with it, you can actually have the value in the calculator sent to the form.  The disadvantage of the use of a Java Bean, it's that you have to design it.  There are some great examples here:

    http://Forms.PJC.Bean.over-blog.com/article-35505095.html

    With WebUtil, the call might look like this:

    WEBUTIL_HOST. HOST ('calc');

    There is also a non-blocking option which allows the user to have both the open Calculator and still have access to the form.  Using the above, the form will be locked until the calculator is closed.  Refer to the manufacturer for more information about WebUtil, duties and requirements.

  • How to call the stored procedure from javascript? (Google suggest, AJAX)

    Hi I want to set up a text field so that it behaves like [Google Suggest | http://www.google.com/webhp?complete=1 & hl = en].

    I read this post .

    Now, I installed everything according to this document. But it simply doesn't. And I don't know why.

    I think that problems can fall into the following three categories:
    1. the text field and the page invoking the appropriate javascript?
    2 - is the JavaScript call the stored procedure?
    3. the stored procedure correctly returns the result formatted?

    I'm assertive for 1 and 3, but I'm not sure 2. Because I don't know how if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL * more?

    Also, I would like to know how to debug AJAX in the APEX. It involves a lot of things.

    Finally, I used APEX 3.2 and Oracle XE. I can't find file dads.conf or marvel.conf. Is ' / apex / "the virtual directory for APEX?

    Thank you very much!

    Buffalo,

    I managed to make it work on XE with APEX 3.2!
    It took more time than expected because my XE installation was still on an earlier version of the Apex and I had put it first...

    But that's what I did:
    -in the ac.js file, I changed the path ' / apex / "and I added the ac.js file to my candidacy as a static file. So as you did.
    -J' copied my request to the XE and copied my procedure on the schema that is related to my request
    -J' gave to run anonymous rights my procedure

    Now at first, it did not work...
    Then I suddenly remembered something: If you want to run a procedure through the pl/sql gateway in the XE, XE please how it is.
    Do you this by changing the APEX_030200.wwv_flow_epg_include_mod_local function!

    This is the code for the function changed for my example:

    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        --return false; -- remove this statement when you modify this function
        --
        -- Administrator note: the procedure_name input parameter may be in the format:
        --
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        --
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        --
        if upper(procedure_name) in (
              'MATTHIASH.INCSEARCH') then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /
    

    After that, the AJAX function worked as expected...

    HTH
    Matthias Hoys

    Published by: mhoys on August 13, 2009 15:24

  • BlackBerry Smartphones BB9900 not receive calls and phone locked on the previous disconneted display screen

    When I press the phone icon in the previous screen "disconnected" appears. I can't access the keypad to make a call. I am also unable to receive calls (the telephone does not ring) even if I receive a text message indicating that I missed a call

    Always start with a battery pull when things do not work correctly with your phone.  Remove the battery while your phone is on, then replace it.

    Let us know if that does the trick.

  • [ADF, JDev12.1.3] Why dynamic region is not spend if I re - call the currently displayed workflow?

    Hallo,

    I have a page with a dynamic region that is managed by a range backingBean bean.

    Functions "startBtf...". "are called when a menu item is clicked.

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    Thank you

    Federico

    public class MainDynamicRegion {
      private HashMap parameters = new HashMap();
    
      public MainDynamicRegion() {
      }
    
      public TaskFlowId getDynamicTaskFlowId() {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        String currentTaskflowId = (String) adfFacesContext.getPageFlowScope().get("CurrentTaskflowId");
        if (currentTaskflowId == null || currentTaskflowId.trim().equals("") == true) {
          currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
          }
        return TaskFlowId.parse(currentTaskflowId);
      }
    
      private void setCurrentTaskflowId(String currentTaskflowId) {
        AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
        adfFacesContext.getPageFlowScope().put("CurrentTaskflowId", currentTaskflowId);
      }
    
      public void startBtf1(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-1.xml#btf-1");
        this.parameters.clear();
      }
    
      public void startBtf2(ActionEvent actionEvent) { 
        this.setCurrentTaskflowId("/WEB-INF/btf-2.xml#btf-2");
        this.parameters.clear();
      }
    
      public void startBtf3_Search(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "S");
      }
    
      public void startBtf3_Create(ActionEvent actionEvent) {
        this.setCurrentTaskflowId("/WEB-INF/btf-3.xml#btf-3");
        this.parameters.clear();
        this.parameters.put("mode", "C");
      }
    
      public void setParameters(HashMap parameters) {
        this.parameters = parameters;
      }
    
      public HashMap getParameters() {
        return parameters;
      }
    }
    

    The workflow as BTF3 is called by two different functions and each function passes a different value (used by a component of router) to the workflow through the hash table.

    The problem is that startBtf3_Search is called after the startBtf3_Create (and vice versa) the dynamic region is not updated.

    How can I solve this problem?

    You call the taskflow even without leaving the previous.

    To update the workflow, you have several options:

    -Give taskflow refresh 'ifNeeded' parameter and change the value of the input parameter (unfortunately, it is not applicable to your usecase because you use the parameter mapping and not point settings so setting change cannot be detected)

    -use the property RefreshCondition

    For more details, see: 23 by using task flows in regions (12 c (12.1.3))

    BTW,

    currentTaskflowId = "/WEB-INF/empty-btf.xml#empty-btf";
    

    Instead, you can change the return type for getDynamicTaskFlowId() to a string and use an empty string ("" ") instead of emptying the BTF (and in this case you don't need even of TaskFlowId.parse (part)).

    Dario

  • What is the difference between all the specifications, and display things, I'm so confused!

    Hello, I was thinking about buying an iMac, and I didn't know that one.  As far as I know so far is that I want the 21.5 inch one, but he asked me all these upgrade options.  I need help!  I don't understand these THINGS.  I don't know if I should get the retina display 4 k, increase my RAM, change my processor or even get the apple mouse or trackpad.  I need help so much.  Can someone explain these things for me?  At the moment I have a 15 HP with windows 10 and I want to switch to apple.  Here is my card for my PC at the moment if it helps.

    Processor: ADM A8-6410 APU with AMD Radeon R5 graphics card

    Installed memory (RAM live): 8.00 GB 96,94 GB usable)

    System type: 64-bit operating system, x 64 processor

    Pen and touch: Touch Support with 10 Points of contact

    I only had this PC since December 25, 2014 if it also helps.

    Help, please!  I don't know if I have to improve anything or just keep it the same.  Also, I don't know if there is a radical change between the normal 21.5 inches and the retina of 21.5 4 k one.

    Thank you very much!  Each response is appreciated!  Please answer!

    You can either call the Apple Store online or if you have an Apple Store within an hour of so of where you live you should consider visiting and then asking direction. Without knowing what you will be the computer so that it is impossible for anyone to recommend one that suits your needs. I strongly suggest you visit a store and ask, they are not encouraged to sell. What they are there for is to make your experience a good and for you leave happy that you got the answers to your questions.

    Comparing the features of a PC with a Mac, it's a waste of time, where your goal should be on what you need the computer for and then find one who meets and even exceeds what your needs are.

  • Restoration of the factory without display PC portable HP G72-250US

    I have a broken screen on my laptop that I can't afford to replace, and I need to do a hard factory restore.  I operate my computer through an external display, but without being able to see splash screens, I can't enter the appropriate commands to perform a factory restore.  I can do a restore of the system very well, but I have no point of restoration that are old enough to be viable.  How can I restore to factory with an external display?

    If you can load the deskttop, then you should make the image recovery factory inside the Windows operating system. Until you replace the LCD screen, your options are very limited. You can try to hit the F4 key.

    In research all programs and files box type recovery, and then press the Enter key. Who should call the Recovery Manager.

  • I managed to remove the icon to display all open windows one behind the other.

    I managed to remove the icon to display all open windows one behind the other.  Where can I find it now?

    Also, my laptop keeps getting an error when I try to restore to an earlier date and told me that it is impossible to complete.

    Hello

    Which, in my view, that you have a problem with, it's called windows Flip 3D!

    Try this first and see how you go...

    1. To turn on the Quick Launch bar, follow these steps:
    2. Right-click anywhere on an empty spot on the taskbar.
    3. Choose toolbars from the menu that appears.
    4. Select Quick Launch in the following menu so that it is checked.

    You should then be able to click the icon to switch between Windows now and use the 3d Flip...

    Or

    . Right click on the Quick Launch toolbar, but not on an icon
    2. Select the folder from the context menu. It will take you to the Quick Launch folder that should live:

    C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

    3. right click in an empty area of this folder
    4. Select new, then shortcut from the context menu
    5. for the location text box, enter the following text:

    C:\Windows\System32\rundll32.exe dwmapi #105

    6. click on the next button
    7. appoint. (Flip3D, for example)
    8. click on finish

    The shortcut will now be in your Quick Launch toolbar.

    Concerning

    GT4U

  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How do to call the BlackBerry menu form share an Adobe Air application?

    Hello

    I'm looking for a tutorial or demo code that describes how to call the BlackBerry menu sharing an Adobe Air based application.

    I found a tutorial of waterfalls for it - there's one for Adobe Air too?
    - http://bbcascadescode.tumblr.com/post/38998702671/invoke-share-for-bb10

    This is a screenshot of the Action menu:

    Advice welcome!

    Here you go:

    package com.lib.playbook.invocation
    {
        import com.lib.playbook.controls.List;
        import com.lib.playbook.pages.TitlePage;
        import com.lib.playbook.renderers.IconListRenderer;
    
        import flash.events.Event;
        import flash.events.IEventDispatcher;
    
        import qnx.events.InvokeEvent;
        import qnx.events.InvokeQueryTargetEvent;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.events.ActionEvent;
        import qnx.fuse.ui.events.ListEvent;
        import qnx.invoke.ActionQuery;
        import qnx.invoke.InvokeManager;
        import qnx.invoke.InvokeRequest;
        import qnx.invoke.InvokeTarget;
    
        public class InvokeSearchPage extends TitlePage
        {
            private var request : InvokeRequest = null;
            private var targets : List = new List();
    
            /////////////////////////////////////////////////////////////////////////////////////////
            public function InvokeSearchPage()
            {
                super();
                this.title = 'Search With';
                this.titlebar.dismissAction = new Action( 'Cancel', null, {id:'cancel'} );
                this.titlebar.addEventListener(ActionEvent.ACTION_SELECTED, ActionSelected );
    
                this.targets.cellRenderer = com.lib.playbook.renderers.IconListRenderer;
                this.targets.addEventListener(ListEvent.ITEM_CLICKED, TargetSelected );
                this.targets.rowHeight = 140;
                this.addChild( this.targets );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            public function filter( request :InvokeRequest ) : void
            {
                this.targets.removeAll();
    
                this.request = request;
    
                //trace( 'filter ' + request.mimeType );
                InvokeManager.invokeManager.addEventListener( InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                InvokeManager.invokeManager.queryInvokeTargets( request.mimeType, request.uri, request.action, request.targetOptions );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            private function TargetsFound( event : InvokeQueryTargetEvent ) : void
            {
                InvokeManager.invokeManager.removeEventListener(InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                //trace( 'TargetsFound' );
                var action : ActionQuery;
                var target : InvokeTarget;
                for each( action in event.actions )
                {
                    for each( target in action.targets )
                    {
                      this.targets.addItem( { data : target.target, label : target.label, icon : 'file://' + target.icon } );
                    }
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function TargetSelected( event :Event ) : void
            {
                if( this.targets.selectedIndex >= 0 )
                {
                  this.request.target = this.targets.selection;
                  InvokeManager.invokeManager.invoke( this.request );
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function ActionSelected( event :ActionEvent ) : void
            {
                switch( event.action.data.id )
                {
                    case 'cancel' : this.dispatchEvent( new Event( Event.CANCEL ) ); break;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList( unscaledWidth, unscaledHeight );
    
                this.targets.setPosition( 10, this.top + 10 );
                this.targets.setActualSize( unscaledWidth - 20, unscaledHeight - this.targets.y - 10 );
            }
        }
    }
    

    And the rendering engine:

    package com.lib.playbook.renderers
    {
    
        import qnx.fuse.ui.display.Image;
        import qnx.fuse.ui.listClasses.CellRenderer;
    
        public class IconListRenderer extends CellRenderer
        {
    
            private var icon    :Image = new Image();
    
            /////////////////////////////////////////////////////////////////////////
            public function IconListRenderer()
            {
                super();
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onAdded():void
            {
                super.onAdded();
                this.addChild( this.icon );
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onRemoved():void
            {
                super.onRemoved();
                this.removeChild( this.icon );
            }
    
            /////////////////////////////////////////////////////////////////////////////////////
            override protected function drawLabel(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.drawLabel( unscaledWidth, unscaledHeight );
    
                if( this.data )
                {
    
                    if( this.data.hasOwnProperty( 'icon' ) && this.data.icon != null )
                    {
                        this.icon.setImage( this.data.icon );
                        this.icon.setPosition( 10, 15 );//( unscaledHeight - this.icon.height ) / 2 );
                    }
                    else
                    {
                        this.icon.setImage( null );
                    }
    
                }
    
                this.label.x = 140;
                this.label.width = unscaledWidth - this.label.x - 20;
            }
        }
    }
    

    references com.lib.playbook our our inner classes, but you should get the approach to apply.

  • Touch anywhere on the screen calls the ListField TouchEvent.DOWN

    Hello

    I suffer with small complex issue. In the screen of my application, I have the title bar with a labelfield and two custom buttons.

    Below the titlefield I add a list field.

    Now, I have a few complex features on the field from the list. When I click each line in the list, it should move to another screen I do using navigation, click medium. Now if I touch the rank in the list (for touch devices), it should move to another screen. And if I touch along the line of the list, it will display popup menu (custom, not by default) with option of removal and details.

            mListItem = new ListField(length, ButtonField.CONSUME_CLICK)
            {
                long touchedAt = -1;
                long HOLD_TIME = 500;
    
             // The regular getFieldAtLocation returns wrong values in open
                        // spaces in
                        // complex managers, so we override it
    //                  public int getFieldAtLocation(int x, int y) {
    //                      XYRect rect = new XYRect();
    //                      int index = getFieldCount() - 1;
    //                      while (index >= 0) {
    //                          getField(index).getExtent(rect);
    //                          if (rect.contains(x, y))
    //                              break;
    //                          --index;
    //                      }
    //                      return index;
    //                  }
                protected boolean navigationClick(int status, int time)
                {
                    // Click related functionality
                    return true;
                }
    
                protected boolean touchEvent(TouchEvent message)
                {
                    if(message.getEvent() == TouchEvent.DOWN)
                    {
                         if (getFieldAtLocation(message.getX(1), message.getY(1)) == -1)
                         {
                             Logger.out("AccountList", "Touch down: getField location");
                             return true; // kill the event
                         }
                         else
                         {
                             touchedAt = System.currentTimeMillis();
                             touchedonList = true;
                             Logger.out("AccountList", "Touch down: touched down  "+touchedonList);
                         }
                    }
                    else if(message.getEvent() == TouchEvent.UP )
                    {
    
                           if(System.currentTimeMillis() - touchedAt < HOLD_TIME && touchedonList == true)
                           {
                               touchedAt = -1; // reset
                               // Single Touch and Move to another screen
                           }
    
                           else if(touchedonList == true)
                           {
                             // Showing Menu Popup
                           }
                    }
                    return true;
    //              return super.touchEvent(message);  // Not using this as it will show the default pop up
                }
    

    And here's my reminder list field:

    public class ListCallBack implements ListFieldCallback
        {
            public void drawListRow(ListField listField, Graphics graphics, int index,
                    int y, int width) {
    
                String strdomOrg = yyyyyyy;
                String text = xxxxxx;
                Font f = FONT_FAMILY_0_SF_AS_08;
    
                int h = f.getHeight();
    //          int height = (listField.getRowHeight() - h)/2 ;
                int height = h/2 ;
                y += height;
                graphics.setFont(f);
                graphics.setColor(Color.BLACK);
                graphics.drawText(strdomOrg, 10, y, DrawStyle.ELLIPSIS, width);
                y = y + h;
                graphics.setFont(FONT_FAMILY_1_SF_AS_08);
                graphics.setColor(Color.BLACK);
                graphics.drawText(text, 10, y, DrawStyle.ELLIPSIS , width);
    
             // use the offset instead
                int offset = (listField.getRowHeight() ) >> 1;
                if (index != 0) {
                    graphics.drawLine(0, y - offset , width, y - offset);
                }
            }
    
            public Object get(ListField listField, int index) {
                // TODO Auto-generated method stub
                return mAccounts[index];
            }
    
            public int getPreferredWidth(ListField listField) {
                // TODO Auto-generated method stub
                return screenWidth;
            }
    
            public int getPreferredHeight() {
                return getContentHeight();
            }
    
            public int indexOfList(ListField listField, String prefix, int start) {
                // TODO Auto-generated method stub
                return listField.getSelectedIndex();
            }
    
        }
    

    Now the question is to come a different way:

    1. whenever I touch the buttons in title field, he calls the listfield TouchEvent.DOWN. Then the click of a button does not work. Instead, by clicking on the title bar, it moves to another screen, which is the feature click list filed.

    2. so I added the listfield at a value for money. :

    m_vfmScreen = new VerticalFieldManager(VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)
            {
    
            protected boolean touchEvent(TouchEvent message) {
                    int event = message.getEvent();
                    if (event == TouchEvent.CLICK) {
                        if (getFieldAtLocation(message.getX(1), message.getY(1)) == -1)
                            return true; // kill the event
                        else {
                        }
                    }
                    return super.touchEvent(message);
                }
    
                // The regular getFieldAtLocation returns wrong values in open
                // spaces in
                // complex managers, so we override it
                public int getFieldAtLocation(int x, int y) {
                    XYRect rect = new XYRect();
                    int index = getFieldCount() - 1;
                    while (index >= 0) {
                        getField(index).getExtent(rect);
                        if (rect.contains(x, y))
                            break;
                        --index;
                    }
                    return index;
                }
            };
    

    While in the list key of field works. If I touch the buttons in the title bar, it does not. But if the keys become focus, this case they work.

    So I am in dilemma, what exactly the problem. Can someone please help.

    For me, there's a code unepxected in your touchEvent() - getFieldAtLocation().  If you want released supporess presses of field, I suggest you use code like this:

    protected boolean touchEvent (TouchEvent message) {}

    int x = message.getX (1);
    int y = message.getY (1);
    If (x < 0="" ||="" y=""> < 0="" ||="" x=""> getExtent () .width: y > getExtent () .height) {}
    Outside the scope
    Returns false;
    }

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • After you call the camera and upload a photo, how to return to my application?

    I can call him on camera, and I can detect when files is created in the image, using JournalListener. What I can't understand how to do it is to return to the application and display the image on my Web app.

    I want to be able to close the camera application. Is there a way to do this?

    I try to use:

    EventInjector.invokeEvent (new EventInjector.KeyCodeEvent (EventInjector.KeyCodeEvent.KEY_DOWN, (char) Keypad.key (Keypad.KEY_ESCAPE), Keypad.status (Keypad.KEY_ESCAPE), 50));

    but does not answer, please sombody give me help

    I have a listener to determine where the files have been added to the file system.

    In this listening port, I have the following code...

    
    EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 0, 50);                       inject.post();                       inject.post(); 
    

Maybe you are looking for