<%= lib.iif("rbFilterGender", "checked", "") %>
is an inline if ... you could read it as
if "rbFilterGender" then
...
end if
in your case it always returns false as you evaluating a string ...
change it to
<%= lib.iif(page.RFHas("rbFilterGender"), "checked", "") %>
be sure that this field is posted .. if you have it in a form with id=frm then it should work fine..
page.RFHas() checks if a given posted field contains a value different than empty string.
On Jul 3, 2009 2:34am, iblueeyes <
gluvacev...@gmail.com> wrote:
>
>
> Hello everyone,
>
>
>
> i have a small "problem" with ajaxed. I've created a page, made a
>
> custom layout on it and managed to connect it to the MSSQL.
>
>
>
> I have a pagePart where I've put the layout of the tab, and code that
>
> connects and writes data from database. Everything is fine, except one
>
> thing... My problem is a radio button that has ajaxed.callback on the
>
> pagePart where the populated data shows and he also is inside the
>
> pagePart. Basically, it's one of a filter radio group buttons for
>
> retreiving male/female or unfiltered names from the database.
>
> Filter buttons are alive, I get the data displaying and all, only when
>
> pagePart is retreived with data i can't set a clicked button from the
>
> radio group so all 3 options are unchecked...
>
>
>
> This is what I've tried:
>
> Original code:
>
>
> id="rbFilterGender_" onclick="ajaxed.callback('DisplayPseudoNames',
>
> 'content', null, null, 'PseudoNames.asp')" />
>
>
>
> Altered non-working code:
>
>
> id="rbFilterGender_" onclick="ajaxed.callback('DisplayPseudoNames',
>
> 'content', null, null, 'PseudoNames.asp')" checked=