[jQuery] Re: Callback not firing

2009-10-21 Thread James
You said I get the log entry in the console. You have two in there. Which one? Both? If you get the log entry Show Testimonial Fired? If so, then it did fire. It's something else that didn't work as expected, but perhaps made you to believe the callback did not fire. On Oct 21, 5:04 am, Sir

[jQuery] Re: Callback for selected match

2009-10-14 Thread James
I'm not sure what you are talking about. Are you talking about a specific jQuery plug-in? Or a HTML select drop-down? If you're talking about a HTML select, then an onchange event will do what you want. $(select).change(function() { alert( $(this).val() ); }); On Oct 14, 10:24 am, eka

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

2009-10-01 Thread Jon Banner
the link should have it's normal state and actions when you don't return false, as in the example code you provided. If you want to add a call back to fire after the fade out: $(function() { // document is ready for load $('a').click(function() {

[jQuery] Re: Callback Not Working

2009-08-25 Thread GLSmyth
Aaron - Thanks so much, that works like a champ. I never thought of the fact that the this pointer was changing context. Thanks so much for the code and the explanation, that knowledge is very helpful. Cheers - george On Aug 24, 7:00 pm, Aaron Gundel aaron.gun...@gmail.com wrote: Hi

[jQuery] Re: Callback Not Working

2009-08-24 Thread Aaron Gundel
Hi George, It appears that your code isn't working because the context of your this pointer changes in the callback inside of your fadeout effect. it becomes your section title. So when you do a find on it, you find only children of the section title that are of the class explanation -- which

[jQuery] Re: Callback function after switchClass()

2009-05-12 Thread waseem sabjee
Hi. What type of animation will you be making ? I could help :) On Tue, May 12, 2009 at 9:30 PM, kgosser kgos...@gmail.com wrote: 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

[jQuery] Re: Callback function after switchClass()

2009-05-12 Thread waseem sabjee
here is one way to create delay setTimeout(function() { // do function after 0.5 seconds }, 500); On Tue, May 12, 2009 at 9:32 PM, waseem sabjee waseemsab...@gmail.comwrote: Hi. What type of animation will you be making ? I could help :) On Tue, May 12, 2009 at 9:30 PM, kgosser

[jQuery] Re: Callback functions

2009-03-27 Thread Ricardo
When using a second object for the options, the callback must be defined in it, like this: .animate({ top : '1038px', left : '247px' }, { duration: 1400, easing:'easeInOutQuad', complete: function() { $('#anim_talkBubble') .fadeIn(1000)

[jQuery] Re: Callback functions

2009-03-27 Thread weidc
for me it works like this: $('#anim_flipper').animate({top: '1130px'}, { duration: 1100}) .animate({left: '335px'}, {duration: 1400}, {easing:'easeInOutQuad'}) .animate({top: '1126px', left: '339px'}, { duration: 600}, {easing:'easeOutQuad'}) .animate({top: '1142px', left: '330px'},

[jQuery] Re: callback function

2009-02-25 Thread MorningZ
The syntax would be like $(#gallery-flickr).flickr({ api_key: f28804be7a09c5845676349c7e47d636, per_page: 4, callback: function() { $('a').attr({ rel: prettyPhoto}); } }); On Feb 24, 11:57 pm, mlabee01 mari...@savariba.com wrote: Hello, I’m pretty new in the

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

2009-02-09 Thread mistere357
Ah! Some helpful individual here in Philadelphia posted a clue for me on the PANMA list and I've evolved his suggestion into this code which works like magic: function edit_event_handlers( ) { // highlight the field backgrounds when the user enters it for ( var target in datafields

[jQuery] Re: callback for append function?

2009-02-02 Thread Stephan Veigl
The append is done immediately, but you have to wait for the load event of the image before you can get the correct height. by(e) Stephan 2009/2/2 lhwpa...@googlemail.com lhwpa...@googlemail.com: is there any way to get a callback when append is ready? i have the following problem. i add

[jQuery] Re: callback for append function?

2009-02-02 Thread Stephan Veigl
You can make a function you call every time an image has been loaded and update a counter in this function. Once the counter reaches the number if images you have on your page, you know that all images where loaded. see: http://jsbin.com/ofici/edit by(e) Stephan 2009/2/2 Liam Potter

[jQuery] Re: callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
great! thanks for that! one last question. is it possible to fire a function when the last of 5 images is loaded ?

[jQuery] Re: callback for append function?

2009-02-02 Thread lhwpa...@googlemail.com
ok thanks, and is there any way to use the load event to an image included with append?

[jQuery] Re: callback for append function?

2009-02-02 Thread Liam Potter
can you please not delete the quoted message, as I have no idea what you just thanked someone for now. lhwpa...@googlemail.com wrote: great! thanks for that! one last question. is it possible to fire a function when the last of 5 images is loaded ?

[jQuery] Re: callback for append function?

2009-02-02 Thread Stephan Veigl
sure, no problem take a look at: http://jsbin.com/udeze/edit by(e) Stephan 2009/2/2 lhwpa...@googlemail.com lhwpa...@googlemail.com: ok thanks, and is there any way to use the load event to an image included with append?

[jQuery] Re: callback for append function?

2009-02-02 Thread Ricardo Tomasi
Take notice that the image's load event doesn't always fire in IE. You have to use .bind('readystatechange load', loaded) function loaded(){ if (this.complete) // or if (this.readyState == 'complete') //do stuff to guarantee that the function will be called (the .complete property is

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

2009-01-30 Thread James
If you're using a straight-forward form submission, make the form action submit to a script and process it server-side. If you're doing it through AJAX, the following Jquery functions maybe of use to you: serialize() : http://docs.jquery.com/Ajax/serialize serializeArray() :

[jQuery] Re: Callback function not working

2009-01-25 Thread Stephan Veigl
haven't tested it, bu I guess the this variable is the problem in your callback $(#date_+$(this).attr(id)).html(Done!); try: var el = $(this); $.post(includes/updateleverans.php,{id:el.attr(id), date:date}, function (data) { $(#date_+el.attr(id)).html(Done!); }); by(e) Stephan

[jQuery] Re: Callback function not working

2009-01-24 Thread Althalos
and also $(#date_+$(this).attr(id)).html(Updating..); works fine! On 24 Jan, 16:39, Althalos ca...@ekdahlproduction.com wrote: Hello, I have a callback function belonging to a $.post that won't work. Anyone know why? This is my function: function(date) {    

[jQuery] Re: Callback problem

2009-01-22 Thread jQuery Lover
I have tried this: var handler = editElementName; function editElementNameSave() { alert('Hurray!'); console.log(1); } function showModalBox(handler) { $(.1).click(function(){ console.log(2); (handler + Save)();

[jQuery] Re: Callback problem

2009-01-22 Thread Michael Geary
Alex's code was doing the equivalent of: $(.btnSave).click(editElementNameSave); The click() function, like all event functions, expects to receive a *reference* to a function, not the *name* of a function. Your code is doing the equivalent of: editElementNameSave(); You can't call a string

[jQuery] Re: Callback on $.Post not firing

2008-11-24 Thread Andy Matthews
Is it maybe generating an error? Try converting to a .ajax call so that you've got access to the error method handlers. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rage9 Sent: Monday, November 24, 2008 3:43 PM To: jQuery (English) Subject:

[jQuery] Re: Callback on $.Post not firing

2008-11-24 Thread Rage9
Ok did that but still not getting anything from the errors: $.ajax({ type: POST, url: test.php, data: {name: test}, dataType: json,

[jQuery] Re: callback after insertBefore or insertAfter is complete;

2008-10-29 Thread Richard D. Worth
Regular DOM manipulation events (that is, not .load(), which uses Ajax) are synchronous, so you can simply call your function on the next line. - Richard On Wed, Oct 29, 2008 at 9:22 AM, gryzzly [EMAIL PROTECTED] wrote: Hello. I need to call function after $(#element).insertBefore(a href=#'

[jQuery] Re: callback after insertBefore or insertAfter is complete;

2008-10-29 Thread gryzzly
Thank You a lot. On Oct 29, 3:55 pm, Richard D. Worth [EMAIL PROTECTED] wrote: Regular DOM manipulation events (that is, not .load(), which uses Ajax) are synchronous, so you can simply call your function on the next line. - Richard On Wed, Oct 29, 2008 at 9:22 AM, gryzzly [EMAIL

[jQuery] Re: Callback to home page from 2nd page

2008-09-25 Thread ricardobeat
Hi! Could you rephrase your question? On Sep 25, 4:14 am, Reddy [EMAIL PROTECTED] wrote: 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.

[jQuery] Re: Callback to home page from 2nd page

2008-09-25 Thread Kavitha reddy
After submittinh home page I will be redirected to next page . So Upon clicking Start again I should be redirected to HomePage with only two questions to be displayed instead of all. On Fri, Sep 26, 2008 at 1:45 AM, ricardobeat [EMAIL PROTECTED] wrote: Hi! Could you rephrase your question?

[jQuery] Re: Callback to home page from 2nd page

2008-09-25 Thread ricardobeat
Sounds like something that should be done server-side with a database. Anyway, the only way to pass javascript data to another page is via the location.hash (http://page.com/ index.htm#data1=yuck,data2=yack,data3=yock). You turn the data into a string, attach it to an a href= or directly change

[jQuery] Re: callback executed before effect ended

2008-08-27 Thread Paul Carey
problem is that next element appears while current element is still fading out, any idea what i'm doing wrong? Maybe you could add display:none; to the current css class. Paul

[jQuery] Re: Callback-return into global variable

2008-01-19 Thread J Moore
Couple of thoughts: 1) $.each() is not for moving through an array. (is for doing something to each matched DOM element) try: for(item in _json) { alert('item:'+item);} 2) try defining your global as an object. e.g. var _json = {}; -jason On Jan 16, 2:17 am, Niels [EMAIL PROTECTED] wrote:

[jQuery] Re: Callback-return into global variable

2008-01-19 Thread Danny
$.getJSON and all the AJAX functions are asynchronous; the function returns before it gets any result. That's why there's a callback function: it gets called when the data are available. So when you write load_comments(); $.each(_json.comments, function(comment) {

[jQuery] Re: Callback after append?

2007-07-25 Thread Matt Stith
Thats right, the only things that need a callback are ajax and animations (unless im missing something) On 7/25/07, Klaus Hartl [EMAIL PROTECTED] wrote: juliandormon wrote: I'm adding html into a div using append. I want to update my custom scrollbar plugin which is in a parent div after

[jQuery] Re: Callback after append?

2007-07-25 Thread Mike Alsup
Julian, have you tried this? $(#childDiv).append('mygreatHTML').parent().updateScrollBar(); $(#childDiv).append('mygreatHTML',function(){$(#parentDiv).updateScrollBar()})

[jQuery] Re: Callback after append?

2007-07-25 Thread juliandormon
I did not know that. That worked great! Klaus Hartl wrote: juliandormon wrote: 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

[jQuery] Re: callback

2007-05-21 Thread Brandon Aaron
Welcome to jQuery! Could you provide some more context to your question? I'm a little confused as to what you are asking about. In general callbacks are used in order to keep things synchronized. Especially things like AJAX and FX. Without callbacks we wouldn't easily be able to know when those

[jQuery] Re: callback

2007-05-21 Thread james_027
Hi, This is from How jQuery work from John, A callback is a function that is passed as an argument to another function and is executed after its parent function has completed. The special thing about a callback is that functions that appear after the parent can execute before the callback

[jQuery] Re: callback

2007-05-21 Thread Aaron Heimlich
On 5/21/07, james_027 [EMAIL PROTECTED] wrote: Wrong The Wrong Way (will not work!) $.get('myhtmlpage.html', myCallBack(param1, param2)); Try this: $.get('myhtmlpage.html', function() { myCallBack(param1, param2); }); Wrapping the call to myCallBack in an anonymous function should

[jQuery] Re: callback in a plugin

2007-05-14 Thread Renato Formato
Alexandre Plennevaux ha scritto: i would like to add this to the jqUploader plugin, so that i could do something like: function pleaseDoTheseThings (params){ $(#dothis).show(); } $(input#example1).jqUploader({ background: FF9900, barColor: FFDD00,

[jQuery] Re: callback in a plugin

2007-05-14 Thread Alexandre Plennevaux
with javascript. Although with jquery, i already feel in my county :) -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renato Formato Sent: lundi 14 mai 2007 16:39 To: jquery-en@googlegroups.com Subject: [jQuery] Re: callback in a plugin