JQuery :: Multi Request Ajax At The Same Time
Aug 15, 2010
i has a page that has three tabs . when user access page three tab get content by ajax. i want to get content three tabs at the same time. what should i do? And i try to addsortable for my tabs but i don't work as i want. i want when i move tab everything in tab move together. this is my prolem [URL] $(".tab").sortable({connectWith: '.tab'}); i want my tab sortable like [URL]
View 5 Replies
ADVERTISEMENT
Jun 2, 2009
I worked with now in jQuery. Property however at present the following problem: [i]I provide a AJAX Request. the side is loaded, the parameters all conveyed and back receives I a complete HTML side. Now I would like to have only certain elements however from this side, like DIV, SPAN etc. How can I make with the AJAX Request return in such a way best, which I can select these elements thereby? Simply it would be unfortunately not functioned over the function $ (element), it even if I indicate the HTML Request as secondly parameter.[/i] Excused, for my bad English. ;-) Translatertool. There is unfortunately too many words, in order to describe my problem. ^^
View 2 Replies
View Related
Dec 25, 2010
Working on some jquery examples which use the same div id name multi times in a document. I notice only the first div id with the same name animate and the others don't. I would like all of the header id names to animate not one.
[Code]...
View 1 Replies
View Related
Oct 16, 2010
I have a php page which returns a table representing a query sent to a MySQL database. So far it has worked in every case except now that I'm trying to use it to call a stored procedure, in which case the readystate is staying at 1 and never completing.
I have logged the results of the php file both in an error log and looked at the response from the request using firebug, both of which show a correct result.
Why isn't this returning properly?
Here are the relevant javascript functions:
Code:
function customizeType()
{
$("custom-header").innerHTML = "";
$("custom-top").innerHTML = "";
[Code]....
After the page loads, the error log shows correct results for all queries.
View 1 Replies
View Related
Oct 24, 2009
I'm using some jQuery to work with the Last.FM API, and I'm stuck where I need to allow the user to run the JSON request a second time after the page loads (it loads once automatically when the page loads, the second time is when they push a button). What happens currently, is the JSON function is fed some default data when the page loads:
$('#graph').lastFM({
username: 'UserName',
from: 1254369600,
to: 1256184000,
apikey: 'myApiKeyHere',
onComplete: function(){
//Done
}});
The JSON function:
$.fn.lastFM = function(options) {
var defaults = {
username: 'Verdani',
apikey: 'e4f3bb251d13179bf7ce80a089fb3d0c',
onComplete: function(){}
},
settings = $.extend({}, defaults, options); .....
You might have noticed in the JSON, I write the URL the JSON is requesting to the console every time it runs. When I click this button, a new URL pops up in the console below the first one but only for a second, and then the page reloads and the original JSON request is called. It's this loop that I can't seem to break out of - why does re-calling the JSON refresh the page?
View 1 Replies
View Related
Feb 16, 2010
I'm using ajax to grab a response from a PHP page, on success, the ajax sets a variable. After the line that calls the ajax function is the line the returns the variable (a global variable). Problem is, because the variable is returned right after the ajax function is fired, it doesn't give the ajax enough time to set the variable. The work around I've thought about would be using the ajax function as a variable, and returning that variable in the initial return line.
Here's some code for reference:
The function that will return the response I'm trying to collect:
The ajax code:
View 2 Replies
View Related
Jun 3, 2010
I have a search form that uses AJAX to fetch data and populate a table. Several of the search fields are multiple selects. Problem is, only the first option is getting passed thru to the PHP file called by the AJAX function.
var fs_users = $("#users"), fs_status("#status"), fs_roles("#roles"), ...;
var fs_allFields = $([]).add(fs_users).add(fs_status).add(fs_roles)...;
$("#fsSearch").click(function() {
//alert(fs_roles.val());
[Code]....
For debugging purposes, the target PHP file ("fetch_data.php") dumps the $_POST and $_GET variables to a file. As mentioned, only the first option from the multi-selects is getting passed thru in the $_POST variable ($_GET is empty as expected). The alert (line 4) will correctly display a comma-delimited list of all the selected values (also verified via Firebug while stepping thru the code). Someone in another thread suggested using serialize() (e.g. line 9 becomes "fs_allFields.serialize()", but that caused NOTHING to get passed thru.
Maybe I've been staring at it too long and there's a simple fix is right in front of me, but I just can't see it.
P.S. I'm using the latest versions of jQuery and jQuery-UI.
View 1 Replies
View Related
Apr 21, 2011
I'm writing an application with PHP that let me have statitics about visited pages for my web site. to save informations needed i use an ajax query with the unload event. The problem that i have is titme to time the script uses with that ajax query doesn't work especially when i stay long time in a page.
This is my code?
Why it works most of time but sometime doesn t work? is there any specifications to take for the unload event ?
View 11 Replies
View Related
Aug 15, 2010
I am trying to make a fuinction that, when called, will return the string that is retrned in text form from my php code.
This is what i currently have, but it is just failing when it is run, what am i doing wrong?
function shortenUrl(url) {
var response;
varxmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", "http://10.1.1.10/projects/short/?ext&url=" +
[Code].....
ohh, and this is running chrome, so no standards issues :D
View 2 Replies
View Related
Jul 2, 2010
i want to find out the idle time when there is no http request is going on..i dont want to track any mouse or key board events.i dont want that..i read these thread but it is only about screen idle time URL...i am trying to track the time when there is no transaction going between client and server and no http request is sending if i will get that time then that time i can use to load my additional javascript files.so further transaction of user will become speed up..
View 2 Replies
View Related
Jun 1, 2011
I was wondering if there is a way to find the total round trip time of a request. Addins like firebug and chromes console show you this round trip time but i was hoping there was a way to extract it from the response itself.
I would also like to know the response time from when the server sent the request and the client received it. I do not think this is possible since the server and client have different timing systems but it would be very useful.
View 3 Replies
View Related
Jun 1, 2011
I was wondering if there is a way to find the total round trip time of a request. Addins like firebug and chromes console show you this round trip time but i was hoping there was a way to extract it from the response itself. I would also like to know the response time from when the server sent the request and the client received it. I do not think this is possible since the server and client have different timing systems but it would be very useful.
View 2 Replies
View Related
Nov 29, 2011
i am making a request using Ajax (JQuery) and it keeps repeating the request, it almost seems like it is inside a loop even though it is not inside a loop.
jQuery.ajax({
type: "GET",
cache: false,
url: "<?php echo Yii::app()->request->baseUrl; ?>/member/updatememberinfobox/query/",
[Code]..
View 5 Replies
View Related
Nov 29, 2011
I have the following test-script working:
$(document).ready(function(){
$('#up').mouseenter(function() {
$("#results").append('<div id="test123"></div>');
$.ajax({
url: "http://someurl.de/some.htm",
[Code]...
View 2 Replies
View Related
Jul 13, 2010
Is there an way to cancel AJAX request?
View 2 Replies
View Related
Oct 13, 2009
XP IE6 virtual PC for test, latest version of jquery the browser hangs after an ajax request. $.get("/myurl", {random: $.random()}, mycallback); I read that IE6 hangs for some cache searching stuff, that is why I added a randomstring with my $.random() but keeps hanging the browser.
View 1 Replies
View Related
Nov 17, 2010
I have a problem with ajax URL, I need to change and append "/" before the reale URL. Below the example ajax request:
$get("mypage.php"......
I need to append "/" before mypage.php, and so modify the ajax url request. I tried with ajaxSetup beforesend without success...
View 2 Replies
View Related
Jan 25, 2011
I'm writing a little application with JSF 2.0 + jQuery. My page contains a simple input form, a submit button and a div containing one div for each string that the user type in the input text field. i'm using JSF 2.0 ajax to send the request to the server and rerendering only the div-container, with the updated content. Initially the div contains a single div with a text example for the user. Every div inserted by the user has the style-class "user", so with jquery I manipulate all off them through a simple function.
Here my code:
But i've encountered this problem when I started using ajax: my jquery function doesn't work on the new content, so I started trying to resolve the problem with live() method as suggested in the FAQ and on several posts
So my code changed a little:
This code doesn't work at all after the submit event, so for test purpose only i've changed the event to click and ,using the event generated from the mouse click, it's working.
But obviously i need to apply my jquery function right after the ajax request and without the user's partecipation.
I'm testing this code on Firefox 3.6.13, but i need it to work correctly also on IE8, Chrome 8 and Opera 10
What's wrong in my code?I have bound the wrong event to the div-container and instead I have to bind the submit-event to the form?
View 2 Replies
View Related
Nov 22, 2010
I use JQuery validation plugin to handle my forms, and I'm using the remote
option for some inputs, aside from the usual 'true/false' to detect if the field is valide or not, I need to get a php variable generated on the server, but I don't know how to do it
View 1 Replies
View Related
Aug 11, 2011
I am struggeling to get an ajax request to work. The main issue here is that I can't fill in a select box from jquery for some reason. I was working before without jquery and used the method innerHTML() to paste options into the box, which worked fine, but now it's stuck. Here is a snippet of my code
function showResults(source){
var xmlData = $.ajax({
url:source,
async:false
[Code].....
I call showResults() on window.onload and debugging with firefox shows me that everything works fine, but the insertion, the browser just steps over the last line without inserting anything. The particular html code is
<select id="list1" size="6" class="box190" multiple="multiple"></select>
I am trying now since yesterday various variations, but none of them worked.
View 3 Replies
View Related
May 11, 2007
I'm trying to update my page with either a yes or a no, I'm using Ajax for the request to the server. The request works perfectly, however when I try to update the DOM with the server response using $(this).text(response.waiting); and $(this).html(response.waiting);.
I've tried alert(response.waiting); and returns a valid response. So, the problem probably stems from the DOM.
$("#data a.waiting").each(function(i){
$(this).click(function() {
$(this).html('<img src="../img/loading.gif" id="loadwait" alt="Loading..." />').fadeIn("slow");
$.ajax({
type: "POST",
url: "waiting/ajax/",
data: "id=" + $(this).attr("name"),
dataType: "json",
success: function(response) {
$("#loadwait").hide();
$(this).show();
$(this).html(response.waiting);
}
});
});
});
View 1 Replies
View Related
Jan 14, 2011
So I have an odd round about fix that i'm using to get data from one server to another. First I have a classic asp file that does an http request to a different server (it's all on an intranet so I can't share the exact code) like this:
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
xml.Open "GET", "https://www.externalurl.com/getData?value1=this&value2=that", False
xml.Send
Response.Write xml.responseText
Set xml = Nothing
This external URL returns an XML document that's written on the page. Pretty basic stuff.
Then I created another page with this jquery:
[Code]...
View 1 Replies
View Related
May 24, 2010
I'm really having trouble to put it to work in Chrome. It runs great in IE and Firefox.
Here is the code:
The return of get_xml_oid.php is in XML.
Chrome Error: Uncaught TypeError: Object #<a Document> has no method 'search'
View 2 Replies
View Related
Jun 7, 2010
I'm busy making a project which needs to be ran locally. It has to work on Firefox only.
I've ran into the problem I can't load local XML files from another directory then the html file is located.
When I try loading XML trough an ajax request with the url "content.xml" everything works fine. As soon as I want the XML to be loaded from another folder, e.g. "../../../content.xml" it doesnt enter my success function.
$.ajax({
cache: "false",
type: "GET",
url: "../../../content.xml?r=" + Math.random(),
[Code]....
View 6 Replies
View Related
Mar 22, 2010
i have a very simple ajax request, on Chrome and FF, IE 8 it works very well. IE 8 returns "error", "complete"
the content /test.php :
<div>test</div>
Ajax request:
$(document).ready(function()
{
$('#test').click(function(){
$.ajax({
[Code].....
View 4 Replies
View Related
Aug 4, 2011
I have a webpage that makes a request to my server to get news posts. The request is made by using $.ajax(). If I change the page (e.g. click on a link) before the request is returned, the onerror handler gets called, raising an error! Any idea why is this happening? For your information, when onerror gets called, the 'xhr' and 'errorThrown' parameters are 'undefined' and the 'status' parameter contains the value 'error' (which I produced using JavaScript's alert).
View 4 Replies
View Related