I have something like a blog where user adds a new post the new post is shown together with the others (all the requests to the server are using $.post)
on IE8 everything works super (A robot would have the possibility to add 10 posts a second)
but on other browser the time until the new post appears is 0.5 ~ 1 sec
anybody knows why ?
...
Facebook uses Ajax links to change parts of their pages in order to keep the load time down. But if you disable JavaScript, their links still work. That's because they've also defined a backup option: the classic <a href="http://url/".
How can I implement this myself so that the link will be followed when JS is disabled and the onclick ...
Hi,
I'm just wondering how can I display both individual error messages and summary for the jquery plugin, I actually found a similar question but it just reference some hooks I can use, but I'm not sure where to start,
I got the displaying individual error messages part, but I need to display the summary in an alert box on submit, plu...
I'm doing small AJAX searchbar with "new google.search.WebSearch();" from Google AJAX Api.
How do i can cancel an ongoing ajax request?
I usually do a:
var xhr;
function Something() {
xhr.stop();
xhr = $.get ....
}
in jQuery.
What is the equavalent for the Google websearch object?
...
I have used YUI's(2.0) file upload feature to upload file asynchronously which work using IFrame technique. There is also SWF/Flash based solutions available.
Now i have come across ASP.NET Ajax control AsynchFileUpload now this is something new to me. I tried to find more information to find more inputs on this but probably missed or f...
I am writing some code to give live feedback to the user on the validation of a form using AJAX. I have got it checking length and if the field is empty. Now I want it to sanitize the users input and if the sanatized input differs from the users original input then tell them which characters are not allowed.
The code I have written so f...
Hi all,
Surprisingly, I didn't find any answers to my question.
I want to make a form on jQuery with two fields.
City Code.
City Name.
and when I enter a city code and go out of the field.
I want an autocomplete on the city name.
I Installed the jQuery Autocomplete plugin.
and I have the following code :
$(document).ready(functi...
I'm developing an ASP.NET 3.5 application which uses AJAX via the UpdatePanel control. I'm also using History Points to manage the browser back-button functionality. This all works fine until I want to navigate away from the page and back.
Within the page I'm clicking on a standard hyperlink which opens another page in my applicatio...
i want to chek is the user is loggedin before hitting the ajax request
or i want to chek in ajax handler(ashx file)
i have httpContext there in ashx file
can i chek thru dis?
...
I have a long document in XML from which I need to produce static HTML pages (for distribution via CD). I know (to varying degrees) JavaScript, PHP and Python. The current options I've considered are listed here:
I'm not ruling out JavaScript, so one option would be to use ajax to dynamically load the XML content into HTML pages. Edit:...
I have a function
$.post('php/client.login.php', {username:username, password:password}, function(json){
var ids = json;
alert(json.id);
}, 'json');
Which returns undefined, the json data i am trying to read is this
[{"id":"8","client":"sam","email":"sam","username":"sam","password":"sam","ca...
function createXMLHTTP() {
xmlhttp = =new XMLHttpRequest();
return xmlhttp;
}
I'm trying to create 3 instances of this, but it all has the same variable name which is xmlhttp. How can I dynamically create different variable names? I'm not sure if that's the right way to ask the question.
I want to create like xml...
To return an error from a $.ajax call, there's gotta be a better way than echoing an error in the ajax.php file and then trimming it!
this seems very clumsy and in-robust:
success: function(e){
var e = trim(e);
if(e == 'SUCCESS')
{alert('your password has been changed!');}
if(e == 'ERROR1')
{alert('pleas...
I have an array:
myarr = [];
I'm filling it with some values:
myarray['name'] = "Me!";
Now I want to transform that array into a set of Key => Value pairs. I though jQuery would do it automatically, but it doesn't seem to.
$.ajax
({
type: "POST",
dataType: "text",
url: "myurl",
data: myarr
});
Is there a way to d...
In ASP.net web service if the above isn't specified , what is the response format by default?
Also, if my web service below:
[WebMethod()]
public List<Sample> GenerateSamples(string[][] data)
{
ResultsFactory f = new ResultsFactory(data);
List<Sample> samples = f.GenerateSamples();
re...
I have an AJAX sample code from W3Schools, where if U request an AJAX call to remote server the request fails:
function loadXMLDoc() {
if (window.XMLHttpRequest) {
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else {
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTT...
for some reason the success function isnt being called?
javscript:
$.ajax({
type: 'POST',
url: 'http://localhost/hf_latest_desktop/st_pages/user_area/acc_buttons/pass_change/pass_change_ajax.php',
data: data,
dataType: 'json',
success: function(e){
console.l...
Let's say that you have a presentation tier in JSF, and that your business tier is accessed using web services. How would you call your web services from JSF?
I was considering to have my backing beans to call the web services, but I just though I could use Ajax with JSF in order to connect to the web services. What would you choose a...
Hello! Thank you for looking at my issue, hopefully you can help me out as I'm an not well versed in writing JavaScript functions and am relatively new to using jQuery...
Anyways, I need a way to use jQuery's ajax call to asynchronously call a php script which will return a value and update the value in a header element.
Anyone know of...
I have looked everywhere and surprisingly can't find a good solution to this! I've got the following code that is supposed to read a text file and display it's contents. But it's not reading, for some reason. Am I doing something wrong?
FTR, I can't use PHP for this. It's gotta be Javascript.
var txtFile = new XMLHttpRequest();
txtFi...