[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 PROTEC

[jQuery] handle trigger return value

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

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

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

[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 Perc

[jQuery] Re: ParseJSON from array php to array javascript

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

[jQuery] Re: ParseJSON from array php to array javascript

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

[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. Reg

[jQuery] Re: Remove DOM siblings after current item

2007-06-05 Thread Emil Ivanov
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'); //

[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 hav

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

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

[jQuery] Re: $.getJSON manipulation

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

[jQuery] Re: Color Label on Form Validation Error

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

[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, th

[jQuery] Re: FadeIn FadeOut callback timing problem in Internet Explorer 6/7

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

[jQuery] Re: Using jQuery to select text

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

[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.

[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. Rega

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

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

[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+"); > });}); > >

[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 n

[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

[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: 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 but

[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: Actua

[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

[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-fu

[jQuery] Re: PeriodicalExecutor or $.executeEach

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

[jQuery] Re: PeriodicalExecutor or $.executeEach

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

[jQuery] PeriodicalExecutor or $.executeEach

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