This topic is locked

Advanced seach

12/8/2009 4:39:38 PM
ASPRunnerPro General questions
L
luic author

Is there any way I can set the set default to Any Condition for the advanced search page when it is loaded?
Chris.

L
luic author 12/9/2009

Does it mean that the code will be :
<script>

function setSelectedIndex(s, v)

{

for ( var i = 0; i < s.options.length; i++ )

{

if ( s.options[i].text == v )

{

s.options[i].selected = true;

return;

}

}

}

setSelectedIndex(document.editform.type,"or"); ShowHideControls();

</script>

J
Jane 12/10/2009

Chris,
there is a more easy way: add Search page: Before displayevent and use following code:

any_checkbox = "value=""or"""

any_checkbox = CSmartStr(any_checkbox) & " checked"

xt.assign "any_checkbox",any_checkbox