RE: [jQuery] Callback in $.getJSON is called but variable assignment doesn't persist.

2010-01-04 Thread Josh Nathanson
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)

[jQuery] Callback in $.getJSON is called but variable assignment doesn't persist.

2010-01-04 Thread Ido Yehieli
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

[jQuery] Callback not firing

2009-10-21 Thread Sir Rawlins
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_

[jQuery] Callback Function > had a look but don't get it

2009-09-30 Thread jessie
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

[jQuery] Callback Not Working

2009-08-24 Thread GLSmyth
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

[jQuery] Callback Not Working As Expected

2009-08-20 Thread GLSmyth
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

[jQuery] Callback Not Working (As Expected)

2009-08-20 Thread Eclectic Mix
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

[jQuery] Callback function after switchClass()

2009-05-12 Thread kgosser
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

[jQuery] Callback functions

2009-03-26 Thread Mike
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'

[jQuery] callback function

2009-02-25 Thread mlabee01
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

[jQuery] Callback no being executed from a post call...

2009-02-16 Thread kevin...@gmail.com
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

[jQuery] Callback from the $.post function is not being invoked

2009-02-09 Thread mistere357
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",

[jQuery] callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
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.

[jQuery] callback :passing $_POST values after completing form

2009-01-30 Thread dimitri
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

[jQuery] Callback function not working

2009-01-24 Thread Althalos
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_"+

[jQuery] Callback problem

2009-01-22 Thread Alex Sergeev
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

[jQuery] Callback on $.Post not firing

2008-11-24 Thread Rage9
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

[jQuery] Callback after ALL elements in set animated?

2008-11-03 Thread Bob
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

[jQuery] callback after insertBefore or insertAfter is complete;

2008-10-29 Thread gryzzly
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.

[jQuery] Callback to home page from 2nd page

2008-09-25 Thread Reddy
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

[jQuery] jquery callback issue

2008-09-24 Thread msk
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

[jQuery] callback executed before effect ended

2008-08-27 Thread Aljosa Mohorovic
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

[jQuery] callback for css loaded in head

2008-07-07 Thread alexanmtz
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

[jQuery] Callback-return into global variable

2008-01-16 Thread Niels
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 == '

[jQuery] Callback function - display on page

2007-12-27 Thread coughlinsmyalias
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(){

[jQuery] Callback after append?

2007-07-25 Thread juliandormon
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

[jQuery] Callback problems in loop

2007-06-28 Thread Krafton
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

[jQuery] callback

2007-05-21 Thread james_027
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

[jQuery] callback in a plugin

2007-05-14 Thread Alexandre Plennevaux
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

[jQuery] Callback of AJAX call must determine what happens after the AJAX call... how?!? (form plugin)

2007-03-31 Thread tawm
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