Large requrest paramter in ajax call servlet

HI
I want to pass large requrest paramter in ajax call to servlet which has got lot of character ,when i passing i get unknow error in ie n aborted error in mozilla any help...

HI
I want to pass large requrest paramter in ajax call to servlet which has got lot of character ,when i passing i get unknow error in ie n aborted error in mozilla any help...

Similar Messages

  • Problem with multiple Ajax calls to the same Servlet

    Hi,
    I am new to AJAX. I have a requirement where in, i have to make ajax calls to the same servlet in an infinite loop and check for an application context attribute to refresh the contents in the JSP.I am using the following script in JSP. The problem is i am not able to invoke the servlet more than one time.But I am able to go through the script at specific time interval using setInterval() function of Javascript and able to get alerts.But the problem is with xmlhttp.open("Get", url, true);. Its not getting called more than one time, even though i make multiple calls to the function.
    *<script type="text/javascript">*
    var xmlhttp
    var resp
    function fAjax()
    alert("Here");
    xmlhttp=null;
    resp=null;
    // code for Mozilla, etc.
    if (window.XMLHttpRequest)
    xmlhttp=new XMLHttpRequest();
    // code for IE
    else if (window.ActiveXObject)
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlhttp!=null)
    xmlhttp.onreadystatechange=state_Change;
    xmlhttp.open("GET","/PSAPBackOffice/TestServlet",true);
    xmlhttp.send(null);
    else
    alert("Your browser does not support XMLHTTP.")
    function state_Change()
    // if xmlhttp shows "loaded"
    if (xmlhttp.readyState==4)
    // if "OK"
    if (xmlhttp.status==200)
         resp=xmlhttp.responseText;
         //alert(resp);
         if (resp=="CALL"){
         form.method="GET";
         form.action="/Project/Details.jsp          
    form.submit();
    else
    alert("Problem retrieving XML data")
    function callTimer(){
         setInterval("fAjax()",5000);
    *</script>*
    *Code for Servlet here:*
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
    ServletContext objContext= getServletContext();
         String value;
         synchronized (objContext) {
                   value=(String) objContext.getAttribute("Flag");
                        if(value==null){
                        else if(value.equals("Done")){
                             response.setContentType(CONTENT_TYPE);
                             PrintWriter out = null;
                                  try {
                                       out = response.getWriter();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                                                                } catch (NullPointerException npe) {
                                       // TODO Auto-generated catch block
                                       npe.printStackTrace();
                             objContext.setAttribute("Flag","No");
                             out.println("CALL");
    Can someone figureout the problem or mistake and help me out.Its urgent and please help me in this regard.Thanks in Advance !

    I'm not sure I'm following you. The mapping from URL to servlet can contain anything you want. So you could have the URL /blah/blah/blah that, with a mapping something like /blah/* would pass all requests with that URL pattern to your servlet - no one has to know it is a servlet. Your servlet could then parse the URL to see what it has to do or you could pass parameters as part of the URL or as hidden fields.

  • Issue while making a AJAX call to a servlet in ALUI.

    Hi,
    The problem scenario is :
    I log into the portal using "http://147.149.132.93:7001/portal/server.pt"
    i have two instances of applications which have same files but provide different functionality one on 147.149.132.93 and other on 147.149.132.102 .
    I have configured my portlet that points to the application on 147.149.132.102 , when i make a ajax call to a servlet using the relative path for the aaplication , in normal scenario the ajax should make call to the servlert on the 147.149.132.102 but this does not happen and ajax makes call to the servlet on the machine 147.149.132.93 .
    Is there any issue regarding usage of Ajax in ALUI portal?
    Why the Ajax takes the server path from the portal login URL and not from the remote server configured for the portlet ? ?:|
    HELP !!!!!!!!!!!!!!!
    Regards,
    Prashant

    I m also facing same problem. I resolve the problem by simply giving >complete servlet address in ajax call.There are 2 issue with this:
    1) AJAX call will bypass portal, so it makes calls unsafe + you can not use portal functionality anymore. Plus some other issue like session expiration and so on.
    2) URL is hardcoded, so it's difficult to manage.
    All calls (include ajax) have to go through portal in portal environment. It means that AJAX url has to be gatewayed like any other url. There is no issue with ajax in portal. In G6 make sure that <inline> refresh checkbox (for WS) is unchecked.
    Here is example how to create AJAX URL on the fly by using Javascript. Let's say we have 2 files in root folder of <RemoteProjectName> web application:portlet.jsp file and ajaxExample.jsp.
    Code in portlet.jsp may looks like
    <script>
    var Url = "<pt:url xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/' pt:href='ajaxExample.jsp'/>";
    </script>
    Here is what you can get as result of this transformation (based on data provided in first post):
    http://147.149.132.93:7001/portal/server.pt/gateway/PTARGS_0_0_XXX_XXX_X_XX/http%3B/147.149.132.102%3B/RemoteProjectName/ajaxExample.jsp
    where XXX - are numbers specific to particular portal environment.
    Edited by Bryazgin at 12/21/2007 7:43 AM

  • How do I update a bean value from an AJAX call?

    Hi all,
    How do I update a bean value from an AJAX call? I suppose I could write a servlet to do it. However, this seems like a common problem, so I was wondering if there was some built in solution.
    Thanks,
    Grae
    Edited by: caalip2 on Mar 30, 2010 1:07 PM

    caalip2 wrote:
    Raymond
    Basically, I would user the following. The first choice for IE, the second for Firefox.
    new ActiveXObject("Microsoft.XMLHTTP");
    new XMLHttpRequest();
    GraeDon't do this to yourself. If it were that easy there wouldn't be AJAX frameworks for JSF. Find one you like and use it. I've used a4j (part of RichFaces) successfully.

  • Problem calling servlet from doget method of another servlet

    hi,
    Iam trying to post an html form written in the doGet() method
    of a servlet to pass this information to another servlet's doPost() method. Iam giving the following URL:
    "<FORM ACTION=http://localhost:8080/examples/servlet/UpdateProcessServlet" +
    "METHOD=POST>"
    But its not happening,the error says that "the page cannot be found" The servlet is not getting called at all. would someboy please help me in this regard.
    Thanks

    #1 Iam calling servlet 2 from here
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    session=request.getSession(false);
    out.println
    (ServletUtilities.DOCTYPE +
    "<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>"+
    "<HTML>" +
    "<BODY>" +
    "<P CLASS=LARGER>" +
    "<FORM ACTION=http://localhost:8080/examples/servlet/UpdateProcessServlet METHOD=POST>"
    "<INPUT TYPE=SUBMIT NAME=submitButton Value=submit>" +
    "</BODY> " +
    "</HTML>" );
    #2 This should get called and print me "Iam in doPost method
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws ServletException,IOException
    url = "jdbc:odbc:Resume";
    System.out.println("Iam in doPost method");
    response.setContentType("text/html");
    out = response.getWriter();
    out.println("This is the last servlet for this project:");
    bool=false;
    check=false;
    Thank...:)

  • AJAX call function

    i have all my functions in a java class file....how do i call the function using ajax? does anyone know?
    thx

    Have you considered using DWR for your AJAX calls. It's a very simple open source framework for implementing AJAX into your Java Web application. One of the benefits of using DWR is easy browser compatibility, the framework will generate most of the client side javascript for you, all you have to do is define your java classes in the dwr.xml, and define the dwr servlet in your web.xml.
    I highly recommend using DWR for your AJAX calls.
    http://getahead.ltd.uk/dwr/overview/dwr

  • Secure AJAX calls made from a JSR 168 portlet

    I am investigating methods to secure AJAX calls made from a JSR 168 portlet to a servlet using the Direct Web Remoting framework (DWR) and Weblogic Portal. The portlet can have more than one instance and different entitlements depending on the desktop it is available from. The Portal has several desktops and does not require the user to authenticate for some of the desktops.
    So far the only method I have come up with is to pass a token from the portlet to the servlet which indicates the entitlements the user should have to access the documents from the portlet and check in the servlet if the User has the appropriate global roles to access the documents.

    no , that doesn't work, the token passed can be modified by a malicious user (unless the token is random or signed)
    You need to store the desktop(s) the user is on in probably the HttpSession and read that from the servlet and make the decisions accordingly.
    regards
    deepak

  • Firefox 6.0.2 keeps on crashing, problems with ajax calls

    Hi,
    I am using the jquery form plugin to make ajax calls on my sites, when i invoke the plugin and have Firebug open I get this message:
    Could not convert JavaScript argument arg 0 [nsISupports.QueryInterface]
    [Break On This Error] callback.data = aElem....getComputedStyle(callback.data, '');
    rfhelper32.js
    Firebug also tells me that it's limit has been reached 1571 entries shown.
    Can someone tell me why this is happening; is there a problem with Firefox that will be fixed. It's not happening in IE9
    Here is the information from a recent crash report (which may or not be related to the above problem!)
    AdapterDeviceID: 0a66
    AdapterVendorID: 10de
    Add-ons: [email protected]:3.0.4,{6AC85730-7D0F-4de0-B3FA-21142DD85326}:2.5.5,{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}:0.17,{e968fc70-8f95-4ab9-9e79-304de2a71ee1}:0.7.3,{f36c6cd1-da73-491d-b290-8fc9115bfa55}:2.2.0,{BBDA0591-3099-440a-AA10-41764D9DB4DB}:3.1,[email protected]:1.8.2,{2D3F3651-74B9-4795-BDEC-6DA2F431CB62}:2011.7.1.3,{972ce4c6-7e08-4474-a285-3208198ce6fd}:6.0.2
    AvailableVirtualMemory: 174600192
    BuildID: 20110902133214
    CrashTime: 1316093326
    EMCheckCompatibility: true
    Email: [email protected]
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1315406279
    Notes: AdapterVendorID: 10de, AdapterDeviceID: 0a66, AdapterDriverVersion: 8.16.11.9104
    D3D10 Layers? D3D10 Layers-
    D3D9 Layers? D3D9 Layers-
    WebGL? WebGL-
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 160793
    StartupTime: 1316067225
    SystemMemoryUsePercentage: 86
    Theme: classic/1.0
    Throttleable: 1
    TotalVirtualMemory: 2147352576
    URL: https://s-static.ak.fbcdn.net/connect/xd_proxy.php?version=3#cb=f1ae6be54ac01b4&origin=https%3A%2F%2Fwww.paypal-business.co.uk%2Ffd558408b2cb6c&relation=parent.parent&transport=postmessage&type=resize&height=20&ackData[id]=1&width=250
    Vendor: Mozilla
    Version: 6.0.2
    Winsock_LSP: MSAFD Tcpip [TCP/IP] : 2 : 1 :
    MSAFD Tcpip [UDP/IP] : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [RAW/IP] : 2 : 3 :
    MSAFD Tcpip [TCP/IPv6] : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    MSAFD Tcpip [UDP/IPv6] : 2 : 2 :
    MSAFD Tcpip [RAW/IPv6] : 2 : 3 : %SystemRoot%\system32\mswsock.dll
    RSVP TCPv6 Service Provider : 2 : 1 :
    RSVP TCP Service Provider : 2 : 1 : %SystemRoot%\system32\mswsock.dll
    RSVP UDPv6 Service Provider : 2 : 2 :
    RSVP UDP Service Provider : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 1 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 1 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 5 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 5 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 7 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 7 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] SEQPACKET 8 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{C8F77A1D-B3A2-4DE2-AE72-C377BBD10D9A}] DATAGRAM 8 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] SEQPACKET 6 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4A8E4D1C-24D8-40C3-BC41-D04B5D505F39}] DATAGRAM 6 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] SEQPACKET 10 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{3D95D40E-1835-44C6-A621-968094D90452}] DATAGRAM 10 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] SEQPACKET 9 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{D6AD3B6C-2F8E-49B4-BDCD-DB35518116E7}] DATAGRAM 9 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] SEQPACKET 4 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{18908ACF-76C1-4139-8C1C-89DF049156C5}] DATAGRAM 4 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] SEQPACKET 3 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{4112C824-372C-4014-87AE-1BC13EA6E4CD}] DATAGRAM 3 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] SEQPACKET 0 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{2E408326-9611-4C41-B766-C4CB82734986}] DATAGRAM 0 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] SEQPACKET 2 : 2 : 5 :
    MSAFD NetBIOS [\Device\NetBT_Tcpip6_{91C733AA-510D-41D3-B67A-4441103BAE50}] DATAGRAM 2 : 2 : 2 : %SystemRoot%\system32\mswsock.dll
    VMCI sockets DGRAM : 0 : 2 :
    VMCI sockets STREAM : 0 : 1 : C:\Program Files\VMware\VMware Workstation\vsocklib.dll
    This report also contains technical information about the state of the application when it crashed.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How to handle jquery and ajax call in single page application using coded ui

    Hi,
    I am facing a very tricky situation while using coded ui. My application interact with ajax and I was facing the issue to handle the ajax in the login page and other pages. I went through the post : http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project 
    and got solution for my problem. Now when ever a ajax is getting called in the page its getting handle with app config file. However the issue I am facing right now is. 
    When i click on a button a window will appear which is actually a "div tag". Please see the image below. In  the that window when I have to select a item from drop down, the ajax will get called, however it will get called only for the window,
    it wont be called for the entire page.. i.e. it will update only the window. I am not able to handle this ajax call, script gets stuck in refresh state. I will request you guys to provide a work around for it.
    I would like to add more details - Visual studio version - 2013 update 3, IE11. 
    Application details: Its a single page application which uses bootstrap framework. All the ajax call are dynamic.
    Thanks in advance.

    Thanks for the reply.
    The window is not exactly a pop up window. Its a div tag in the same page. As this is my first time to work on  a single page application I am not sure how it works. For the entire page I am able to handle the ajax call however the action performed
    in the div tag is not getting handled.
    Code for the window, I am not sure to what extend will it be helpful.
    <div class="modal-content"><div class="modal-header"><div class="bootstrap-dialog-header"><div class="bootstrap-dialog-close-button" style="display: none;"><button class="close">×</button></div><div
    class="bootstrap-dialog-title">Move Item to different task [FocusAudit]</div></div></div><div class="modal-body"><div class="bootstrap-dialog-body"><div class="bootstrap-dialog-message"><div><div
    id="dashboard">
      <table class="TFtable">
        <tbody><tr>
          <td colspan="2">
                You are about to move the  24 selected item item to a different task. Select the task to which to move this item, (Optionally) enter notes about the task change, and click 'Change' to continue.
              </td>
        </tr>
        <tr>
          <td>Select New WorkFlow:</td>
          <td><select class="form-control" id="MA_workflow" onchange="ChangeWorkFlow()"><option value="647446014">Batches<option value="647446007">Claim<option value="647446065"
    selected="">Workflow1</option></select></td>
        </tr>
        <tr>
          <td>Select New Task:</td>
          <td><select class="form-control" id="MA_actions"><option value="647446025">BatchRebuild</option><option value="647446054">Complete</option><option value="647446039">DataIntegrityCheck</option><option
    value="647446038">FocusAudit</option><option value="647446053">FocusAuditMiner</option><option value="647446037">FocusAuditSelect</option><option value="647446055">LocationRouter</option><option
    value="647446029">MineForSBT</option><option value="647446022">OCRtoWebDE</option><option value="647446024">OnePass</option><option value="647446049">OnePassRouter</option><option
    value="647446050">OnePassUS</option><option value="647446060">QAuditImporter</option><option value="647446045">QIAutoAuditGrader</option><option value="647446058">QIAutoAuditInjector</option><option
    value="647446048">QIMiner</option><option value="647446040">QISampler</option><option value="647446056">QIVerify</option><option value="647446059">QIVerifyGrader</option><option
    value="647446047">QIVerifyUS</option><option value="647446021">RecoRules</option><option value="647446082">Review</option><option value="647446042">Router</option><option
    value="647446023">Validate</option><option value="647446081">Verify</option><option value="647446080">WebDEFileCreator</option></select></td>
        </tr>
        <tr>
          <td>Select New Status:</td>
          <td>
            <select class="form-control" id="MA_status">
              <option value="ready">Ready</option>
              <option value="reject">Rejected</option>
              <option value="hold">Held</option>
              <option value="ready">Keep Status From Original Task</option>
            </select>
          </td>
        </tr>
        <tr>
          <td colspan="2">Notes:</td>
        </tr>
        <tr>
          <td colspan="2">
            <textarea name="MA_statusnote" class="form-control" id="MA_statusnote" maxlength="250" rows="5" cols="40"></textarea>
          </td>
        </tr>
        <tr>
          <td style="text-align: right;" colspan="2">
            <input class="btn btn-default list-inline" id="btnSubmit" onclick="prepareData_MoveToAction();" type="button" value="Change">
            <input class="btn btn-cancel" id="btnCancel" style="padding-left: 5px;" onclick=" dialogInstance2.close();" type="button" value="Cancel">
          </td>
        </tr>
      </tbody></table>
      <div id="overlayDialog" style="display: none;">
        <div style="width: 100%; text-align: center;">
          <h1>Processing...</h1>
          <img src="Images/ajax-loader.gif">
        </div>
      </div>
      <div id="dData_MoveToAction" style="display: none;" data-itemcount="24" data-oldactionidno="647446079" data-oldstatus="ready" data-oldactionname="FocusAudit" data-fnparent="PS"></div>
    </div>
    <script id="scrpd" language="text/javascript">
      <!--
      var cworkflow =$('#MA_workflow option:selected').text();
       function initMoveToAction()
         function ChangeWorkFlow(){
           $('#overlayDialog').show(300);
        var _newworkflowname=$('#MA_workflow option:selected').text(); 
        if(cworkflow!=_newworkflowname)
         getItemType();
         cworkflow = _newworkflowname;
       function getItemType()
          var _workflowid=$('#MA_workflow option:selected').text();
           var formData = { workflowid: _workflowid}
            var sPage = './Handlers/GenericFn.ashx?action=getitemtype';
           $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                    var newItemActions = jQuery.parseJSON(data);
                      $('#MA_actions').empty();
                      $.each(newItemActions, function(i, option) {
                   $('#MA_actions').append($('<option></option>').attr("value", option.Value).text(option.Key));
                         $('#overlayDialog').hide(300);
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
            function prepareData_MoveToAction()
                 var ma_oldstatus, ma_oldactionname, ma_actionidno,ma_oldactionid, ma_statusNote,ma_itemNewStatus,ma_itemtotalno, ma_newworkflowname,ma_fnparen;
                    ma_itemNewStatus = $('#MA_status option:selected' ).val();
                    ma_actionidno=$('#MA_actions option:selected').val();
                    ma_newworkflowname=$('#MA_workflow option:selected').text();
                    ma_statusNote = $("#MA_statusnote").val();
                var params = $("#dData_MoveToAction");
                if (params.data("oldstatus"))
                    ma_oldstatus = params.data("oldstatus");
                if (params.data("oldactionname"))
                    ma_oldactionname = params.data("oldactionname");
                if (params.data("oldactionidno"))
                    ma_oldactionid = params.data("oldactionidno");
                 if (params.data("itemcount"))
                    ma_itemtotalno = params.data("itemcount");
                 if (params.data("fnparent"))
                    ma_fnparen = params.data("fnparent");
                var formData = { currentstatus: ma_oldstatus, oldactionid:ma_oldactionid,newstatus: ma_itemNewStatus, actionid: ma_actionidno, oldactionName:ma_oldactionname, statusnote: ma_statusNote,totalno:ma_itemtotalno,  newworkflowname:
    ma_newworkflowname,fnparent:ma_fnparen};            
                var sPage = './Handlers/ItemAction_MoveToAction.ashx?action=movetoaction';
                 $('#overlayDialog').show(300);
                  $('#btnSubmit').attr('disabled',true);
                  $('#btnCancel').attr('disabled',true);
                $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                        SetProdSummary();
                        $('#overlayDialog').hide(300);
                       dialogInstance2.close();
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
          -->
    </script></div></div></div></div><div class="modal-footer" style="display: none;"><div class="bootstrap-dialog-footer"></div></div></div>
    I agree the point the UI has to be active or else the script will have issue during the playback. In my scenario I have to work on that window. I have to perform action on it. Now when the window(div thing) comes up the page in the background goes disable
    till the action is performed on the window or the window is closed. I have to perform action on it then only I can proceed with the TC automation. Please let me know any option to solve this problem.
    Thanks 
    Ahetejazahmad Khan.

  • Not able to create row in HANA via .create or ajax call (oData Services)

    Hello Experts,
    SYSTEM: AWS (Amazone Cloud with HANA SPS06), tunneling via VPN. My HANA-Studio is rev.70 with the "Kepler" addons. I´m the owner of this Schema and granted the necessary privliegues to the __SYS_REPO User.
    The following issues when I try to add a row with SAPUI5 - GUI:
    The following code are in the index.controller.js implemented and triggered by a button:
    Further to the developer guide (SAPUI5....) there is a create Statement to add rows into the Table in HANA. I tried the following:
    //Einfacher Datensatz welcher in die HANA geschrieben werden sollte:
    var oModel = new sap.ui.model.odata.ODataModel 
    ("..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata", false);
    var oEntry = {};
    oEntry.id = 7777;
    oEntry.LfdNr=1;
    oEntry.Customer=2;
    oEntry.Thema=3;
    oEntry.Leadueber=4;
    oEntry.Owner=5;
    oEntry.MarketDeveloper=6;
    oEntry.ThemenfokusnachBL=7;
    oEntry.Industry=8;
    oEntry.PDs=9;
    oEntry.Revenue=0;
    oEntry.Probability=1;
    oEntry.ProbableRevenue=2;
    oEntry.Start=3;
    oEntry.Finish=4;
    oEntry.Duration=5;
    oEntry.Phase=6;
    oEntry.Status=7;
    oEntry.ATPDecision=8;
    oEntry.Date=9;
    oEntry.SupplyChain=0;
    oEntry.Technology=1;
    oEntry.Region=2;
    oEntry.Kontaktquelle=3;
    oEntry.CASStatus=4;
    oEntry.Angebotsnummer=5;
    oEntry.Archiv=6;
    oEntry.Angebotabgelegt=7;
    oEntry.LeadmeldunganSAP=8;
    oEntry.ArtderAnfrage=9;
    oEntry.tmstmp= "/Date(1390557603727)/";
    //Instantzierung mit Anhang Opportunities
    oModel.create('/Opportunities', oEntry, nullfunction(){
    alert("Create successful");
               },function(e){
    for (var property in e.d){
    alert(property + "=" + e.d[property] + oEntry + "failed"); 
    I get the following Errormessage:
    ERROR: 2014-03-17 12:51:52 The following problem occurred: HTTP request failed501,Not Implemented,<?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code/><message xml:lang="en-US">Feature not supported.</message></error> -
    After this I tried it with an ajax call:
    var aUrl = '..(censored)../BL_TI/2005/zaginfothek/Opportunities.xsodata/Opportunities';
    //all in one ajax – Statement included and tried to create the row via POST:
    jQuery.ajax({
    method:'POST',
    url: aUrl,
    data: {"id": "7778",
    "LfdNr" : "1" ,
    "Customer" : "2",
    "Thema" : "3" ,
    "Leadueber" : "4",
    "Owner" : "5",
    "MarketDeveloper" : "6",
    "ThemenfokusnachBL" : "7",
    "Industry" : "8",
    "PDs" : "9",
    "Revenue" : "0",
    "Probability" : "1",
    "ProbableRevenue" : "2",
    "Start" : "3",
    "Finish" : "4",
    "Duration" : "5",
    "Phase" : "6",
    "Status" : "7",
    "ATPDecision" : "8",
    "Date": "9",
    "SupplyChain" : "0",
    "Technology" : "1",
    "Region" : "2",
    "Kontaktquelle" : "3",
    "CASStatus" : "4",
    "Angebotsnummer" : "5",
    "Archiv" : "6",
    "Angebotabgelegt" : "7",
    "LeadmeldunganSAP" : "8",
    "ArtderAnfrage" : "9",
    "tmstmp": "/Date(1390557603727)/"
    contentType: 'application/json',
    dataType: 'json',
    success: function(e){
    alert(e.response + "success");
    error: function onErrorCall(jqXHR, textStatus, errorThrown){
    alert(jqXHR.status);
    alert(aUrl);
    sap.ui.commons.MessageBox.show(jqXHR.status,   
    "ERROR",  
    "Error in calling Service" );   
    // return;  
    The last statement with ajax send me a success message back, but there is still no row added in the HANA.
    Has anyone an idea what´s going wrong?
    I woulb be happy for any hints, thanks
    André

    Hi Ben,
    well I tried out your code and it works with an small correction of your insert:
    save: function(){
            var oData = new sap.ui.model.odata.ODataModel('...censored.../BL_TI/2005/TEST_USER/Opportunities.xsodata', true); 
            // New user panel 
    //        var pnlUser = new sap.ui.commons.Panel({text: "User-Data"}); 
    //        var tfUserId = new sap.ui.commons.TextField({placeholder: "User-Id"}); 
    //        var tfUserName = new sap.ui.commons.TextField({placeholder: "User-Name"}); 
    //        var btnSave = new sap.ui.commons.Button({text: "Save"}); 
    //        pnlUser.addContent(tfUserId).addContent(tfUserName).addContent(btnSave); 
    //        btnSave.attachPress(function() { 
            var entry = {}; 
            entry.ID = "3"; //tfUserId.getValue(); 
            entry.USERNAME = "4"; //tfUserName.getValue(); 
            oData.create('/USER', entry, null, 
                    function() { 
                alert("Create successful"); 
            function() { 
                alert("Create failed"); 
    Try to write your id instead of  3 -> "3" That was the only what I´ve changed.
    Greetz,
    André

  • Error while calling servlet in WebLogic

    Hi,
    We are trying to call servlet in WebLogic by using http://scrmskr.apac.nsroot.net:7801/forms/HelloWorldServlet URL and getting
    below error.
    ========================================================================
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    ========================================================================
    Here we are calling HelloWorldServlet servlet which is kept in below path
    /rcrmap2/weblogic/bea/user_projects/domains/frmrep_rcrms/servers/WLS_FORMS/tmp/_WL_user/formsapp_11.1.1/e18uoi/war/WEB-INF/classes
    Entries for HelloWorldServlet in web.xml:
    ========================================================================
    <servlet>
    <servlet-name>HelloWorldServlet</servlet-name>
    <servlet-class>HelloWorldServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>frmservlet</servlet-name>
    <url-pattern>/frmservlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldServlet</servlet-name>
    <url-pattern>/HelloWorldServlet*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>lservlet</servlet-name>
    <url-pattern>/lservlet/*</url-pattern>
    </servlet-mapping>
    ========================================================================
    HelloWorldServlet.java:
    ===============================================================================
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet {
    public void service(HttpServletRequest req,
    HttpServletResponse res)
    throws IOException
    // Must set the content type first
    res.setContentType("text/html");
    // Now obtain a PrintWriter to insert HTML into
    PrintWriter out = res.getWriter();
    out.println("<html><head><title>" +
    "Hello World!</title></head>");
    out.println("<body><h1>Hello World!</h1></body></html>");
    ===============================================================================
    Please share your inputs as to what needs to be done for the same.
    Thanks & Regards,
    Harish

    Hi Jay,
    Please also find forms.conf_ entries
    ========================================================================
    # Name
    # forms.conf - Forms component Apache directives configuration file.
    # Purpose
    # It should include the weblogic managed server (routing) directives for
    # the servers where Forms applications are deployed and other miscellaneous
    # Forms component OHS directives.
    # Remarks
    # This file is included with the OHS configuration under
    # $OI/config/OHS/<OHS Node Name>/moduleconf sub-directory.
    # virtual mapping for the /forms/html mapping.
    RewriteEngine on
    RewriteRule ^/forms/html/(..*) /workaroundhtml/$1 [PT]
    RewriteRule ^/rcrms/html/(..*) /workaroundhtml/$1 [PT]
    AliasMatch ^/workaroundhtml/(..*) "/rcrmap2/weblogic/bea/rcrms/config/FormsComponent/forms/html/$1"
    AliasMatch ^/forms/frmjscript/(..*) "/rcrmap2/weblogic/bea/user_projects/domains/frmrep_rcrms/servers/WLS_FORMS/tmp/_WL_user/formsapp_11.1.1/e18uoi/war/frmjscript/$1"
    AliasMatch ^/rcrms/icons/(..*) "/rcrmap2/weblogic/bea/ORA_PFRD/forms/java/$1"
    # Virtual path mapping for Forms Java jar and class files (codebase)
    AliasMatch ^/forms/java/(..*) "/rcrmap2/weblogic/bea/ORA_PFRD/forms/java/$1"
    # Virtual path mapping for testcrms (codebase)
    AliasMatch ^/rcrms/java/(..*) "/rcrmap2/weblogic/bea/ORA_PFRD/forms/java/$1"
    AliasMatch ^/forms/(..*) "/rcrmap2/weblogic/bea/user_projects/domains/frmrep_rcrms/servers/WLS_FORMS/tmp/_WL_user/formsapp_11.1.1/e18uoi/war/WEB-INF/classes/$1"
    AliasMatch ^/rcrms/(..*) "/rcrmap2/weblogic/bea/user_projects/domains/frmrep_rcrms/servers/WLS_FORMS/tmp/_WL_user/formsapp_11.1.1/e18uoi/war/WEB-INF/classes/$1"
    AliasMatch ^/rcrms/WebCLAuth/* rcrms
    <Location /forms>
    SetHandler weblogic-handler
    WebLogicHost kauh0079
    WebLogicPort 8001
    </Location>
    ========================================================================
    Thanks & Regards,
    Harish

  • Windows authentication on every ajax call MVC

    I've created an MVC project with windows authentication.
    From my views, I use Jquery to retrieve data from the controller asynchronously in order to provide a better user experience and reduce loading times.
    These functions look like
    public JsonResult someFunction(string parameter)
    return Json(result, JsonRequestBehavior.AllowGet);
    Everythings works as I want in Chrome, where it prompts me for login when I open the page and no more for the duration of that session. However, in IE, it prompts me for login when I open the page, and on every single ajax call...
    Why is this happening and how can I avoid it?
    I need to use windows authentication and IE, I can't change that...

    Hello,
    In order to get your issue solved more efficiently and since this is a MVC issue, I would recommend you post this issue in
    http://forums.asp.net/1146.aspx/1?MVC forum to get supports.
    Thanks for your understanding.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to call servlets in sunone webserver

    hi,
    I am using sunone web server , I deployed but how to call servlets in sunone webserver any one tell me
    bye

    Typical URL structure is like this:
    http://<myServer>:<myPort>/servlet/<fully qualified class name of my servlet>Unless you have configured a different servlet mapping ...

  • How to send other parateters with the ajax call for rich:suggestion ...

    Hi
    For the component <rich:suggestion ...>
    How I can send parameters (besides what user fills in a field ) for the method
    public List fetchAjaxList(Object event) wich is called when the user changes the content of the input field.
    Put it in another way, I need values for two drop down lists that the user selects on the same page, this is because the returned list of the Ajax call DOES NOT depened only on the value of the input text field.
    Thanks

    Sorry, we are not writing AJAX like code. In conjunction with drop downs we are using the command "Autosubmit On Change" in the Design View of a NetBeans Visual JSF project. Than the IDE generates code like
    onChange="common_timeoutSubmitForm(this.form, 'tabSetAngebotsauswahl:tabAngebotsauswahl:layoutPanelAngebotsauswahl:gridPanelAngebotsauswahl:dropDownAuftraggeber');"  in the JSP. The whole page will be refreshed by a normal form submit than.

  • AJAX Call make SP to show the "Are you sure you want to leave this page" dialog box

    Hi all,
    I have a problem while editing properties of a Page. We have a custom Content Types which includes a field with a custom type (and custom control). The Custom control includes an UpdatePanel. The control is a tree view, so each time we expand a node, there
    is an AJAX call.
    The control is displayed on the page on Edit Mode. When we use the control from Edit Mode, expanding each node result in displaying the dialog box to ask the user if he wants to leave or stay on the page. 
    When using the same control from the "Edit Properties" form, expending the nods works perfectly.
    Also I couldn't reproduce the problem on FireFox, it only happens on IE.
    Using fiddler I could see a difference between the Post requests depending on the above scenarios.
    When using the custom Tree View from the Edit Page mode which result into the error, the POST request does not include the
    x-microsoftajax: Delta=true
    in the request header.
    When using FF or the Tree View from the Edit Properties window, the above header is present and the dialog box is not shown.
    Does anyone have an idea why I'm not having the the correct header with IE when using the control from Edit Mode?
    Cheers,
    Séb
    

    Hi,
    According to your post, an error occurred when you used Ajax in SharePoint.
    Please do as follows:
    1. Try to uncheck the Enable native XMLHTTP support option in IE's advanced options.
    Go to Tool->Internet Options->Advanced and disable “Enable native XMLHTTP support”.
    2. Use jQuery Ajax to call.
    https://api.jquery.com/jQuery.ajax/
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Getting .flv to appear in browser - EMERGENCY!

    I've seen this posted in multiple forums, but still can't figure it out. And my client wanted this by Thursday! I have an .flv that I brought into flash to use as a progressive download, saved the swf file. I placed the swf in dreamweaver. It's visib

  • How Bridge communicates with third party applications?

    Hi, Is it possible to communicate between Adobe Bridge and a third party application using Bridge SDK? I want to learn how Bridge can communicate with other application? Bridge SDK have samples that explain how Bridge communicates with other Adobe ap

  • Weblogic 10.0 and Weblogic 8.1.5 - StreamCorruptedException

    Is anyone else having any these issues? We are running one Weblogic 8.1.5 server using JSE 1.4. We are running another Weblogic 10.0 server using JSE 6. We host a 2.1 EJB on the WLS 8.1.5 server. We try to call the RemoteEJB from the WLS 10.0 server

  • Transparency and pantone problem

    Help please. i have a problem placing eps image to indesign. the black part became white in pdf. The eps file was composed of a transparent psd and a pantone background.

  • Why can't I import raw files?

    Lightroom will not import raw files.