[jQuery] Re: handle trigger return value

2007-11-09 Thread Emil Ivanov
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

[jQuery] handle trigger return value

2007-11-08 Thread Emil Ivanov
: // 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

[jQuery] Re: Drupal Form + jQuery Forms Plugin + File Uploads (Drupallers jQuery gurus please)

2007-10-16 Thread 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

[jQuery] Re: jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready

2007-09-27 Thread Emil Ivanov
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

[jQuery] Re: validation plugin : conflict with formsess because of {

2007-08-28 Thread 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

[jQuery] Re: toggle() append: how to?

2007-06-05 Thread Emil Ivanov
://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

[jQuery] Re: Remove DOM siblings after current item

2007-06-05 Thread Emil Ivanov
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

[jQuery] Re: files upload

2007-06-05 Thread Emil Ivanov
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

[jQuery] Re: $.getJSON manipulation

2007-05-30 Thread Emil Ivanov
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

[jQuery] Re: Color Label on Form Validation Error

2007-05-20 Thread Emil Ivanov
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

[jQuery] Re: Catching events when jQuery fires

2007-05-20 Thread Emil Ivanov
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

[jQuery] Re: Status codes when using Ajax with Jquery

2007-05-18 Thread Emil Ivanov
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

[jQuery] Re: Using jQuery to select text

2007-05-18 Thread Emil Ivanov
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

[jQuery] Re: IE Caching AJAX calls

2007-05-17 Thread Emil Ivanov
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

[jQuery] Re: Linking each list item to respective div container.

2007-05-16 Thread 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

[jQuery] Re: Download indicator

2007-05-12 Thread Emil Ivanov
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

[jQuery] Re: a problem with $.each() function

2007-05-12 Thread Emil Ivanov
).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

[jQuery] Validate triggering

2007-05-11 Thread Emil Ivanov
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

[jQuery] Re: Validate triggering

2007-05-11 Thread 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

[jQuery] Re: Disable an input element

2007-05-10 Thread 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 button (input element) after an action. So far I can hide

[jQuery] Re: PeriodicalExecutor or $.executeEach

2007-05-09 Thread Емил Иванов / Emil Ivanov
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:

[jQuery] Re: PeriodicalExecutor or $.executeEach

2007-05-08 Thread Emil Ivanov
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 написа

[jQuery] Re: PeriodicalExecutor or $.executeEach

2007-05-07 Thread Emil Ivanov
. 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

[jQuery] Re: PeriodicalExecutor or $.executeEach

2007-05-07 Thread 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