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 PROTECTED
:
// in 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
/ elements or some 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. I think the issue
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 Percebois
://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 section title, adding to it a value provided by the link. Clicking
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 have the following DOM:
ul
liblah 1/li
li id
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.
Regards,
Emil
eval the response you'll have this function called and it
will give you the data.
(Note: I haven't tested this, so it might contain errors, but you can
see the point).
Regards,
Emil Ivanov
Then you can just use $.get and have the
On May 31, 1:08 am, philguillard [EMAIL PROTECTED] wrote:
Hi all
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 and can't seem to find how to add an
error class to the label next to the input field
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, then
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. I am using the load
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 [EMAIL PROTECTED] wrote:
Is this just impossible to do?
On May 18, 2:21 pm
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.
Regards,
Emil Ivanov
anchorTag = $(this).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, so posting again.
Thanks Karl, I tried
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 need to have a download
).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+br /);
});});
it works ,but when i change the document
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
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 works great.
But (there's
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 button (input element) after an action. So far I
can hide
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:
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 Ivanov
Stosh написа
.
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
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-functionality would simulate
24 matches
Mail list logo