AJAX (Asynchronous Javascript And XML) is a popular technique for creating interactive websites.
8
votes
5answers
723 views
How do web servers enforce the same-origin policy?
I'm diving deeper into developing RESTful APIs and have so far worked with a few different frameworks to achieve this. Of course I've run into the same-origin policy, and now I'm wondering how web ...
0
votes
0answers
25 views
AJAX event, prevents other page actions
Here's a fairly average scenario, using JSF as an example, but this same concept I have observed in ASP.NET, Apache Wicket, and other frameworks with ajax capabilities.
<h:inputText id="text1" ...
0
votes
0answers
40 views
Technique to deal with occasionally blocking json api?
I have a web app that occasionally (after some idleness) will block a very simple request for small chunks of data (30~50 kb) up to 20 or so seconds. Assuming I can't refactor or modify the API, is ...
4
votes
1answer
169 views
Is there a name for web applications that do most of the navigation on the client side?
Does the web industry have any standard or common name that refers specifically to web applications that don't use the conventional window-HTTP-navigation model, instead relying on mostly or wholly on ...
1
vote
2answers
147 views
Can REST, Ajax and jQuery work well together?
I'm trying to use REST (usign spring MVC) as my Ajax backend but got some problems when using it with jQuery. REST best pratices recommend using HTTP status code, e.g. 200, 403, 401, etc, and I have ...
2
votes
1answer
114 views
How to check for vulnerabilities in web application [closed]
I have developed a web application using zend framework, mysql, and other client side technologies like javascript, jquery ajax, kendo grid, and so on.
I have completed development and have done ...
0
votes
0answers
63 views
Javascript: initiating file download and routing file off via POST
Every so often (seems about once a year) I get a chance to play with JS.
While not proficient, I'm comfortable enough to get the job done if I have some good references.
At this point, I feel like ...
0
votes
1answer
149 views
can I use XML for AJAX in a website created using HTML5
I am new to web programming and just started learning XML and AJAX. I am creating a social gaming website for my college project. I am confused at the point of using XML for AJAX in HTML5. As XHTML is ...
2
votes
1answer
175 views
best way to store data from ajax call
I am writing a web-application in which I am retrieving data's from server through AJAX requests and the generate HTML content dynamically.
I have some data to load, generate HTML from it and append ...
0
votes
2answers
425 views
Inserting HTML code with jquery
One of our web applications is a page that takes in a serial number and various information is returned and displayed to the user. The serial is passed via AJAX, and based on the response, one of the ...
1
vote
3answers
200 views
Is it good idea to change complete enterprise level application into ajax web app [closed]
I am working on an application which is completely written using server side method in asp.net web forms with c# .
Now my team lead wants to convert whole application to ajax , in that approach we ...
-4
votes
1answer
422 views
Online & Offline in Web Chat Application [closed]
I stuck amidst developing a chat web application using php for client side app. I used comet for chat application.
And use technique of updating database when someone logout. Thus display offline on ...
0
votes
4answers
211 views
Do I need a database to implement AJAX functionality for my app?
I am new to the construction and design of a web app so I'd like some advice please (Django is my framework). I'm trying to code up a "how-to" website instructing users the step-by-step process for ...
-4
votes
3answers
666 views
when to use REST vs AJAX [closed]
On my web page if i wish to display dynamic dropdowns (e.g city names based on country selected) I can do it using AJAX.
But I can also do it using a REST call. So what should i use?
My problem is ...
0
votes
0answers
89 views
Async function iterated calls
I'm new to using async calls in ajax. My problem is that I have two server "tasks": one that just checks if session is set (fast), and another that sets the session (slower). I want to check if the ...
1
vote
2answers
200 views
What's the best approach to handle javascript/ajax code in a project?
In a general sense, for medium/big projects, what's the best way to handle javascript/ajax code?
Is it better, to have a script file where to put each script or, to add the script directly into the ...
1
vote
1answer
129 views
Ajax - Responding business errors
This might sound like another of those questions with "best way" or "best practice" but I couldn't find anything related that could give me some light.
The scenario... I have some ajax calls. ...
1
vote
3answers
222 views
How can I return generated HTML and a response too?
My web application will use AJAX calls often and so I have set up some JavaScript to handle "messages" or "responses". These responses are returned (from my ASP.NET application) as JSON objects that ...
2
votes
3answers
107 views
Are there algorithims for polling optimization?
I have a web-application with an async HTTP backend, which gets called by the client by AJAX requests. The client has to start a job and then polls for the result.
I started with a simple 150ms ...
0
votes
0answers
25 views
Digg Ajax API from digg.com
I am following Chapter 3 of WordPress 3 Plugin Development Essentials
from Packt Publishing. There they reference a Digg Ajax API that can
be embedded in HTML to allow users to digg or bury posts up ...
1
vote
1answer
80 views
Object schemas shared between web services
My question is about how to create a definition for an object that is handled by different web services.
A brief description of my current scenario and why I think it's a problem:
A PHP web ...
3
votes
2answers
265 views
Displaying items with a countdown timer
I am creating a widget for rotating topics. The functionality is as follows:
Each topic is displayed one by one on the homepage and has a duration of 30 seconds.
A countdown timer is displayed on ...
-2
votes
1answer
124 views
Will I need to use AJAX for this?
Say I have a model written in php whose properties are the columns of a table in a db and each instance of the model represents a row in the table. I also have a page ('view') where I display the ...
0
votes
3answers
173 views
What should I do in AJAX or PHP?
Since I discovered the joys of AJAX, I tend to do all my requests to the server using AJAX. Is this a good idea?
According to you, what should I do in PHP and what should I do in AJAX?
I like to do ...
1
vote
3answers
121 views
Javascript and web application data
I am pretty new to Web Application programming and so to OOP Javascript and the new Client-Server interactions.
I am encountering some trouble wondering about how much AJAX I should use or how much ...
2
votes
2answers
122 views
Why should I should url routes to the user in a single page application?
Why a single page application is a desktop client replacement why should I show certain url`s in the url bar of the browser.
Why is mysite.com not enough.
My question to you guys is now:
What are ...
0
votes
3answers
226 views
What tools can I use for professional document-creation and -printing in PHP? [closed]
I'm in the process of building a new pledge management system for one of my clients, a charity foundation. I have already built one for them (it was done using Delphi), but its feature-set is a little ...
0
votes
2answers
181 views
Converting a user management system to use ajax
I am currently building a website, which until quite recently was purely PHP. However I am now making trying to have the site use more AJAX, to lessen the page reloads. In PHP I had a lovely object ...
3
votes
3answers
334 views
What are best practices for caching paginated results whose ordering/properties can change?
What is the best practice for caching paginated search results whose ordering/properties can be changed?
Say, in my application, someone wants to see the last 20 discussion threads (out of 10,000). A ...
36
votes
6answers
2k views
How safe are hidden AJAX requests that fake performance?
What is a hidden AJAX request?
I've noticed an increase in the usage of hidden AJAX requests designed to make a user's action appear to happen immediately. I'll refer to this type of AJAX request as ...