Stream

Join this community to post or comment
 
Hi everybody, I got a simple little question.

I'm not very expert with jquery, when I call a $.get request or another $.ajax request, I wait for the response and than create dynamically a list of element based on the response.

When i turn on the cache: { cache: true }, the success method or any other method: done, fail, always doesn't run no more and my list remain unpopulated..
how can I do?

edit: i need to turn the cache on, if possible to reduce the server requests.

Many thanks in advance.
1
Add a comment...

Hardik Joshi

Discussion  - 
 
Understanding Git Branches
This tutorial is an introduction to Git Branches, it is dedicated to Kenth Hagström who submitted a request throw our Request a Tutorial page for GIT branching and team development. For readers, we…
3
3
Hardik Joshi's profile photoMichal Paseka's profile photoMurat Doğançay's profile photoFernando Miño's profile photo
2 comments
 
+Gary Terry  It is not directly related to jQuery that the reason I put it in different category. Git is known as source code management (SCM) system. There are many different source code management systems out there but Git fall into the category of a distributed version control system (DVCS), which can be used for each and every framework and languages including jQuery.
Add a comment...
 
Preview Image before upload it, jQuery, HTML5 FileReader()
How to preview image before upload jQuery on server, HTML5 FileReader() to preview image before upload using javascript, example preview image before upload
14
6
Pietro Birrante's profile photoJesús Guerreiro Real de Asua's profile photoTomasz Nowak-Bańdura's profile photoAlex Mazaltov's profile photo
Add a comment...
 
....
....
 case 1:
  descripcion = 15
  $.ajax({
   url: 'core/idpdto.php',
   type: 'get',
   dataType: 'json',
   cache: false,
    data: 'nombre='+descripcion,
    success: function(r){

    },
 }) 
  var X 
  break;
 case 1: ....
 .....
 .....
 Consulta amigos, tengo un $.ajax dentro de un case, funciona a la perfección (lo he probado, y me arroja lo que pido), nose cómo asignar el valor 'r' (valor que me devuelve el $ajax) a la variable 'X' fuera del .$ajax, muchas gracias
 ·  Translate
1
Andreas Jung's profile photoSergio Vilchis's profile photo
Add a comment...
14
3
Remi Ferland's profile photoDexter Edwards's profile photo
Add a comment...

prince haider

Discussion  - 
 
Buy Backlinks For SEO That Work, Quality High PR Dofollow
2
Add a comment...
 
PHP Ajax Login system with jQuery Shake effect
In this tutorial we will discuss simple php login system with jQuery shake effect, It will give you ability to sign in into the user based system, we will use Ajax to store logged in user data into…
14
11
Antonio Cortez (Kacorius)'s profile photoJarek Wiśniewski's profile photo
Add a comment...
 
C# Tutorial Advanced - Introduction and Evolution of C# 

https://www.youtube.com/watch?v=y157uE-rIXU
1
Add a comment...
 
Hello friends, here I am again
I have a function to insert rows in a table [see image 1] (it works fine)  and a function to delete a row from a table using jQuery's remove() function [see image 2],  (it delete fine)but when I try to insert the row again simply it can't do it. Please could you give Some suggestions or advices ??
3
Muhammad Farooqi's profile photo
6 comments
 
no +Andreas Jung .. i +10 to you.. not to the author of this post. I gave +10 to you because you are right. Stackoverflow would work better.. isnt' it.. if you dont' need +10, you can kindly return me back my +10s :)
Add a comment...
 
Am writing a script that calculates the total score and grade of each user by computing their test and exam scores . this is my script

$('#result').submit(function(event){
event.preventDefault();
$('tbody tr').each(function(index , element){
var total = $('td input[name="total"]').val(function(){
return $('td input[name="test"]').val() + $('[name="exam"]').val();
})
})
})

but my problem is that the script set total values to the computation of the first user's test and exam's score ... as like this
user1  test:6  exam:30  total:36
user2  test:18 exam:40 total:36
user3 test:30 exam:50 total:36
usern  test:n   exam:n   total:36

can someone help me with a better code to compute this value, I will appreciate it alot .
further questions are allowed please...
3
Patrik Niebur's profile photoJohnbosco Omebe's profile photo
2 comments
 
+Patrik Niebur thanks bro
Add a comment...

About this community

A fast, concise, library that simplifies how to traverse HTML documents, handle events, perform animations, and add AJAX. --- ENGLISH ONLY CHOOSE CORRECT CATEGORY FOR YOUR POST USE JSFIDDLE OR PASTEBIN FOR CODE SNIPPETS NO CROSS-POSTINGS DONT PROMOTE ADS / MFA / SPAM / ABUSE SITES (BAN) THINK BEFORE HITTING THE SUBMIT BUTTON DON'T TRY TO ACT AS AN IDIOT NO STACKOVERFLOW CROSSPOSTS NO "The best XXX jQuery plugins..." POSTINGS NO "This is my first coole jQuery plugin" POSTINGS THANKS

Philip Karthick

Discussion  - 
 
Hey guys. ... How to get the current song id/name in jPlayer
1
Andreas Jung's profile photoHardik Joshi's profile photo
2 comments
 
Hey +Philip Karthick hope this will help

jQuery("#jquery_jplayer_1").bind(jQuery.jPlayer.event.play, function (event)
{

var current = myPlaylist.current,
playlist = myPlaylist.playlist;
jQuery.each(playlist, function (index, obj){
if (index == current){
alert(obj.title);

} // if condition end
});
});
Add a comment...
 
Contact Us => Skype ID : # tgltechno and Mail me : info@tgllimited.com
4
Andreas Jung's profile photo
 
Spammer scum
Add a comment...
 
....
....
  case 1:
    descripcion = 15
    $.ajax({
    url: 'core/idpdto.php',
    type: 'get',
    dataType: 'json',
    cache: false,
    data: 'nombre='+descripcion,
    success: function( r ){


    },
 }) 
 var X 
 break
case 1: ....
 .....
 .....
 Consulta amigos, tengo un $.ajax dentro de un case, funciona a la perfección (lo he probado, y me arroja lo que pido), nose cómo asignar el valor 'r' (valor que me devuelve el $ajax) a la variable 'X' fuera del .$ajax, muchas gracias
   
 ·  Translate
1
Add a comment...

Bruno Kauê

Discussion  - 
 
Hello, me again!
I need to fix a problem, please help me!

I have the code:
$(document).ajaxSuccess(function (event, xhr, settings) {
                    if (settings.url === "file.php" || settings.url === "file2.php") {
                   alert('hi');
     }
});

The problem comes from the second time the 'file.php' is executed. From the second time, he repeats the 'alert' x times the file has been run, rather than running at once.
2
Bruno Kauê's profile photoHardik Joshi's profile photo
6 comments
 
+Bruno Kauê try Adding 'return false;' after alert or use jQueries .done() method..
Add a comment...

Edgar Coronado

Help needed  - 
 
Hi all, a question, how could file from b.js call the functions contained a.js, my question is, because the functions in both files is contained within a function: (function ($) {...} ) (jQuery); therefore I have an idea of OOP and think they should be declared public functions as this.variable = function, but do not know why it is generating a given error in one of these functions'm using ajax and throws me: ILLEGAL invocation, hopefully they can guide me, thanks.
1
Andreas Jung's profile photo
 
Ask on Stackoverflow

Add a comment...
1
Andreas Jung's profile photo
 
Unable to read group rules? The language here is ENGLISH - ONLY.

Add a comment...

Varun Jain

jQuery UI  - 
8
5
Francesco Cuzzupoli's profile photoVarun Jain's profile photo김현준's profile photoopen open's profile photo
4 comments
 
Awesome plugins

Add a comment...
 
Hello friends!
I have two functions that dinamically insert rows (with some elements like labels, inputs type number, ...) [see image 1] into a table [see image 2]   and I need to listen the focusout event on the input number with class = ".saleQuantity"  [see image 3, 4], but jquery does not recognize the elements within the table , but it recognized outside of the table

Someone can give me some suggestions or advice ?
8
Richard Deeming's profile photoMarcelo Junior's profile photo
16 comments
 
Oh, I did not know this solution. :) Very elegant way!
Add a comment...
 

Hello everyone! Someone knows how to be the instruction selection for the input of .mySaleQuantity class? (See picture)  I could not do directly with $ ( ' . MySaleQuantity ' ) and really need to do it with class and not with the  the id .. I appreciate your suggestions
2
JAVIER A. RAMÍREZ Z.'s profile photoHardik Joshi's profile photo
17 comments
 
Cheers..
Add a comment...