how to block the replace

6 views
Skip to first unread message

mediavrog

unread,
Nov 21, 2010, 12:28:03 PM11/21/10
to Custom Form Elements
2009-05-14 15:20:46 CEST by https://sourceforge.net/users/josseve/

Hi, great job ! it's works very nice !

i would like block the replace of certain radiobutton in my page, how
to do this ?



thks

joss

mediavrog

unread,
Nov 21, 2010, 12:28:17 PM11/21/10
to Custom Form Elements
2009-05-14 16:35:29 CEST

Hi there,



if the radiobuttons are placed separately from the form you wish to
enhance, you may pass a scope while initializing cfe.



I'm assuming you're using the latest version 0.9, then you'll have to
create the cfe like this (see cfe.replace.autostart.js)



var myCfe = new cfe.replace( {scope: $('myForm') } );



CFE will now only procede/enhance children in the passed element with
the attribute id=myForm. You may pass any element like fiedsets or
div's.



Other than that, currently there's no other way to explicitly exclude
elements from being enhanced. I'll think over it, maybe i'll add an
option ^^



Kind regards,

Maik

On 21 Nov., 18:28, mediavrog <maik...@web.de> wrote:
> 2009-05-14 15:20:46 CEST byhttps://sourceforge.net/users/josseve/

mediavrog

unread,
Nov 21, 2010, 12:28:35 PM11/21/10
to Custom Form Elements
2009-05-14 21:19:02 CEST by https://sourceforge.net/users/josseve/

infortunatly, the radiobutton for exclude is in the same form of the
rest :(

ok thks



--- other thing ---

I have better position for check & radio with css rule line 128 of
cfe.css

(add) padding-bottom:4px;

(change) vertical-align:middle;

mediavrog

unread,
Nov 21, 2010, 12:28:55 PM11/21/10
to Custom Form Elements
2010-06-16 02:29:34 CEST

thanks for the css fix :)

to recall your radiobutton problem: u may call myCFE.init multiple
times with different scopes (e.g. fieldsets)

On 21 Nov., 18:28, mediavrog <maik...@web.de> wrote:
> 2009-05-14 21:19:02 CEST byhttps://sourceforge.net/users/josseve/
Reply all
Reply to author
Forward
0 new messages