How multiple xhRequests are handled

Hi,
we are working on a project and have multiple forms in one
page with different submit buttons. We are using the
Spry.Utils.SubmitForm to submit the forms upon clicking the buttons
and each form has its own ajax request handled by some javascript
functions. The problem (i think) is that the xhRequest object has
only one instance created and if we click another submit button
while the other request is not handled yet, we lose the first
request and get a response only by the last submitted form. The
other calls except the last call just stay in unfinished stayed
forever and they show the loading image forever in our case.
Is there a way to create different xhRequest objects (from
spry!) or do we have to implement our own XMLHttpObjects to handle
multiple request at the same time??

Thanks a lot,
Now that you told me xhRequest is created everytime, I
focused on finding anything else that can cause the problem im
having. And there was a mistake in the callback functions... after
every xh request, the variables which my callback function uses get
changed, so I was losing the previous values with the last one...
Thanks again, my problem is solved...

Similar Messages

  • How forms requests are processed ?

    Hi all,
    Can someone post meatilnk iid's or other links to docs on "How forms requests are handled in oracle applications"
    Thank you,
    Prasad

    Hi Prasad,
    You can visit the following links.
    http://erpschools.com/articles/forms-customization-steps-and-registration-process#13466743527622&92906::resize_frame|61-693
    http://oracle.anilpassi.com/a-new-custom-form-in-oracle-apps.html
    HTH
    sanjay

  • Do multiple objects of class are handled as process or threads?

    Hi
    I was thinking that how multiple objects of same java class are handled on any app server?
    Will it be Thread based or Process based executtion.
    I think it will be Process based handling for different objects as they do not have anything to share(Pls correct if I am wrong)
    I have below basic questions for any concurrency handled by Java framework fo any app server
    1) If I have one non static method which has below two lines
    if(file.exists() == true) ///line 1
    file.delete(); //line 2
    So for one request one new object has been created which comes to execute method which has above 2 lines,
    If it executes first line and meanwhile ,App sever switches to second object execution which executes both line then now when First object's execution will be started ,it will be error some?
    Is it right understanding ,if yes then what should we do?
    2) If I have one static method for all objects share same space with same above definition thn what will happen?
    Thanks in advance
    Ab

    Peter__Lawrey wrote:
    abhishah4444 wrote:
    If answer is yes then what is the way to avoid these type of scenarios.It depends on what the situation is and what the concequence is.
    Sometimes it is simpler to compensate rather than avoid the scenario.
    e.g. it may be simpler to just ignore the error rather that try to enforce some locking.
    For example, what happens if you or another program deletes the file at the wrong moment and both threads fail. Can you synchronise the user as well? no.
    Can I use synchonised here for method definition which will make sure that only one thread completes both lines other will wait till time?Yes. but you could still get a failure.
    It depends and what you are trying to achieve.
    You need to look at a real example.I appreciate your help but I still have some things going in my mind which I am putting here, if you find inappropriate ,can you put in simple words for my understanding.
    When we say for two web rquest , app server will create 2 threads that means thoes two thread are specific to app sever which use same resource of app server ,but independent of java classes.So when each request creates one object each for java class, two threads are two independent processes for app server as we dont have any static variables or static functions for that java class.
    Why do you say
    Yes. but you could still get a failure.
    It depends and what you are trying to achieve.Will synchonised(this){
    if(f.exists())
    f.delete();
    will not take care of serialisation here,I think it will
    Edited by: abhishah4444 on Aug 12, 2008 2:53 PM

  • How to tell if multiple files are selected when they are opened in windows

    Hello, can someone help me, my question is how to tell if multiple file selections were made when they were opened (right-click->open). Through modifying the registry I already have my Java program start up when a file with specific extension is double-clicked.
    The problem is when multiple files are opened at the same time, an instance of java program is created and run for each of the selected files. Ideally I would like it so that only one instance of java program is run, regardless of the number of selections.
    When you try it with Microsoft media player or winamp for example, it seems that only one process is created and run (I don't see many processes spawning when I watch it using task manager). Maybe this is more of Windows issue rather than Java programming issue. Any help is appreciated.

    If anybody wants to know, this can be solved by either 1) using DDE 2) using DropTarget (from Windows) 3) make a light-weight EXE dispatcher (eg. in C), and use file to have IPC between the dispatcher (which gets the filepath for each of the selections) and the java program. There can be other methods of course. Using the second option is the simplest but it requires WinXP and higher. I implemented it using option 3.. the downside of this is there's a warning message pop up when trying to open many (>20?) files at the same time by Windows. However, option 1 'seems' to have the same limitation. Having a java program created each time for each of the selections seems to be too slow, for viable option.

  • Multiple MRP areas to be handled with MD04

    Hello to all,
    my scope is to advice the user in MD04 when there are other MRP-Areas for the same material in the same plant and maybe offer a function to jump there directly. I am looking for suggestions how to solve this, maybe one of you did it already...
    Thanks to all
    Joerg

    Hi ,
    Yes u can use multiple MRP  area  for the single plant & SAp has given Provision to go to differant MRP area from MD04 , only u have to cchange the MRP area option in the MD04 screen , you will directly jump to given MRP area of that material & u will get the stock & MRp element details of the selected ,material.
    Regards
    satish

  • Can anyone tell me how they are handling software distribution for the iPad in an enterprise environment?

    Can anyone tell me how they are handling software distribution for the iPad in an enterprise environment?

    The new Business Volume Purchase Program is pretty interesting...it can be used to centrally purchase and distribute paid ( not free) items from the AppStore.  We are getting setup to use it.  You can keep an eye on licenses etc.  You can also use a single centralized form of payment. 
    http://www.apple.com/business/vpp/

  • How to assign a Sales Area to multiple Dunning Areas

    I was able to assign a Sales Area to a dunning area but my client wants a Sales Area to multiple dunning areas.
    Can you advise on how to get this done?
    Thanks.

    Dear Abbey,
    This is not possible with SAP Standard. Dunning area is unique per Sales Area. You can assign only one dunning area for the combination of Sales Organization, Distribution Channel, and Division.
    In IMG under
    Sales and Distribution -> Basic Functions -> Account Assignment/Costing -> Assign Dunning Areas
    Post your queries in relevant forum.
    Regards,
    Naveen.

  • How Keyboard & Mouse Events are handled in java?

    Hi
    How Keyboard & Mouse Events are handled in java?
    Kindly brief, how a key typed in the keyboard is sensed and it is entered in JTextField?
    or
    Pls. give me some links.
    Am going to send the events from external device (like keyboard) to OS and from that I need to capture that event in Java Swing?
    Pls. drop in a bit. So that it will be helpfull to me.
    Thanks in advance,
    bee

    Actualy am very much aware of using KeyListener and MouseListener. I am in need of internal details,
    how typing a key in keyboard is captured by KeyListener? How the event is passed to java swing and and it is fired to keylistener.
    Pls. help me.
    Thanks
    bee

  • How does adv tax payments are handled in sap

    how does adv tax payments are handled in sap
    is there any  method involved to handled it through app

    Andres,
    Thanks for your feedback - my question was probably a little vague (at best).
    The ASCII characters are hidden in the barcode - they do not form part of the numeric string when scanning into a normal char field.
    If I open notepad and scan I do not see the special character. If I open word and scan, I still do not see the special character but the font size changes where I know the special character exists - obviously it is a command to word.
    If I open CMD DOS prompt and scan there, I CAN see the special character.
    This led me to this how can I format an SAP field to behave the same way?
    I've subsequently found configuration settings in the scanning device itself which allows me to swap these hidden character (called Function Codes) with actual characters of my choice. For now this is how I will have to do it. The only issue with this approach is that I have to make sure all scanners are set up properly in each country which is a bit of a pain.
    Regards,
    Mark.

  • How to open a pdf package in browser when multiple files are bound together.

    Hi,
    I have to open a pdf package in browser that contains multiple pdf files any suggestions will help me a lot.
    Thanks.

    It shows me a page says "Multiple files are bound together in this PDF package"

  • File corruption on SDCard when multiple files are being written from WinCE 6.0R3

    We currently have file corruption problems which we have been able to reproduce on our system which uses WinCE 6.0R3. We have an SDCard in our system which is mounted as the root FS.  When multiple files are being written to the file system we occasionally
    see file corruption with data destined from one file, ending up in another file, or in another location in the same file.  We have already written test SW that we have been able to use to reproduce the problem, and have worked with the SDCard vendor to
    check that the memory controller on the card is not the source of the problems.
    We know that the data we send to WriteFile() is correct, and that the data which eventually gets sent through the SDCard driver to the SD card is already corrupted.
    We believe that the problem is somewhere in the microsoft private sources between the high level filesystem API calls and the low level device calls that get the data onto the HW.
    We have confirmed that the cards that get corrupted are all good and this is not a case ofpoor quality flash memory in the cards. The same cards that fail under WinCE 6.0R3 never fail under the same types of testing on Windows, Mac OX, or linux.  We
    can hammer the cards with single files writes over and over, but as soon as multiple threads are writing multiple files it is only a matter of time before a corruption occurs.
    One of the big problems is that we are using the sqlcompact DB for storing some data and this DB uses a cache which get's flushed on it's own schedule. Often the DB gets corrupted because other files are being written when the DB decides to flush.
    So we can reproduce the error (with enough time), and we know that data into the windows CE stack of code is good, but it comes out to the SDcard driver corrupted.  We have tried to minimize writes to the file system, but so far we have not found a
    way to make sure only one file can be written at once. Is there a setting or an API call that we can make to force the OS into only allowing one file write at a time, or a way of seeing how the multiple files are managed in the private sources?
    Thanks
    Peter

    All QFE's have been applied we are building the image so we have some control.
    I have build an image which used the debug DLL's of the FATFS and I have enabled all of the DebugZones.  The problem is still happening. From the timings in the debug logs and the timestamps in the data which corrupts the test file I have been able
    to see that the file is corrupted AFTER the write is complete. Or at least that's how it seems.
    We finished writing the file and closed the handle. Then more data is written to other files. When we get around to verifying the file it now contains data from the files that were subsequently written.
    What I think I need to do is figure out in detail how the two files were "laid down" onto the SDCard.  If the system used the same cluster to write the 2 files then that would explain the issue.

  • Help with POST data if  multiple selections are chosen

    I've created a form with a menu (list) that includes all 50
    states. I'm using the POST option, along with PHP, to process the
    form data, which will be emailed to me. The list-menu looks like
    this:
    http://askdave.info/help/states_menu.gif
    and I have "Allow Multiple Selections" checked in the Property
    Inspector.
    If the user chooses multiple states, I want
    EACH of those states to be listed in the email that I
    receive. Right now, if I check multiple states, I only get
    the very last state that's selected. For example, here's the
    email I get after I check 5 different states.
    http://askdave.info/help/formdata.gif
    Problem--> In this email, only one state is listed
    (Hawaii) even though I selected 5 different states. How do I get
    the form data to list ALL states that are checked?
    Here is what I have:
    <form name="form1" method="post" action="process.php">
    <input type="hidden" name="required"
    value="name,phone,email,states,capital" />
    And then for the menu that lists the states, I have:
    <label>
    <select name="states" size="7" multiple id="states">
    <option>All States</option>
    <option>Alabama</option>
    <option>Alaska</option>
    <option>Arizona</option>
    <option>Arkansas</option>
    and so on...
    What am I missing? How do I get the PHP script to send
    multiple values, if multiple values are chosen? (I'm new to PHP, so
    go easy on me. I can post my code, if necessary.) Is this a PHP
    issue, or do I need to add something to the HTML form?

    Hi,
    >>
    I think DynaForm stands for Dynamic Form
    >>
    this makes some sense ;-) I was just wondering because there
    is a pre-made script called DynaForm
    here, but
    it has a different "logistics" than yours.
    However, both "DynaForm" versions are pretty basic, as they
    just deal with non-multiple values - form fields like single line
    input fields, texareas and non-multiple select´s. Your script
    e.g. just loops through all existing form fields using the
    "foreach" method:
    //Pulls form fields & values.
    foreach ($this->post as $field => $value) { // looping
    through all form fields
    if ( $field == 'required' ) continue;
    $this->_addLine($field, $value); // here´s where the
    field´s name/value consolidation happens
    ...and simply consolidates a field´s "value" with its
    associated "name". The problem is : this method just works for
    fields having just 1 value -- but any "multiple value" form fields
    (e.g. your "states" select or checkbox groups which can pass
    multiple values as well) actually require a separate "foreach"
    treatment within the script, and this hasn´t been incorporated
    here.
    That said, I suggest using an other pre-made solution like
    PHP
    Form Mail script that´s capable to handle your multiple
    values - scenario innately.

  • Safari warning before quitting when multiple tabs are open?

    I'm a rather clumsy typist who often uses Apple+Tab to toggle through my open programs. This works great 99% of the time, but that other 1% is rather frustrating considering that the Q key is right next to Tab.
    Apple guys, please implement a pop up/drop down warning when attempting to quit Safari when multiple tabs are open (or at least the option to enable or disable it). I use this browser for work and often have many tabs open, so accidentally quitting the browser only impedes on my workday. I know I should be more accurate, but isn't that what part of progress is? The empowerment of laziness? =)
    Thanks for your time, and hopefully we see this included in soon-to-come upgrades!
    Oh, and if this feature is already available, feel free to show me the way.
    G4   Mac OS X (10.4.7)  

    jefftovar,
    I created and modified the Safari Keyboard Shortcut
    Quit (⌘+Q) command to (⌘ControlQ) by using System
    Preferences...>Keyboard Shortcuts.
    ;~)
    Great suggestion! But, the default Quit (⌘+Q) command is still in effect. I've looked about in trying to deactivate it, but can't seem to find it. How did you get rid of yours?
    G5   Mac OS X (10.4)  

  • Report with multiple Detail Area

    Hi All,
    Please see the Report pointed to the link below:
    [Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
    Some Explanations:
    ========================
    (1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
    (2) The lines with "WBLNX'" "123, 123.12", 
                             "WBLNX'"
       are variable data associated with the same Heading: "ABCDEFGH..."
    (2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
    (3) Item Code Descriptions ==> is a Header Info
    (4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
    (5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
    QUESTION:
    ===================
    How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
    Thanks and Best regards,
    Felix

    Hi Felix
    You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
    Hope this helps.
    Regards
    Nikhil

  • USING MULTIPLE CONTROLLING AREA in the column

    Dear Experts,
    As per my requirement i need fetch the data from multiple controlling areas in to one report. please let us know how many ways are there? can i able to use controlling are in the column of the report. when i try to select the controlling area is not appearing in the coumn and it is appearing only in the gene

    Hi,
    You can select multiple Controlling area Please try with following steps.
    Maintain variant
    Click on attributes.
    Environment > Maint.sel.varables.
    Click on Display/Change.
    Create new Parameter.
    Maintain selection options to new parameter.
    Save and back.
    Select "T" in selection variable against Field name :Controlling Area.
    Select the selection variable(Newly created Parameter)
    Regards
    Mahesh

Maybe you are looking for

  • How do I transfer my data from my old LOST BlackBerry to my new one?

    Hi everyone, I hope someone could help me out... I recently lost my blackberry pearl 8100 after car accident ( & thankfully I backed up my data the week before); anyways now I wanted to know how I can transfer my data to my new blackberry curve? (wit

  • Best Way To Display Photos On HDTV?

    I would like to display photos on a HDTV (16:9 aspect ratio, 1280x720 pixel max) at the highest possible resolution. The best photo quality, I assume, is obtained by connecting a computer's DVI output (or a networked media server) directly to the HDT

  • Adobe Digital Editions 2.0 language setting on Win 7 Japanese?

    For Adobe Digital Editions 2.0 on Win 7 Japanese, is there a workaround for having the app language in English, while keeping Japan regional settings as is? Thanks!

  • How can i edit an iMove someone has sent me via email?

    A colleague was working on an iMove trailer today and asked if I would do a bit of work on it at home. They emailed it to me but now now when i open it up it just plays through quicktime. I really want to get it into iMovie to edit it a bit... any su

  • Connections from other applications.

    Hello, Is there any parameter we can set to control the number of connections from an external application. I am using J2EE application server connection pool to connect to Oracle from Java. In Applciation server setting we can configure the number o