Quantcast
Channel: Pragmatic Forums | Posts in topic 'is there an effect that changes a save button when a change is made to a form?'
Viewing all articles
Browse latest Browse all 27

is there an effect that changes a save button when a change is made to a form? posted by Christophe Porteneuve @ Sun, 15 Feb 2009 14:45:40 +0000

$
0
0

Hey Lawrence and Patrick, sorry for the massive delay in replying.

There’s no specific effect for disabling/graying out a button. Playing with the disabled attribute is certainly necessary, and if you want a custom L&F across browsers, you’ll need to add some class to it when it’s disabled and use a custom CSS rule for it.

As for your Sortable issue, I see a number of issues with your code, and it certainly b0rks for me on whatever browser I test.

The main issue is, you should use the same container ID on your create call and you serialize call, otherwise you won’t get anything (you’ll get Sortable.serialize to raise an error, actually).

Also, you could simplify your call and avoid double-encoding by just passing the result of the serialize call as your parameters option, as serialize returns a propery query string (named after your list’s id= attribute, unless you passed it an overridding option for the parameter base name.

‘HTH


Viewing all articles
Browse latest Browse all 27

Latest Images

Trending Articles





Latest Images