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
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
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() {
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
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
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
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
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)
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'},
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
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
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
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
great! thanks for that! one last question. is it possible to fire a
function when the last of 5 images is loaded ?
ok thanks, and is there any way to use the load event to an image
included with append?
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 ?
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?
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
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() :
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
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) {
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)();
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
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:
Ok did that but still not getting anything from the errors:
$.ajax({
type: POST,
url: test.php,
data: {name: test},
dataType: json,
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=#'
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
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.
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?
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
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
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:
$.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) {
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
Julian, have you tried this?
$(#childDiv).append('mygreatHTML').parent().updateScrollBar();
$(#childDiv).append('mygreatHTML',function(){$(#parentDiv).updateScrollBar()})
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
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
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
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
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,
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
41 matches
Mail list logo