[jQuery] Re: jquery form plugin ajaxSubmit / fieldvalue inconsistent behaviour [jquery form]

2009-08-03 Thread rekna



On Aug 3, 4:57 pm, Mike Alsup mal...@gmail.com wrote:
  if you have in html the following:

  input type=checkbox value=true name=check/
  input type=hidden value=false name=check/

  ajaxSubmit will submit :

  check : true
  check : false

  $(#check).fieldValue() will return
  [ true ]

thanks for the comment... i should probably use $
('[name=check]').fieldValue() instead of use the id...
still this results in ['on','false' ] when the checkbox is checked,
while ajaxSubmit posts check:true , check:false
  so, this is inconsistent with the result of ajaxSubmit, it should
  return  [true,false]

 What is #check?  Unless it's a select element you'll only have one
 value for that element.  ajaxSubmit submits an entire form but your
 call to fieldValue is asking for the value of a specific element.


[jQuery] jquery form plugin ajaxSubmit / fieldvalue inconsistent behaviour [jquery form]

2009-07-31 Thread rekna

if you have in html the following:

input type=checkbox value=true name=check/
input type=hidden value=false name=check/

ajaxSubmit will submit :

check : true
check : false

$(#check).fieldValue() will return
[ true ]

so, this is inconsistent with the result of ajaxSubmit, it should
return  [true,false]


[jQuery] jqgrid default loaderror handler : is it possible?

2009-07-21 Thread rekna

Hi, I would like to specify a default loaderror handler for all my
jqgrids...

1. is this possible with $.extend($.jgrid.defaults...)?
2. how can I get a reference to the grid in my default loaderror
handler?


[jQuery] autocomplete mustmatch problem [autcomplete]

2009-07-18 Thread rekna

I'm using jquery autocomplete 1.0.2. The autocomplete retrieves data
from the server and the option mustmatch is set to true.

My data on the server has a code field and a description, and I'm
returning
code+ +description|id
an example of data returned by the server would be:
FIN Finance|2
PER Personel7

This work fine except when the code field contains numeric data, eg.
010 Finance|2
020 Personel7

In this case, when an element is selected, the textbox is cleared on
selection, although I have a valid selection.
The result event however is triggered, so this indicates I have a
valid selection. The result event is used to set a hidden field to the
id of the selected item.

What do I need to change to make this work?


[jQuery] [autocomplete] mustmatch problem

2009-07-17 Thread rekna

I'm using jquery autocomplete 1.0.2. The autocomplete retrieves data
from the server and the option mustmatch is set to true.

My data on the server has a code field and a description, and I'm
returning
code+ +description|id
an example of data returned by the server would be:
FIN Finance|2
PER Personel7

This work fine except when the code field contains numeric data, eg.
010 Finance|2
020 Personel7

In this case, when an element is selected, the textbox is cleared on
selection, although I have a valid selection.
The result event however is triggered, so this indicates I have a
valid selection. The result event is used to set a hidden field to the
id of the selected item.

What do I need to change to make this work?


[jQuery] (validate) submit using submithandler : how to post value of submit button

2009-07-09 Thread rekna

I'm using jquery validation to validate and submit all my forms.

The submitHandler of jquery validation uses jquery form plugin to
submit the form using $(form).ajaxSubmit()

Without validation, you can use $(form).ajaxForm(...) to submit your
form using ajax, and this will also send the value of the button which
caused the submit.

With validation, I have to use ajaxSubmit, instead of ajaxForm, but
ajaxSubmit can not automatically add the value of the submit button to
the POST values.

Is there a generic way, to find out in the submitHandler of jquery
validation, which button was pressed that caused the submit ?



[jQuery] Re: (validate) submit using submithandler : how to post value of submit button

2009-07-09 Thread rekna

Ok, thanks, it works know... also, don't forget (like me) to give a
name (name=...) to your submit button, or else it won't work.

On Jul 9, 12:40 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
 The latest version (1.5.5+) includes a feature that automatically
 appends a hidden field to the form with the name/value pair of the
 submit button, before calling submitHanlder (and removing it
 afterwards). So you can just use ajaxSubmit.

 Jörn

 On Thu, Jul 9, 2009 at 11:43 AM, reknarek...@gmail.com wrote:

  I'm using jquery validation to validate and submit all my forms.

  The submitHandler of jquery validation uses jquery form plugin to
  submit the form using $(form).ajaxSubmit()

  Without validation, you can use $(form).ajaxForm(...) to submit your
  form using ajax, and this will also send the value of the button which
  caused the submit.

  With validation, I have to use ajaxSubmit, instead of ajaxForm, but
  ajaxSubmit can not automatically add the value of the submit button to
  the POST values.

  Is there a generic way, to find out in the submitHandler of jquery
  validation, which button was pressed that caused the submit ?


[jQuery] superfish scroll 1px in IE7

2009-03-09 Thread rekna

When I click on a superfish menu item, in IE7 the page sometimes
scrolls 1px down... It happens also on the demo page of superfish.

Eg. basic style demo, click on 3rd menu item in IE (make sure the
browser initially is scrolled all the way to the top), then the page
is scrolled 1px