APEX Spinner 5.0 utility and process of AJAX

Hello

I would like to make use of the provided spinner utility:

https://docs.Oracle.com/CD/E59726_01/doc.50/e39149/javascript_api.htm#AEAPI30161

I did AJAX which is called when clicking on link

< a id = "sunil" href = "#" onclick = "callMe ()" > Test < /a >

And my call to treat:

<script language="javascript">
    function callMe(){
        // For showing spinner using apex utility
        var lSpinner$ = apex.util.showSpinner( $( "#sunil" ) );
      
apex.server.process (
  "MY_APP_PROCESS"
,   {   x01: 'my first custom value'
    ,   x02: 'mysecond custom value'
    ,   x03: 'my third custom value'
    ,   p_arg_names: ['G_11','G_12','G_13']
    ,   p_arg_values: ['My 11th custom value','My 12th custom value','My 13th custom value']
    }
, {    dataType: 'text'
    ,   success: function(pData){alert(pData)}
    }
);
        // For removing spinner after work is done
        lSpinner$.remove();
    }
</script>


My AJAX process works perfectly, but instruction above and end of the loading icon reflect at all, and I can assure that there is a delay of at least 4 seconds. Everyone has implemented this?

Thank you

Sunil Bhatia

Hi Sunil,

There is no need to complicate things. apex. Server.Process already includes everything you need. Try the following code:

function callMe(){

    apex.server.process(
        "MY_APP_PROCESS", {
            x01: 'my first custom value'
        }, {
            dataType: 'text',
            success: function(pData) {
                alert( pData );
            },
            loadingIndicatorPosition: "page"
        });
}

It uses loadingIndicatorPosition: 'the page' to show a top while performing the AJAX call. See the documentation for apex.server.process for details https://docs.oracle.com/cd/E59726_01/doc.50/e39149/javascript_api.htm#AEAPI29523

Also note that you should not use < script=""> plus for your JavaScript code, just put in the attribute of level page 'function and Global Variable declaration'.

Hope that helps

Patrick

Member of the APEX development team

Tags: Database

Similar Questions

  • Today my Macbook Pro could not start.  He showed me the ban or no symbol.  I was able to access disk utility and run first aid on the SM0256G of SSD Apple media successfully.  Cannot start in normal/safe mode.  Should I delete/install so I can?

    MacBook Pro 13 '' end 2015.  256 GB SSD drive. El Capitan last version 10.11.4. I turned on the Macbook Pro and it could not start.  The progress bar with the Apple Logo would be present but would end not showing the symbol «»  I tried to boot mode safe - no go.  I have not reset PRAM help.  I was able to access disk utility and run successfully the first aid. No help. I was unable to restore two separate backup.  The utility show me backups however when I would go to the next screen and no backup is available.  Disk utility displays the SSD.  Can I erase the disc and download OS X install?  Thank you.

    At this point, there is no need to delete. A new copy of Mac OS X can be installed directly over the old copy. This process replaces the components of Mac OS X on a file by file basis and adds missing ones, there will be no major throwing away what anyone, unless there is a power failure.

    You have already run disk first aid.

    Now use mode of recovery (command + R to start) to "Re-install Mac OS X. It should install the latest revision of the main version that you ran last.

  • I was using my MacBook today and it crashed and the dock turned silv, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock turned

    I was using my MacBook today and it crashed and the dock turned silver, I restarted the mac and it was always the same, then I loaded the disk utility and checked the disk and it says disk is fine. It flashes inconsistently gray and the dock has transformed money! I tried to restore Mac OS and then also the same!
    OS El Capitan

    This can help:

    Reboot safe mode (it is a slow process):

    -stop of the mac

    -Start up the mac in shift, press and hold until you see appear it to progress bar, so you can let go

    -When everything started, connect

    -Once connected, stop the mac once again, nothing else is necessary.

    -restart normally.

    Lex

    PS: This clears all system caches.

  • Spot and process color - color Mode confusion?

    I have a question about the choice of colours in the new window shade of color. I think I understand the difference between spot and process colors, but the menu options drop-down confuse me because if I choose the Spot or process in the color Type drop-down list, the same libraries listed in the color Mode drop-down list. How it works, or why that happens? What is a conversion? By example, if I click on treat as the color Type, but then choose Pantone Solid Coated color mode, it shows me the colors available, but are not the spot color Pantone libraries? And if I chose the Spot as the color Type, but then choose CMYK color mode, it gives the CMYK sliders. But shouldn't I be forced to choose from a library of Pantone for a spot color? I would appreciate any explanation of what I want to make sure that I choose colors appropriate for my print projects. Thank you!

    You can create a spot color with a personalized mix of CMYK (and even it the same name as a color library if you want). The utility here is that you can create a custom spot with a conversion of customized process color or use your own numbers of conversion for a color book if you think you have a better mix. I recently had to do a special mix for conversion Pantone spot to fit a particular press in order to get a better match for the other materials. This is how we have treated, well I did by the folding of the swatches pantone for my custom and then point to change that to treat in the ink Manager, rather than playing with the color of the library directly, which meant that I could have the custom or book value, according to the settings I chose If the job went to another, press.

    There are, I think, four sets of libraries of process included in the code. Pantone Process libraries are sets of bleachers of percentage blends four inks, process and have names that begin with DS followed by some numbers. I think that TrueMatch is a similar system, although I've never worked with a printer who used it. PANTONE Color Bridge and solid to process library are the two simulations of Pantone Solid spots libraries process. The bridge of the color is more recent, and I think largely replaces the solid to deal with.

    You can get printed books swatch for all included libraries (spot and process), and you should do it for all the libraries that you use to specify the color. Tones in particular cannot make good on your monitor, and the press operator care what you see on your screen. He's going to get out his swatch book to check that the color on the page is him even that you specified.

  • I can't open my pictures folder. Error message says I don't have permission! I ran disk utility and found no errors. How this could have happened and how can I fix this problem? I'm the only user.

    Suddenly, I can longer open my pictures folder. I tried to move a picture to the folder to see what is happening and received an error message saying I was not allowed to display the contents of the folder and if I move the picture here, I won't be able to see. I ran disk utility and found no permissions error.

    How this could have happened and how can I fix this problem? I'm the only user. No one else has ever physical access to my computer. However, I sign up for Skyhub a few weeks ago and copied the contents of my Macbook it. Since then, a "Remote disk" icon on my hard drive. This would be part of the problem?

    Select it, choose get the information on the file menu, open the section sharing and permissions and give you access.

    (141083)

  • My wife has an i5 to 2.3 GHz MacBook Pro early 2011 and it worked like a slug.  Ran disk utility and verified that the disk needs repair using recovery HD.  What does this lead and what is the risk of losing all the data is there?

    My wife has an i5 to 2.3 GHz MacBook Pro early 2011 and it worked like a slug.  Ran disk utility and verified that the disk needs repair using recovery HD.  What does this lead and what is the risk of losing all the data is there?

    Even if it is very slow, you must make a return upwards before the race "repair disk". The risk of data loss is minimal, but do it anyway: Save and run to repair the disk.

    As for what it implies - most of the time nothing more than simply sitting and waiting to do his thing.

  • Satellite U500 - Eco utility and Windows activation problem

    Hello everyone

    I'm having some trouble with my satellite U500. Recently, I had to reinstall windows on my laptop and the problem is it not activate because of my motherboard was replaced some time ago (I have no more a recovery partition). I want to know is if it is possible to make it work again with recovery Toshiba dvd or by any other means.

    The other problem involves toshibas eco utility. Whenever I try to install it im getting an error message empty all I can do is click ok and then the installation is aborted. If someone had issues similar or is able to help me I would really appreciate it thx in advance. :)

    If you have original Toshiba Recovery disk use for installing Windows. Recovery image is already enabled, so it shouldn't be a problem. If you use a clean version that is another story.

    I hope that the Toshiba service provider has replaced the motherboard correctly and rewritten DMI information.

    Use please recovery disk and recovery image. This recovery image contains all of the tools of Toshiba and utility and all must be installed correctly including eco utility.

  • Disk utility: delete process has not

    Hello

    I just bought a new Seagate Expansion drive, and it has been formatted as a windows disk, I went to the disk utility and erase / formatted, it OS X Extended (journaled). It came with this error a few seconds after startup:he says that there is not enough space on the disk, but it's a drive of 2 000 nine Go! Help, please! (Please note that this screen shot was taken the second time I tried to erase it)

    I can not be the issue, but in your screen - the Mac HD seems to be highlighted...

  • the drive seem to have been partitioned by another utility and cannot be erased

    I have a MBP with 2 SSD. Yosemite is running on the SSD that has been partitioned 1 TB to a 150 / 850 GB volumes.

    I wanted to install Windows 10 using Boot Camp but after succesfully download Windows software support that I can not go to the next step where I have to choose a volume (Pluto). Wizard Boot Camp shows my SSD and when I chose the following warning is displayed:

    "the drive seem to have been partitioned by another utility and cannot be erased."

    I see that Pluto isn't GUID and maybe that's the problem, but there are already some data on the volume of 850 GB that I can't erase. Is there a way to fix this without destroying the data? I don't even know why Pluto doesn't have GUID in the first place...

    Thnx,

    G

    You have two entries 'Pluto '. The outermost is a volume CoreStorage group, which has two volumes, one is named Pluto, the other is TerraNova. The 512 GB of Samsung is your second physical disk. The Pluto in the BC Assistant is the complete LVG, not only the volume of Pluto, which contains also of Terra Nova.

    BCA does not support such a configuration on your MBP. You will need to backup your data or manually partition the disk and do a little terminal work, if you want to install Windows in this configuration. The second SSD will complicate it further. You may need to physically remove the disk non-windows in order to install Windows.

    Your end of 2011 Mac does not support Windows 10 as described in using 10 Windows on your Mac with Boot Camp - Apple support . You will encounter problems of pilot.

  • Acquire and process multiple images

    Hi, I use an acquisition card NI PCIe-1427 and tried acquisition and treatment of multiple image permanently. To be more precise, how can I extract a buffer of 4 images and perform some processing on the 4 images? For the examples, I can acquire 1000 images (or continuous), but must be extracted 4 images each time to combine them into a single image before saving the final image (on the handset). Thank you for viewing and comment. I woild appreciate if there are examples that I could learn too.

    Hi sp@davis,

    Did you look at This example that passes by sewing and processing of a video stream? There are tons of examples of different types of image processing on the community of NOR (like this one) If you have a type of mind-specific treatment. I hope this helps!

  • What the handles, threads, and processes means or function, they are performing?

    My son will ask me a question and I could not answer (it is perhaps a good thing because I think he will try to enter and change something he doesn't know) so I thought that I felt I'd better try to find out. He and I are eager to know what the handles, son and process average or functions, they do. They are in the performance tab in Windows Task Manager.


    Thank you

    Hello

    A process handle is an integer value that identifies a Windows process. The Win32 API call a HANDFUL.

    When you start a program, this program runs as a "process". It's something that runs in its own protected area, with its own memory. Other processes cannot touch this memory.

    A few times, the program needs to do several things at once in a way of multitasking, similar to how the multitasking process. For example, a spreadsheet can recalculate the cells you enter data. He * could * start another process, but they can't (easily) share the memory, he would need to if recalculate cells!

    Must be a different sort of process that is not quite as separated. It is a "thread".

    Process: the number of applications that are running at some point in the computer.

    Hope this information helps.

  • When I opened my computer it always tells me that the file is damaged and unreadable. Please run the Chkdsk utility... I searched my computer for "chkdsk utility" and can't find that. Help, please!

    Can someone help me please, I don't know how to use a computer I was googlen 4 days! When I opened my computer it always tells me that the file is damaged and unreadable. Please run the Chkdsk utility... I searched my computer for "chkdsk utility" and can't find that. Help, please!

    From what you say, you are probably unable to start Windows.

    In this case, when you start the computer, keep tapping the key "F8" on the keyboard until the Advanced menu comes up. Then choose "Safe Mode".

    You will see something like your ordinary, here to enter office "chkdsk volume: /f" (replace with your hard drive volume, in most cases, it's 'c') at the command prompt.

    For reference:

    http://support.Microsoft.com/kb/315265

    Hope this helps

    Post back if necessary

    ____________________

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Dell disk utility and drivers

    Hi-I really need help here - I recently got my original disc of Windows XP and Dell utility and Disk - The Windows XP drivers installed easily, so when I put the disc dell in for BOOT from the disc, the UTILITIES AND DRIVERS DISK DELL is not reccognizable-It keeps telling me to INSERT DISC when the disc from Dell is already in aid here, everything would be VERY APPRECIATED thanks you

    blueyesguy

    Sounds like the disc drivers and utilities, is defective.

    All Dell drivers can be downloaded on their drivers and here, download site

    http://www.Dell.com/support/drivers/us/en/19/DriversHome/?c=us&l=en&s=DHS&CS=19

    Note: Use Download Manager from Dell, choose the option 'Download' Using My Browser when you select the file to download.

    Download the drivers in a folder, you must create on the PC you use, name the folder "downloads".

    After that all the drivers are downloaded, plug the USB key into a USB port and transfer the file on the disk, using the Menu "send to".

    After installing XP, connect the USB drive to the computer you want to install the drivers on, go to my computer, click on the USB key to locate the folder, open the folder and install the drivers in the correct order.

    Bev.

  • Access to the use of memory and processing power charge connect 6224 via SNMP.

    Hi support them

    Is it possible to access the use of memory and processing power charge connect 6224 via SNMP? If possible, should the mib I use?

    Thanks in advance

    Rogerio

    When looking through the available MIB found in the zip file for download of the latest firmware.  I see that the MIB fastpathswitching mentions 'agentSwitchCpuProcessGroup '.

    MIB fastpathlogging has 'agentLogInMemoryConfigGroup '.

    There is no reference document material about what offer different MIB.

    I hope this helps.

  • threads and processes

    What is the difference between threads and processes?

    Hi Shams,

    Process of

    A process, in simple terms, is a running program. One or more threads run in the context of the process.

    Each process provides the resources needed to run a program. A process has a virtual address space, executable code, open the handles to system objects, a security context, a process environment variables, unique identifier, a class of priority, minimum and maximum working set size and at least a thread of execution. Each process is started with a single thread, often called the main thread, but can create additional threads in any of his sons.

    Thread

    A thread is the basic unit to which the operating system allocates time processor. A thread can execute any part of the process code, including parts being run by another thread.

    A thread is the entity within a process that can be scheduled for execution. All threads in a process of shared system resources and the virtual address space. In addition, each thread manages handlers exceptions, a scheduling priority, threads local storage, a single thread identifier and a set of structures, that the system uses to save the thread context until it is scheduled.

    If you have additional questions, feel free to post. We are here to help you.

Maybe you are looking for

  • Larger size of the screen on laptop?

    Can someone please advise me what is the largest size available on a laptop screen? Can't get more than 17 inches. Also, I read conflicting reports on the TruBrite screen. Some say that it is excellent, others that it is too bright and shiny to read

  • 8.1 Windows 64 - bit 3 USB ports not working not

    I have a model computer T430s 2352CTO, running Windows 8.1, 64-bit version. Before upgrading Windows 8.0 all drivers have been updated. The USB ports 3 worked properly, in particular an external hard drive of 1 GB running. After the 8.1 update, 3 USB

  • integrtae one table in other

    Hi guys,. I have an A array with length 10. All the elements are equal zero. Now I have a second table B with the length of 5 elements. Now, I have a third array with 5 items also. No I don't need to replace the elements has, whose indices are equal

  • After office 2010 download and install, PC with xp crashed

    I downloaded MS office pro plus 2010. He installed himself, and then he said that I needed a reboot to complete the installation. I answered Yes. After the restart, got the famous blue screen. I turned off the computer, wait about 20 seconds and then

  • HP Officejet Pro 8630: Ethernet and wireless

    If the printer's Ethernet connection the wireless features are disabled ie., printing from wireless devices, please help.  I use the ethernet as wireless is not secure or as stable as an ethernet connection.