Cancel ajax call at server
Hi all,
I am making an application using jsp, java, hibernate and got a problem that i coundnt figure it out so far.
My application uses many ajax call at pages, you can think it like facebook style calls,
When I press a button to get data from server with ajax, I hibernate query runs at server side. Then if I press another button to get new request I can not cancel previous request at client and server. (I used.session.cancelQuery and didnt worked, ajax.abort() didnt worked at client)
How can handle that?
thanks...
I think you might have found a bug, there was a similar issue in APEX 4.1, Patrick Wolf suggested not to use the apex stop engine in APEX on demand processes, but I suspect, only suspect.. :-) that the APEX team might have done it anyway.
You can more information about this here:
https://forums.oracle.com/thread/2326095
It might be usefull if you can reproduce this on apex.oracle.com and notify the APEX dev team about this.
Similar Messages
-
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. -
Synchronous versus Asynchronous Ajax calls
Hello Apex gurus,
I have a page which uses synchronous Ajax and seems that once in a while the browser freezes. I suppose this happens when the server takes a little longer to respond. I read this article:
http://www.oreillynet.com/xml/blog/2007/01/do_sync_calls_freeze_browsers.html
and I wanted to reproduce the test. So at the top of my on demand process I put
DBMS_LOCK.sleep(10);
I expected this to freeze the browser for about 10 sec but make no difference in terms of what the response is.
It seems though that the response is null. I also have:
EXCEPTION
WHEN OTHERS THEN
htp.p(SQLERRM);
to capture any errors but no error message is returned either.
Can somebody explain what is going on here and as a second question: if I make the synchronous call to asynchronous is this going to solve the browser freezing problem.
GeorgeHello,
Please check if the following can help you –
Re: Ajax and Threading
Re: spinning/loading image for ajax call
Regards,
Arie. -
Does an AJAX call keep the session alive ?
Hi
I am not sure whether this is a question which I should post here.. but..
I have a jsp which makes some AJAX calls depending on user action..
well, my understanding is.. the server will not differentiate whether the request from the client is a synchronus or asynchronus one.. and if it did get a request from the client, the session will not time out within the time limit specified. So my question is there anyway the AJAX call will not actually affect the session time out ?
Is my understanding as mentioned above.. wrong ?
Thanks in advanceThanks for the answers.. I will reframe the question.
I have a jsp with a huge number of html objects.. say "text boxes".. well imagine an excel sheet.
The session time out is set to be 20 minutes in the web.xml.
The user has to go through each and every cell in the page to enter data.. and ideally it will take more than 20 minutes. On change of certain cells or text boxes.. I do have an Ajax call which fetches some data from the server and this feature was not there before.
The organizational security standards does not let me increase the session time out to more than 20 minutes. Since I have these intermittent AJAX calls, I believe that since the server doesnt know whether it is a synchronus or asynchronus request, the session wont time out if the AJAX call happens in between while the user is working on the page. I agree that it is a simple thing which I can test and find out.. but I still wanted to know whether my assumption is right.. before I stick to it.
I am not sure whether I made the reframing look more complicated. Let me know. -
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,
PrashantI 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 -
Hi All,
I am trying to make an AJAX call using XMLHTTPRequest object like this
XmlReq.onreadystatechange = HandleResponse;
myURL = "AjaxServerPage.aspx";
refreshURL = "<pt:url pt:href='"+ myURL + "'/>";
XmlReq.open( "GET", refreshURL, true); XmlReq.send();
on the bold line it stops responding and fails to get the ajax response.
If some one has tried out the same code ....Please let me know....
regards
KumarYou can't concantenate a string to create a PT tag in Javascript as it will not execute. PT tag execution occurs on the server long before the browser gets ahold of the page. Javascript is executed in the browser.
What nrohit says will work if the URL you need to use is static, since, but if the URL needs to be a variable, what you want to use are the ALI Scripting Framework APIs
http://edocs.bea.com/alui/devdoc/docs60/References/api_index.htm
Here you'll will find some functionality to create the gatewayed URL that you're looking for.
Edited by [email protected] at 11/30/2007 8:03 AM
Edited by [email protected] at 11/30/2007 8:05 AM -
No Data retrieved with AJAX Call HTMLDB_GET when using Safari Browser
In my apex (4.0) app i have certain page a which uses JS AJAX htmldb_get to pull some data from an on-demand process using xml structure
var get = new htmldb_Get(null, $v('pFlowId'),
'APPLICATION_PROCESS=get_markerdata', $v('pFlowStepId'));
if (!MEBMarkerdataXML) {// Tabelle mit Kunden leer? Dann aus DB abfragen
MEBMarkerdataXML = get.get('XML');
l_Count = MEBMarkerdataXML.getElementsByTagName("Kunde").length;
I ran into a strange behavior when using Safari Browser (Mac and Windows) when opening the page.
As long as the process retrieves less than 50 rows everything works fine. The data is pulled from the OnDemand Process and delivered to the browser; the XML Data can be selected in JS for further processing
<<<<<<<<<<<<<< HTTP Traffic taken from Safari <<<<<<<<<<<<<<<
Anfrage-URL:http://80.149.218.10:8080/apex/wwv_flow.show
Anfragemethode:POST
Status-Code:200 OK
Anfrage
Content-Type:application/x-www-form-urlencoded
Origin:http://80.149.218.10:8080
Referer:http://80.149.218.10:8080/apex/f?p=41107101:43:1599514482232751::
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
Formulardaten
p_request:APPLICATION_PROCESS=get_markerdata
p_instance:1599514482232751
p_flow_id:41107101
p_flow_step_id:43
Antwort
Cache-Control:no-cache
Content-Type:text/xml;charset=UTF-8
Date:Thu, 03 May 2012 10:19:35 GMT
Pragma:no-cache
Server:Apache-Coyote/1.1
Transfer-Encoding:Identity
X-DB-Content-length:53329
X-ORACLE-IGNORE:IGNORE, IGNORE, IGNORE, IGNORE
<<<<<<<<<<<<<<<<
When calling for more then 50 rows Safaris shows a POST Error -1001 and no Data is delivered.
This occurs only on some Mac's and my Dev WIN-XP PC using SF Browser; never on iPad/iPhone . Never when using FF on Mac or PC.
I googled a lot of different Sources, it seems to be a Timeout Problem when making a long runing AJAX Call. But i did not find any useful hint.
Any Ideas from the APEX & HTTP Gurus?
Regards
PeterIt's just that in my experience htmldb_Get.get() is troublesome for browsers, due to the fact it performs a synchronous request. The browser can do nothing else while it waits for the response. I've seen Firefox really struggle with it in the past couple years. Also, I've seen no good reason to use synchronous XMLHttpRequest calls. As you can see, it's simple to refactor a call to htmldb_Get.get() into a call to htmldb_Get.GetAsync().
For your case in particular, I was just guessing Safari have implemented a timeout to ensure that they don't end up waiting indefinitely for a request that never returns as this would be fatal. You're probably hitting that timeout.
I don't think htmldb_Get is officially documented anywhere, but you can find the source here... http://apex.oracle.com/i/javascript/uncompressed/apex_4_0.js
There is also a pure jQuery way to perform AJAX request, I recommend using this because at least it's documented. Here's a snippet of a typical APEX AJAX request done the jQuery way:
apex.jQuery.ajax({
dataType: "xml", //supports text, xml, json, jsonp, script, or html
type: "post",
url: "wwv_flow.show",
traditional: true,
data: {
p_request: "APPLICATION_PROCESS=get_markerdata",
p_flow_id: $("#pFlowId").val(),
p_flow_step_id: $("#pFlowStepId").val(),
p_instance: $("#pInstance").val()
success: function (data, textStatus, jqXHR) {
// Do your thing in here
error: function (xhr, ajaxOptions, thrownError) {
// Handle error in here
});Then you can refer to great documentation here... http://api.jquery.com/jQuery.ajax/ -
Spinning/loading image for ajax call
Hi,
Is there any way to display a spinning/loading image (the usual one that you see on many Ajax Websites) before getting the result in the following ajax call?
Thanks.
Andy
<script type="text/javascript">
function getUserList() {
var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getUsers',0);
ajaxRequest.add('P2_LAST_NAME',html_GetElement('P2_LAST_NAME').value);
ajaxRequest.add('P2_FIRST_NAME',html_GetElement('P2_FIRST_NAME').value);
ajaxResult = ajaxRequest.get();
if (ajaxResult)
{html_GetElement('UserListDiv').innerHTML = ajaxResult}
else
{html_GetElement('UserListDiv').innerHTML = 'null'}
ajaxRequest = null;
</script>the CPU time is on the DB/application server site.
here are the codes (on page 40):
1.) page HTML header:
<script language="JavaScript" type="text/javascript">
<!--
function f_TestOnDemand(){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=40processlong',0);
get.add('P40_TEMP_ITEM',html_GetElement('P40_TEST').value)
get.GetAsync(f_AsyncReturn);
get = null;
function f_AsyncReturn(){
if(p.readyState == 1){
html_GetElement('P40_TEXT_DROP').value = '';
html_ShowElement('AjaxLoading');
}else if(p.readyState == 2){
}else if(p.readyState == 3){
}else if(p.readyState == 4){
html_GetElement('P40_TEXT_DROP').value = p.responseText;
html_HideElement('AjaxLoading');
}else{return false;}
//-->
</script>
2.) on apge footer text:
<div id="AjaxLoading" style="display:none;">..Loading..
<img src="#IMAGE_PREFIX#/processing3.gif" /></div>
3.) onDemand process:
declare
l_counter number;
l_o_name varchar2(2000);
begin
htp.prn('<body>'||chr(10));
for i in 1..5000 loop
htp.prn('<payload id="test'||i||'">'||i||':'||v('P40_TEMP_ITEM')||'</payload>'||chr(10));
end loop;
htp.prn('</body>');
end;
4.) a html region is created with three items : p40_temp_item, p40_test, and p40_text_drop. a SEND button created in the region with URL target "javascript:f_TestOnDemand();"
so the content from P40_TEST does go to P40_TEXT_DROP (with process wrapped info) and the "loading..." is gone also, if I input the text in the P40_TEST field and click "Send" again, it still works, but I can not move to other pages under the same tab set, and at this moment, the CPU is go very higher by the process.
I can not see any leak around these code. it should go back to normal after "Send".
Thank you.
Jim -
How to replace ajax call with ODataModel?
Hi,
I am new to SAP UI5. I went through the ODataModel api. All I found is, if we want to make use of the ODataModel, we are supposed to bind the model to some control. But what about the cases where we don't want to bind the results we get from the request to server to any of the controls?
Is there any way/method present which would help us to retrieve the data without binding the model to any of the controls?
Any help would be appreciated.
Thanks,
Supriya KaleHi there,
I don't really understand your problem...
What do you mean with "repalce ajax call"? If you want to retrieve data form an ODATA Service, there has to be an request to get the data.
Other question:
If you don't intend to bind the data from the ODATA Service to any controls - why do you want to use an ODATAModel at all?
You can simply get the data from the ODATA Service as JSON, and then work with this JSON object:
var url = "https://s3hanaxs.hanatrial.ondemand.com/p1787990323trial/myhanaxs/hello/services/service.xsodata/tbl_user/?$format=json"
$.getJSON( url, function(data) {
// Loop over json object..
jQuery.each(data.d.results, function(i, val) {
console.log(i,val);
Greets,
ben -
Ajax call returns 200 in IE but 0 in firefox 3.6.8
firefox gets a xmlHttpRequest status 0 for the ajax call for which IE6 get a 200 . The code runs perfectly under IE6. fails (xmlhttprequest==200) in ajax
== This happened ==
Every time Firefox opened
== testing ajax codeI got the same issue, but with Firefox 12. I use this code to call my COMET server:
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) {
//document.getElementById("_receivedMsgLabel").innerHTML += "Non-microsoft xmlHttpRequest object created.<br/>";
alert("Non-microsoft xmlHttpRequest object created.");
return new XMLHttpRequest();
else if (window.ActiveXObject) {
//document.getElementById("_receivedMsgLabel").innerHTML += "Microsoft xmlHttpRequest object created.<br/>";
alert("Microsoft xmlHttpRequest object created.");
return new ActiveXObject("Microsoft.XMLHTTP");
else {
alert("Status: Could not create XmlHttpRequest Object. Consider upgrading your browser.");
//document.getElementById("_receivedMsgLabel").innerHTML += "Status: Could not create XmlHttpRequest Object. Consider upgrading your browser.<br/>";
var sendReq = getXmlHttpRequestObject();
var receiveReq = getXmlHttpRequestObject();
var lastMessage;
var mTimer;
//Gets the server response:
function getResponse() {
document.getElementById("_receivedMsgLabel").innerHTML += "getResponse() called.<br/>";
if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
//if (receiveReq.readyState == 0) {
//receiveReq.open("POST", 'http://tardis:1802', true, "server", "server123");
//receiveReq.open("POST", 'http://localhost:1802', true, "server", "server123");
//receiveReq.open("POST", 'http://holit109:1802', true, "server", "server123");
//receiveReq.open("POST", "http://localhost:1802", true, "server", "server123");
receiveReq.open("POST", "http://L45723:1802", true, "server", "server123"); //must use this URL at work.
receiveReq.onreadystatechange = handleReceiveMessage;
alert("handleReceiveMessage assigned to onreadystatechange event.");
receiveReq.setRequestHeader("Content-Type", "text/x-json");
receiveReq.timeout = 0;
var currentDate = new Date();
var sendMessage = JSON.stringify({
SendTimestamp: currentDate,
Message: "Message 1",
Browser: navigator.appName
//receiveReq.send("<?xml version='1.0'?><Request><Command>Queue</Command><User>user1</User><Message>Message 1</Message><Message>Message 2</Message><Message>Message 3</Message></Request>");
alert("JSON message created. About to send...");
receiveReq.send(sendMessage);
alert("Message sent.");
//function for handling the return message from Comet
function handleReceiveMessage() {
if (receiveReq.readyState == 4) {
document.getElementById("_receivedMsgLabel").innerHTML += "Message received!<br/>";
var status = receiveReq.status;
//document.getElementById("_receivedMsgLabel").innerHTML += "Status received!<br/>";
var txt = receiveReq.responseText;
var receivedMsg = JSON.parse(txt);
document.getElementById("_receivedMsgLabel").innerHTML += receivedMsg.Message + "<br/>";
//var receivedTime = new Date();
//alert("Got current date.");
//alert(receivedTime);
//var receivedTime_ms = receivedTime.getTime();
//alert("Got time message received in ms.");
//alert(receiveReq.SendTimestamp);
//var sentTime_ms = getDateFromFormat(receiveReq.SendTimestamp, "dd/MM/yyyy HH:mm:ss");
//var sentTime = new Date(receiveReq.SendTimestamp);
//alert("Got time message sent in ms.");
//var sentTime_ms = sentTime.getTime();
//var difference_ms = receivedTime_ms - sentTime_ms;
//document.getElementById("_receivedMsgLabel").innerHTML += "Comet took " + difference_ms + " ms.<br/>";
mTimer = setTimeout("getResponse();", 0);
getResponse();
The handleReceiveMessage() event handler is called, but there is no data returned in the responseText property of the xmlHttpRequest object.
Why?
This works fine in IE9. -
Does Ajax call reset session time?
All,
I got a general question regarding AJAX calls. When an Ajax call is made, does that reset session time? I mean, if I set session to expire after 30mins and does not make any server hits other than Ajax calls for 30min, would the session expire?
Thanks in advance.
Edited by: user2865915 on Jun 17, 2011 7:22 AMuser2865915 wrote:
All,
I got a general question regarding AJAX calls. When an Ajax call is made, does that reset session time? I mean, if I set session to expire after 30mins and does not make any server hits other than Ajax calls for 30min, would the session expire?Session is kept alive because of HTTP calls made from the client. Ajax calls are also HTTP requests. So no, the session does not expire. -
I am Server 10.5.4 and my blogs for every group are working fine. Whenever I am trying to do anything with a wiki as soon as the screen goes mostly gray with a little box of information (like Logging in or Logging out or Checking document status...) the browser hangs. There is no information about this in the logs of my computer or the server. It behaves the same on PPC and Intel. It behaves the same way in Firefox and Safari. Any ideas would be appreciated.
Also just wanted to add that the ajax calls are returning with a status of 204. This only happens in safari. thanks again!
-
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 -
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é -
I am trying to find an app that will automatically forward all voice calls at preset times each day
IE - at 083am weekdays
and automatically cancel the call forward at 6pm weekdays
At the moment i am doing it manually with alarms set to remind me
Seems a pretty basic "want" but - i cant find anything
And APPLE - make it easier to find APPS in the APP store - wy not have a search feature that you can type in what you are looking for??
Thanks!!There are no apps to do what you want, that's why you can't find any. No app would have access to the necessary API's to do this, thus only Apple could implement such. You can suggest such to Apple here:
http://www.apple.com/feedback/iphone.html
Another suggestion is to look at Google Voice. I don't know if it offers these specific features or not, but it is highly customizable.
Maybe you are looking for
-
Adding a new record in NAST table via Z program
Hi Experts, I have a requirement in which i have to trigger a SAP Script to send as FAX based on some condition when a shipment is saved by VT02N transaction. The output type which i am using is configured to send fax immediately on save of ship
-
Hyper-V Cluster - VM Heartbeat Monitoring
Hi, Could someone help me understand this. I have a lot of nodes in a cluster, with regards to how failover works i simply want VMs and CSV be moved\restarted on other nodes in the event of total node failure. I do not want the cluster to ever, ev
-
I've had it for a long time but I haven't been using it lately, eventually I forgot the pass code all together
-
Just wondering....and needing help
Hi, just wondering, I started creating a new iWebsite from scratch, and now following things I wonder: 1. On my .Mac account, my page doesnt appear anymore as page 2. The Hit counter on my .Mac page is gone 3. The site is published directly now in th
-
Camino : How to remember last scroll position on previous viewed page?
I am switching from Safari to Camino. Sa far it was a good experience except one issue: When i scroll to half way of a page and click a link, i will be directed to the link within the same tab. After finished viewing the new link, i press the DELETE