AJAX (Asynchronous JavaScript and XML) is a technique for creating seamless interactive websites via asynchronous data exchange between client and server. AJAX facilitates communication with the server or partial page updates without a traditional page refresh.
0
votes
0answers
12 views
Industry Standard code PHP and JSON data via ajax or direct output
I always have problem with these two php code. Both works perfectly and have no problem but i want to ask you guys what is industry standard. Is it ok to flush out html with php this way.
...
0
votes
0answers
6 views
A rails app which gets users location using HTML5 geolocation and saves to data base
Seems pretty simple but I'm struggling.
Here's what I have so far in the view.
I display the location coords just to test its working.
But I also want to persist on Database, hence the ajax call.
Am ...
1
vote
2answers
27 views
ajax $_POST data then redirect to new page
I have been going crazy for the last 2 weeks trying to get this to work. I am calling a MySQL Db, and displaying the data in a table. Along the way I am creating href links that DELETE and EDIT the ...
1
vote
0answers
10 views
How do unit test a function that manipulates DOM based on a AJAX response?
I have something like this:
myScript.js
$(document).ready(function() {
foo(myCallback);
});
function foo(callback) {
$.get("http://mysite.com/rest/bar", callback);
}
function ...
0
votes
2answers
22 views
JQuery - Use load() event dynamically with .on()
I have new articles that are loaded dynamically with ajax and I want to perform something on them when their image is loaded.
All the articles are in a div called #tracks, so this is how I access to ...
0
votes
0answers
8 views
400 Bad Request while using ajax in WCF
I am using a ajax call
$.ajax({
type: "POST",
url: "Access.svc/abc",
data: "{'aa':'"+a+"','bb':'"+b+"','cc':'"+c+"'}",
contentType: "text/xml; charset=utf-8",
...
0
votes
2answers
22 views
Differences with cookies between getJSON and ajax when doing CORS
OK, I have a REST based web service running in my tomcat JEE servlet container.
I am writing a jquery client that is from another domain and is therefore using CORS. It hits the login web service, ...
0
votes
2answers
22 views
Issues when I try to mix AJAX variable to PHP
So I'm trying to make the simplest of communications between AJAX and PHP, and send a single variable to my PHP, where it will be stored, but nothing seems to work u_u
This here is my AJAX code
...
0
votes
2answers
12 views
pass array in the “data” tag at server side - bootstrap ajax call
I am not able to figure out if i can send a array in the data tag:
My client JS code looks like :
$.ajax({
url: '/mobiledoc/jsp/aco/Beneficiary/ptmmview.jsp',
...
0
votes
1answer
14 views
updating a div partial in rails after submitting form via javascript
i have a table named whatsup, and also users, and its implemented in such a way that whatsup belongs to user,
i have made it possible for users to create whatsups via ajax like this
...
0
votes
1answer
7 views
module prestashop view details of orders
salam
i want to view details of orders like the one in history orders
i user the history.js but i dont get the page that view details orders
here is some code
{foreach from=$orders item=order ...
0
votes
0answers
23 views
Simple HTML5 and AJAX PHP Authentication Scheme?
After much researching about purely client-side authentication with AJAX for a PhoneGap app I am making, I thought of a simple authentication scheme for writing data through AJAX. I was wondering what ...
0
votes
0answers
8 views
Why can't I pass arguments in my Django Dajaxice function call?
When I use the example:
args = {'a': 3, 'b': 9};
Dajaxice.dash.multiply(Dajax.process,args);
I get an alert "something goes wrong" on the client.
I traced this to the receiver side (on the ...
0
votes
0answers
12 views
Reload treeview and open in one place - Dynatree
I'm trying to recharge my treeview using dynatree and expand in the same place where I left off, but I can not.
I'm carrying it whole, making a query in mvc using oracle and returning a shortlist ...
0
votes
1answer
34 views
Why is only part of javascript returned in ajax response executed correctly?
I construct response to my ajax request with html followed by javacript in a tag. When getting the response, the retrieved data is appended to a node. The weird thing is, part of js in the tag is ...
0
votes
0answers
9 views
User authentication through REST web service using Jason
I have to authenticate restful web service using the json data from my Restful webserver. I am novice to Webserver. I will appreciate your help.
Thank you.
0
votes
0answers
11 views
Can't access files directly in browser or with AJAX - Opencart Installation
I have a custom php script that I'm trying to access via AJAX, and i get a return of 404 in browser or via AJAX. I've been able to access custom scripts via PHP in the current environment. Strange? ...
0
votes
1answer
11 views
AjaxToolKit - AjaxFileUpload Button 'Upload' Failure
I have done quite a bit of searching, and tried many different options. Haven't even seen any other person who has been having a similar problem.
I have the the following code placed into my page and ...
0
votes
0answers
10 views
Ajax call Not Redirecting to Controller
I'm Working with Asp .Net MVC3,using the follwing jquery
$(document).ready(function () {
$('#srch').click(function () {
var Geo = $("#geo").val();
var Vertical = ...
0
votes
0answers
11 views
how to call ajax method recursively
I have a problem in my ajax call.
In the below code, pageReload() function is automatically called when the page gets loaded which in-turn calls the ajaxCall() function for every 10 seconds.
I'm ...
0
votes
1answer
13 views
Cross domain jQuery $.ajax request fails for PUT (Method PUT is not allowed by Access-Control-Allow-Methods.)
I am doing cross domain requests via jQuery's $.ajax to access a RESTful PHP API.
In order to do so I have set the following headers in PHP:
header("HTTP/1.1 $code $status");
header('Content-type: ...
0
votes
1answer
32 views
How to mention URL while submitting ajax form?
I am using HTML/JQuery/AJax to call a servlet. I am submitting a form to servlet. But it always gives 404 saying resource not found. i have maven project.
I have Servlet in src/main/java package is : ...
0
votes
0answers
25 views
ajax loader not working in chrome?
I have a problem in "Ajax Loader image". On Firefox it is working fine but on chrome that ajax loader image does not seems.
I have a some attributes on sidebar when I check any attribute Products ...
0
votes
0answers
3 views
how to access membership information of logged user from generic handler?
I do my operations through generic handlers(.ashx pages). I save the session variables by cookie and intheriting from IRequiresSessionState
if (Membership.ValidateUser(context.Request["name"], ...
0
votes
0answers
14 views
jQuery Masonry infinite scroll and ajax search mutual exclusive behavior
I have a jQuery Masonry installed in my rails app with infinite scroll plugin. I also have ajax search form. Everything works fine as long as I scroll down and fetch items - they are rendered ...
0
votes
0answers
6 views
Woocommerce custom cart display in dialog box
I'm developing a theme for woocommerce plugin (2.0.12) in wordpress (3.5.1).
In our woocommerce theme when I want to display cart details by using jQuery dialog loading with ajax. For the ajax code, ...
0
votes
0answers
17 views
jquery ajax async issues, when its set to false it works but setting it to true fails
Hey everyone I am having some issues with an ajax post when I flip the async from false to true. Does anyone have any suggestions to correct the post?
The post works fine when I have async set to ...
-2
votes
0answers
31 views
Editing the table using ajax [on hold]
How can i edit my table in database using Ajax? I have already stored some data in Data Base.Actually i kept Roll no as a search option, I have Entered some concern person roll number and now I am ...
1
vote
3answers
73 views
How to get javascript values on code behind in c#
I need to get javascript values on code behind in c#.I know i can use hidden field but there is no server control on page for postback.Please tell me how can get vales in code behind.
Here is my ...
0
votes
1answer
23 views
Send Json from PhoneGap to remote php Server
i try to send a json Array via Ajax to a remote PHP Server, but i only get a "ParserError".
Thank you
Ajax
$.ajax({
dataType : 'jsonp',
jsonp : 'jsonp_callback',
data : {
button ...