y, January 04, 2010 9:55 AM
To: jQuery (English)
Subject: [jQuery] Callback in $.getJSON is called but variable assignment
doesn't persist.
Hi,
on the following code:
$.getJSON("http://www.tametick.com/test2/json/settings.json",function
(data) {
this.Settings = data;
alert(data)
Hi,
on the following code:
$.getJSON("http://www.tametick.com/test2/json/settings.json",function
(data) {
this.Settings = data;
alert(data);
alert(this.Settings);
});
which can be found on http://www.tametick.com/test2 (line 63 in
http://www.tametick.com/test2/js/cardinal-quest.js), I
Hello Guys,
I'm sure that I'm doing something blatantly wrong here but I can't
spot what's wrong. I've got the following code snippet.
http://pastebin.com/m71102c16
Now, when calling the method change_testimonial() I get the log entry
in the console as expected however the callback to show_new_
Ok i'm nearly there LOL
i have the link and a box which i want to foundOut as my function.
All works dandy now :)
But whatif i wanted after i clicked on the link to go to its normal
state?
Well i went to the jquery site but i don't think its designed for TRUE
beginners like myself
It talk
I am looking to fade text out when the mouse passes over it and
replace it with text that is faded in. My understanding is that this
needs to be done through a callback, as the text needs to fade out
completely before fading in. However, when I try to implement this
idea the content does not fade
I am looking to fade text out when the mouse passes over it and
replace it with text that is faded in. My understanding is that this
needs to be done through a callback, as the text needs to fade out
completely before fading in. However, when I try to implement this
idea the content does not fade
I am looking to fade text out when the mouse passes over it and
replace it with text that is faded in. My understanding is that this
needs to be done through a callback, as the text needs to fade out
completely before fading in. However, when I try to implement this
idea the content does not fade
Hey all,
I'm trying to do some animation designs. Basically where I'm stuck is
I have a bunch of things I want to do, but not until the duration of
the switchClass method is complete. Looking at the UI documentation
site, there doesn't appear to be a callback ability.
Anyone have any tips on how
Anyone know why the callback function here isn't working?
$('#anim_flipper')
.animate( {top : '1130px'}, {queue:false, duration: 1100} )
.animate( {left : '335px'}, {duration: 1400,
easing:'easeInOutQuad'} )
.animate( {top : '1126px'
Hello,
I’m pretty new in the jQuery world. I'm struggle with the callback
function.
$(document).ready(function(){
$("#gallery-flickr").flickr({api_key:
"f28804be7a09c5845676349c7e47d636",per_page: 4 });
$('a').attr({ rel: "prettyPhoto"});
});
I
I am having a problem,
The callback function I am passing to the jquery post request is not
executing the success callback on a successful reply from my servlet:
Here are some code snippets of what I am trying to do:
top of my file:
if (Ajax == null || typeof(Ajax) != "object") { var Ajax = new
I'm new to jQuery and it has worked great for me...
except I seem to be having a problem with the $.post function.
The response comes back but the callback function is not invoked.
Here is the loop that I'm using to set the onChange event handler:
datafields = new Array( "#field1", "#field2",
is there any way to get a callback when append is ready?
i have the following problem. i add some images with .append() after
this i have to get the .height() of these images.
when i now execute .append() it takes a while to load the images so
the .height() function can not find the images.
i'm all new with jquery and i'm using a validator for my form from
marzapower.
i was lucky enough to make the script detemine whether the form is
fulfilled correctly or not
whan not it sasy forgotten this or that, when correct it says i made
it.
but i'm now struggling om how i have to pass the d
Hello, I have a callback function belonging to a $.post that won't
work. Anyone know why? This is my function:
function(date) {
$("#date_"+$(this).attr("id")).html("Updating..");
$.post("includes/updateleverans.php",{id:$(this).attr("id"),
date:date},
function (data) {
$("#date_"+
Hello!
i have a code
var handler = "editElementName";
function showModalBox(width, height, handler, id)
{
...
$(".btnSave").click(handler + "Save");
...
}
function editElementNameSave(e)
{
alert(1);
}
Why dont work event click?
PS sorry for my English - i am from Russia
This is driving me loopy. Simple post, trying to get a result back
from the server. Heck even copied it from the documentation and the
callback just will not fire, but the post works fine:
var answer = confirm("Delete Selected?");
if (answer){
$.post("tes
Hey guys...
Don't seem to be able to find an answer to this. Is there a way to
fire a callback after ALL elements in a wrapped set have been
animated? Instead of after each one is animated? It kind of looked
like queue would do something similar to this... but since animate or
show... or whatever
Hello.
I need to call function after $("#element).insertBefore("prev").
I was trying $("#element).insertBefore("prev", callback_function); but it didn't work.
What can I do to achieve this? Thank you.
Could somebody help me in this issue.
when I am on landing page I have two questions to be answered . When
I click on 2nd ques which is radio button i will be shown with other
remaining questions.
So from 2nd page when i click on link which takes me to homepage I
want that exact page which i
hi,
i am using jquery in drupal i have a list like
car1 (edit)
car2 (edit)
edit=(edit)
that was link define behind edit caption.
now in jquery:
$(".edit").click(function(){
add_new_room();
return false;
})
function add_new_room(){
...defination of function
i'm trying to fadeIn element after first element fadeOut.
i have this in $(document).ready:
-
$("a.link").click( function() {
current = $(".link.current");
id = $(this).attr('rel');
next = $("#link_"+id);
next.addClass('cu
I wish to execute block of code after loaded css dinamically inserted
in the head. I´m making a ajax navigation and everything working fine,
but the page is loaded without css and after a period of time (not
defined, sometimes very fast, sometimes slow) the css is loaded and
applied in document. T
Is there any way to put a return from within a callback into a global
variable? I'm trying to retrieve JSON-values in one statement, and
output them in another statement; and code looks like this:
var _json;
function load_comments(id, params) {
if (typeof id != 'number' && typeof id == '
Hey all! I have been trying to say add a call back function after the
form has been submitted, display on the page word has been added, have
it appear for a second or so and then fade away..Any ideas on that? My
code:
$(document).ready(function(){
$('#addWord').submit(function(){
I'm adding html into a div using append. I want to update my custom scrollbar
plugin which is in a parent div after the append has completed loading to
accommodate the new height of the content in the child div. What's the
proper way of doing a callback after append for a different div?
I cannot
Hello,
Here is my problem
I have two arrays 'liens' and 'ids'.
The first array contains links that have to be loaded in the second
array which contains ids
liens[0] must be loaded in ids[0], liens[1] ... ids [1], etc...
When clicking on a link, all these are supposed to be loaded in their
cor
Hi,
I am welcoming myself to Jquery, and I am glad that I give myself a
chance to try jquery. The documentation and tutorials which many seems
to ignore is one of the things that makes me to go for jquery for my
javascript & ajax need.
Upon finishing the How jQuery Works, I want to learn why cal
hello!
Could someone explain me how to implement the ability to send a list of
commands to be performed by a plugin when it is done ? (i believe this is
called a "callback" function ? )
i would like to add this to the jqUploader plugin, so that i could do something
like:
function pleaseD
Hello people,
I'm in a situation right now in which I do an AJAX call, supplying it
a callback function (for success). In this callback function I do some
operations which determine what happens after the AJAX call. Normally
you would solve this by calling yet another callback function at the
end
30 matches
Mail list logo