Tagged Questions
-1
votes
2answers
35 views
Javascript: handle click of alert box
I would like to catch the click of an alert box and reload the location at this point. Currently I have reload at the end of the function which is not the desired behaviour
function myFunction(url, ...
1
vote
0answers
22 views
ExtJS 4.2.1: Cannot retrieve HTTP Response headers upon Ext.ajax.request callback
I'm trying to read the headers of the coming response upon Ext.ajax.request.
Here it is the code:
Ext.Ajax.request({ url: 'http://localhost:3000/v0.1/login' ,
method: 'POST',
scope:this,
...
0
votes
1answer
24 views
Text fields don't get updated using the browser back button
I have been looking for information about this but I don't get with the solution.
I have some text fields on a page which I get updated on blur making use of jQuery events.
There's no form to submit, ...
0
votes
1answer
48 views
socket.setTimeout() in node.js
I trying to implement http server based on net module.
I need to implement keep-alive in it, so I call to sock.setKeepAlive(true) and then sock.setTimeout to close the socket after 2 sec timeout.
Here ...
0
votes
1answer
46 views
Fetching data from a webpage with asynchronous postback with javascript or c#
I just wanted to fetch some useful data from a webpage. This webpage is using asp.net with UpdatePanel. When I do it manually, it takes me to follow to steps to get the required data. In the first ...
0
votes
0answers
47 views
How to download a pdf file through javascript?
My javascript code makes the following AJAX request to my node.js server:
var url = '/node/download';
var downloadRequest = new goog.net.XhrIo();
downloadRequest.headers.set('content-type', ...
1
vote
1answer
70 views
JQuery Ajax POST - Request Body not showing up in Raw HTTP Request
I have a REST service API that I am trying to access from Javascript that includes GET and POST HTTP requests, and I am having difficulty getting the POST commands to word from Javascript that contain ...
0
votes
4answers
62 views
jQuery clicking event not working at all in Firefox
This problem has been a thorn in my side for a month now. If anyone can figure it out, I'd be very, very, very thankful.
This works in Chrome but not FF.
Earlier I thought this was a problem ...
-2
votes
3answers
55 views
Periodic javascript in the browser for sending Http req [closed]
Here is the case :
I am accessing my portal and there is one button Go to Suite. By clicking that button i will redirected to suite page without login (single sign on-sso is there). Now for keeping ...
0
votes
0answers
11 views
Consuming and log xml post request on node.js
Hi all im very new with js and node.js in general.
I pretend to keep a live a service that consumes simple http post requests with xml messages and log then to simple txt files or xml files, or if ...
0
votes
1answer
29 views
Identify 400-request with ajax
I'm having the following problem:
I am grabbing tweets from twitter, using their API. Whenever I've hit the limit of requests, it is returning me a 400 (Bad request) - reply.
Now, how can I find out ...
0
votes
1answer
16 views
Open http in a popup with indexOf function
I am learning indexOf function in javascript and i just have a question. Does anyone of you know, how i can get http://www.youtube.com with indexOf and open that in a popup to play the youtube video. ...
0
votes
3answers
91 views
Load from cache with window.location.reload and hash fragment in Chrome doesn't work
I need to reload the page in Javascript. I use window.location.reload for that purpose. Now, I observe a strange behaviour in Chrome: Chrome always connects to the server and asks if the document was ...
5
votes
2answers
53 views
Node.JS Wait for callback of REST Service that makes HTTP request
I am using express module to make a Restful API within Node.JS. In my service I am making additional http requests to outside Endpoints(server side) and I need to return the data from those http ...
0
votes
1answer
73 views
Node.JS function the returns http response value
I need to call a function that makes an http request and have it return the value to me through callback. However, when I try I keep getting null response. Any help?
Here is my code:
var url = ...
0
votes
2answers
22 views
Does the HTTP referer always end at the top-level domain?
I'm assuming the answer is "no" but I haven't been able to find confirmation.
If it varies based on language, I'm interested in both the HTTP headers (e.g. PHPs $_SERVER['HTTP_REFERER']) and JS's ...
0
votes
0answers
14 views
http request beforeunload javascirpt
I am working on web analytics, Have to collect the user clicks (clientx,clienty,tagname,value,etc), I have collected the data and pushed in one variable, Now i got struck while sending the data to ...
3
votes
1answer
43 views
How do I get the height of an element after it is populated by angularjs?
I'm doing a $http.get to get json data, which is then used to populate the views with something like
$scope.getIdeas = function() {
$http.get(ideasUrl)
.success(function(data) {
...
0
votes
4answers
59 views
Is the source code presented on view source in browser always accurate/complete?
I have a problem with an specific web page. When I press on a link I got an application error (not http error etc but application level error).
But I had the developer tools and net console open and I ...
0
votes
2answers
36 views
Redirecting and executing javascript
I was wondering if it is possible to create a website in which pressing a botton, it redirects you to another and executes a piece of javascript. All should be triggered by the same button.
Here an ...
-2
votes
1answer
30 views
javascript in 200 ok http response [closed]
I have two javascript file ie 1.js and 2.js. Both files are having 1000 lines of javascript code.
I need to include these js in the 200 OK HTTP successful response.
Please give me some pointers to ...
0
votes
2answers
46 views
Is it possible for a web server to obtain a TOR browsers real IP with only Javascript?
Is it possible for a web server to obtain a TOR browsers real IP using only Javascript on the client and server side scripting on the server (cgi/perl/python or whatever)? If so can I see an example ...
0
votes
2answers
101 views
Show spinner on multiple $http calls angularJs
This is the deal.
I what to show a spinner when doing a $http call, but the problem here is that I have multiple calls at ones, so the examples I found here didn't help.
Did anyone have a solution ...
0
votes
1answer
38 views
Ajax Sending HTTP Request Twice?
OK,
I am making A ajax login form great progress so far thanks to A few users on stack flow so far.
Now when I check all the fields out if it responds to enter being pressed it is working fine ...
0
votes
0answers
45 views
What is the optimum size for a minified JavaScript file? [closed]
Assuming an entire JavaScript code-base is minified into a single file, at what file size would it be more efficient to breakout the single minified file into two so that the files can be downloaded ...
0
votes
0answers
32 views
How to mock only a specific http resource (URL) in Angular
I'm working in a team split into front-end and back-end developers. Sometimes, the front-end wants to make some REST requests to a http address / REST-resource that isn't yet implemented.
In ...
0
votes
2answers
99 views
HTTP GET not working in AngularJS?
Here is my controller, being served from localhost port 80:
function ListCtrl($scope, $http) {
$http.get('/api/moz').success(function (data) {
$scope.moz = data;
});
}
And the ...
0
votes
3answers
65 views
Angular directives and server requests
I'm just wondering is it a good practice to make http GET request to fetch data inside an angular directive? Directive's behavior is dependent on that data.
So the main complexity is to get it before ...
0
votes
1answer
30 views
How to initialize a char array to accomodate the HTTP POST Content-Length
I'm writing an HTTP server (for learning purposes). Once I receive an HTTP POST request, I want to print the parameters that were sent by the client, the problem is that I'm sending "name=Marcelo" and ...
-2
votes
1answer
53 views
Learning how to use http requests and javascript [closed]
Say I have this request,
GET /api/pollstar.asmx/functionHere?parameter=value¶meter=value HTTP/1.1
Host: data.pollstar.com
I have tested this with the Postman client and know that it returns ...