Re: [jQuery] Can jquery do this? font-colour

2010-01-07 Thread Don Dunbar
The easiest way to do that is simply make the background to that area black. Then the white text shows up no matter what. It would eliminate the need to do extra work with scripts. DED On Tue, Jan 5, 2010 at 5:09 PM, annie anne.03gr...@gmail.com wrote: I'm very very new to jquery so please be

Re: [jQuery] Re: (validate) form field validation with field id doesn't work.

2009-10-30 Thread Don Dunbar
Hi, multiple fields should not have the same 'name' in a form. If you need first name for two parts of a form, then you should give a more explicit name to the input : ex. first name for shipping could be 'firstNameShip' and first name for billing could be 'firstNameBill' etc. The reason is

[jQuery] Re: how to set array value????

2009-10-24 Thread Don Dunbar
Hi Jacob, the format in your 'input' is a Ruby on Rails microformat; the name='branch[blahblah]' is a ruby hash. The problem could be how it is being parsed on the server with your ruby code. Here is short article about the use of microformats in rails.

[jQuery] Re: password initial value without masking ****

2009-10-20 Thread Don Dunbar
Hi, another thing you can try is to use a label for the password input. Just change the label styles to go on top of the input field ( it will look like it is in the field.) Then when the input field has focus, hide the label so it doesn't block the field. I just saw Waseem has the same idea.

[jQuery] Re: (tooltip) Markup problem

2009-10-14 Thread Don Dunbar
Hi, documents can contain as many H3 headers as are needed. In a tooltip, 'H3' makes the most sense because a single page generally should have only one 'H1' and 'H2' should be reserved for segment heads. So it's not a big issue to have the 'H3' in the tooltip dialog and still remain semantically

[jQuery] Re: AJAX callbacks: load(); $.get() and $.post() do not

2009-10-13 Thread Don Dunbar
Hi, it could be that your not supplying the type of return in the .post and .get calls. According to the API .post and .get have a fourth param of 'type' such as 'xml' or 'json'. This might not be the issue but it could be because your server won't know what mime type to return. DED On Tue, Oct

[jQuery] Re: (validate) does not work with backup php validation

2009-10-13 Thread Don Dunbar
Hi, it's hard to tell, could you explain in more detail what you mean by 'ignored completely'. Do you mean that you tried entering invalid data and the javascript didn't produce errors? But, at the same time you seem to have a problem in your php validation. Your if statement says 'if name exists

[jQuery] Re: Preventing double submits

2009-10-13 Thread Don Dunbar
Hi, can't you check validation before applying the block? Then if validation returns false direct focus to the first invalid field, and cancel the call to the block.This might work. DED On Tue, Oct 13, 2009 at 5:49 AM, Mark Smith marksmith5...@jungle-monkey.com wrote: Hi, I am using jQuery

[jQuery] Re: tablesorter - disabling sorting for a row

2009-10-13 Thread Don Dunbar
Hi, you could try adding class='{sorter:false}' to that row. See if that works, it works for thead ths.DED On Tue, Oct 13, 2009 at 3:18 AM, Konstantin K kkru...@gmail.com wrote: Hi folks, I'm using the awesome tablesorter plugin and I have one question: 1. is it possible to have a row not

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
wrote: A good clue. But I still don't know where to write the if statement. It would be good if you can give me an example. On Oct 11, 10:57 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, if you are using the validation plugin, I believe it has a function addMethod that allows you

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
, to make sure one is checked.DED On Mon, Oct 12, 2009 at 1:43 AM, Phper hi.steven...@gmail.com wrote: I am not familiar with the syntax of Jquery plugin. On Oct 12, 2:19 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi , I double checked on javascript's XOR operator and it only works with bitwise

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread Don Dunbar
Hi, glad you found a solution:to prevent the user from filling out both inputs in the first place. [code]$(#days).change(function(){ $(#participations).attr(disabled,disabled); }); $(#participations).change(function(){ $(#days).attr(disabled,disabled); }); [\code]

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-11 Thread Don Dunbar
Hi, this appears to be happening because of specificity in the CSS. You have the 'hidden' on a direct specification i.e. the 'ul' in question. Try adding a class like : .hidden {display:none;} and then adding and removing that through your jQuery ul.addClass(hidden) ; ul.removeClass(hidden);That

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
Hi, javascript has an 'xor' operator. It works just like 'or' in an 'if' statement except in 'xor' only one side can be true. In a normal 'or' statement either side can be true or both can. So you probably want to do something like: if ( A XOR B) { } . Then only one can be true to continue if

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-11 Thread Don Dunbar
...@gmail.com wrote: How can I write the code in the context of Jquery validate function? On Oct 11, 12:43 pm, Don Dunbar salemd1s...@gmail.com wrote: Hi, javascript has an 'xor' operator. It works just like 'or' in an 'if' statement except in 'xor' only one side can be true. In a normal

[jQuery] Re: LavaLamp problem in IE

2009-10-11 Thread Don Dunbar
Hi, this sounds like a CSS issue actually. You should search for how to make a conditional comment in X/HTML and apply a separate style sheet for IE using that. The reason this happens is probably because of how IE especially 6 and earlier handles the box-model in css differently. And so styles