[jQuery] [general] select all non-empty inputs

2008-08-28 Thread Boersnoes
Hi, I want to select all the values from the filled in/checked/selected fields in a form and concatenate them in a string so I can pass it on to the history plugin. I have written working code, but I feel that it could be simplified. Any suggestions? var args = ''; $('.advancedSearchFor

[jQuery] Animate before submit

2008-08-29 Thread Boersnoes
Hi, I'm trying to animate my page before a form is submitted (regular, no ajax). $(".advancedSearchForm").submit(function(){ $(".colorList").slideToggle("fast", function(){ $(this).html("loading"); $(this).slideToggle("slow"); }

[jQuery] Start page load with collapsed DIV

2008-09-01 Thread Boersnoes
Hi, Is it possible to have a div collapsed at/before page load so I can neatly unfold it on page load? Currently before my form's submit, I slideToggle the result container, add some "loading" text to it, slideToggle it again and submit the form. All smooth and quick. Now when the page comes bac

[jQuery] Re: Autorefreshing DIV

2008-09-01 Thread Boersnoes
You could probably start with the jquery.timer plugin (http:// plugins.jquery.com/project/Timer) And use the $("selector").html() method to fill it up. Boris Sir Rawlins wrote: > Good morning all, > > I have a requirement to automaticly refresh a DIV with some content > from another URL every co

[jQuery] focus() in IE?

2008-09-01 Thread Boersnoes
Hi, Today I noticed the focus() doesn't work in IE. Can anybody confirm this or (even better) know how to fix it? Boris

[jQuery] jquery.form set field value beforeSubmit

2008-08-19 Thread Boersnoes
Hi, I'm trying to set a hidden field's value to true before submitting. First I bind the form: $(".advancedSearchForm").ajaxForm( { target: '.colorList', beforeSubmit: ShowRequest, success: ShowResponse } ); Then in the before submit I set

[jQuery] place I-beam at end of text

2008-08-20 Thread Boersnoes
Hi, How can I place the I-Beam ( blinking vertical cursor) at the end of the text in a textbox? I have a form with certain calculated values based on an input field. Everytime a new digit is filled in, the form gets updated. This makes my input field loose control and place. Regards Boris