Okay, I found the solution after digging in the jquery file a bit. The
key is triggering the event not via trigger, but using
triggerHandlers. The return value of this function is the return value
of the bound event function.
Regards,
Emil Ivanov
On Nov 8, 5:56 pm, Emil Ivanov <[EMAIL PROTEC
n the plugin
self.click(function () {
var return_value = self.trigger('action', [currentProgress]));
if (!return_value) undo();
});
// userland
$('#item').bind('action', function () {
return window.confirm('Sure?');
});
Regards,
Emil Ivanov
other
way.
Also, just to remind you - if you upload data the form should be
enctype="multipart/form-data" and method="post".
Hope that helps.
Regards,
Emil Ivanov
On Oct 16, 5:13 am, dgt <[EMAIL PROTECTED]> wrote:
> It was difficult to decide where I should post this
Isn't it possible just to wrap the script in a function and call it in
the callback of the ajax call? Or I'm getting it wrong?
Regards,
Emil Ivanov
This is more a smarty issue, than jquery/js.
There is a smarty tag {ldelim} for { and {rdelim} for }.
Also wrapping a piece of code with {literal}function() { code; } {/
literal} tells the parser to ignore the text between the tags.
Regards,
Emil Ivanov
On 28 Авг, 11:05, "Olivier Perc
A little correction:
> Then in javascript:
> var jsArray = $.getJSON('/test.php');
Has to be
Then in javascript:
$.getJSON('/test.php', function (jsArray) {
});
On Jun 9, 7:32 pm, Emil Ivanov <[EMAIL PROTECTED]> wrote:
> Once you encode the array to JSON in ph
Once you encode the array to JSON in php you just have to pass it to
the javascript, not decode it:
// test.php
$aCambios = mysql_fetch_all ($resultCamb ) ;
$myjson = $json->encode($aCambios);
// echo "
You'll have to do the uploaded asynchronously, using an iframe, and
then query the backend for the progress...
In php 5.2+ this is possible using the APC
http://martinjansen.com/2007/04/upload-progress/
Note that this is quite buggy...
In other languages it's possible, too.
Reg
I think the first won't remove anything since #appendExtraAppointments
doesn't have any children.
#appendExtraAppointments.sibligs() will wast all of the s
var next = $('#appendExtraAppointments').next('li');
while (next.size() != 0) {
next = $('#appendExtraAppointments').next('li'); //
var next = $('#appendExtraAppointments').next('li');
while (next.size() != 0) {
next = $('#spc').next('li');
next.remove();
}
Regards,
Emil Ivanov
On Jun 5, 5:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I hav
u
using a selector..
http://docs.jquery.com/DOM/Traversing/Selectors
Regards,
Emil Ivanov
On Jun 5, 4:39 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> hello jQ-zillos !
>
> i have a list of links organised in subsections, and i would like to modify
> each sec
uot; :
"http://flickrtest1.userland.com/";
}
]
}
});
all you need to do is define the jsonFlickrApi function. For example:
function jsonFlickrApi(data) {
return data;
}
After you eval the response you'll have this function ca
automatically generated with class="error" so
you can apply styling to it.
Regards,
Emil Ivanov
On May 20, 10:59 pm, Scott Moore <[EMAIL PROTECTED]> wrote:
> Not sure if I'm just missing this or what, but I'm using Jörn's
> wonderful form validation plug-in
Try
$('form').trigger('submit');
http://docs.jquery.com/Events#trigger.28_type.2C_data_.29
On May 20, 11:40 pm, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> I tried doing this manually:
>
> if (jQuery('form').submit()) { // fire the JavaScript event, perhaps
> to validate
> // if true, th
Wild guess:
Try by putting the fadeOut in the callback of the fadeIn...
Give us some link, if possible, so we can see it...
Regards,
Emil Ivanov
On May 18, 11:57 pm, Pogo <[EMAIL PROTECTED]> wrote:
> I have two divs that I'm swapping out, using a fade effect:
>
>
disable the submit button like this:
$('#submitButtonId').attr('disabled', 'disabled');
But you should capture some event on the text box to validate it
(onblur for example) and enable the button when needed.
Regards,
Emil Ivanov
On May 19, 12:14 am, "S. Robert James" &
AjaxError callback
http://docs.jquery.com/Ajax#ajaxError.28_callback_.29
Take a look at the Ajax part of the documentation at http://docs.jquery.com/Ajax
Regards,
Emil Ivanov
On May 19, 12:30 am, Katie <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use Ajax with JQuery.
You mentioned one of the solutions - to append something like '?
param=' + new Date();
The other thing you can do is use POST, since IE won't cache POST
request. I've tried telling it with headers, that it should not cache
it, but it still does, so POST is the solution.
Rega
attr('someTag'); // This you can pass to the
server
$('the ajax div').load(url + '?tag=' + anchorTag);
});
Regards,
Emil Ivanov
On May 16, 10:20 pm, "[EMAIL PROTECTED] d" <[EMAIL PROTECTED]> wrote:
> *Not sure why my prev message isn't showing up
).each()
or $(window).each().
Regards,
Emil Ivanov
On May 12, 2:24 pm, Guapo <[EMAIL PROTECTED]> wrote:
> when i write
> $(document).ready(function(){
> $.each(document,function(k,v){
> document.writeln(k+""+v+");
> });});
>
>
http://www.ajaxload.info/
Try this address. Here you'll find a nice web2.0 generator. It's very
cool.
Regards,
Emil Ivanov
On May 12, 3:01 pm, wyo <[EMAIL PROTECTED]> wrote:
> My gallery including size fitting now works mosty (except with Firefox/
> SeaMonkey) but I n
Sorry,
found the solution myself.
The $.validate() method return an object, on which .form() can be
invoked and it does just what I needed.
Regards,
Emil Ivanov
On May 11, 4:54 pm, Emil Ivanov <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the validate plug-in and I
Hi,
I'm using the validate plug-in and I works great.
But (there's always a but :), I want to be able to trigger the
validation via js, as I'm doing other stuff before submitting the form
and I need to know if the form is valid.
Regards,
Emil Ivanov
To disable it:
$('#kontakt_senden').attr('disabled', disabled');
To enable it:
$('#kontakt_senden').remvoeAttr('disabled');
Regards,
Emil Ivanov
On May 10, 11:32 am, wyo <[EMAIL PROTECTED]> wrote:
> I'd like to disable a but
Actually, you are right. After some searching I found a nice Scheduler plugin.
http://trainofthoughts.org/blog/2007/02/15/jquery-plugin-scheduler/
And download:
http://trainofthoughts.org/repo/getfile?f=jquery/jquery.schedule.js
On 08/05/07, Gilles (Webunity) <[EMAIL PROTECTED]> wrote:
Actua
Currently I'm kinda busy, and the executeEach method is working for
me...
When I have more time I might try it, but not right now, also I will
help as much as I can.
I think it's not much of writing, but designing, as JS can get nasty
with closures and 'this'.
Regards,
Emil
Stosh написа:
> On May 7, 5:05 pm, Emil Ivanov <[EMAIL PROTECTED]> wrote:
> Emil,
> For example Being able to stack AJAX calls into a queue, so that
> they are either spaced out or simply don't occur at the same time
> would be handy. In some respects the end-fu
y it wasn't stopping.
Also Stosh, about the query plug-in idea - can you share what exactly
you have in mind..
I know the name isn't the best, but it was the first that came to my
mind and it was short. Any ideas would be appreciated.
Regards,
Emil Ivanov
On 06/05/07, Emil Ivanov <[EMAIL PROTECTED]> wrote:
// jQuery plugin for periodical execution.
// Pass the function the seconds and the function and it will call the
function every N seconds,
// use this.stop() to stop the execution.
My bad, old comments.
The usage is like:
$.executeEa
{ fn(scope); } , seconds)
};
};
I wanted to share it with you and hear your thoughts. I would like it
to be released in some form (plugin or in the framework itself).
Also, I was wondering how do you implement such functionality for the
effects?
Regards,
Emil Ivanov
30 matches
Mail list logo