Brent
|
| Posted: 06/25/2002, 2:55 PM |
|
I've been delving into adding a clear button that will clear the
values of the search form AND call the grid to redisplay it without
the filter.
Clearing the values of the search form is easy enough to do in the
button's on click event. The problem is of course it won't call the
grid with the new empty search fields.
I traced this problem to my OnClick function not returning True. After
adding True it does call the grid but it doesn't use the empty fields
as the search parameters. Instead it uses the
$querystring = CCCollectionToString($HTTP_GET_VARS,
$RemoveParameters);
and of course that is using the old parameters with $HTTP_GET_VARS and
not the new empty ones.
So the only thing I've come up with is to do my own:
header("Location: grid.php");
in my OnClick event and forget about trying to run the maze of trying
to satisfy the CCS routines.
Does anyone care to offer their suggestions? TIA
Brent
|
|
|
 |
keijen
|
| Posted: 06/25/2002, 3:18 PM |
|
I add this to the search form in the html...clears Search form and resets
grid to show all.
<input type="button" class="YourStylevalue="Clear Search"
onclick="location.href=YourPageName.asp'">
"Brent" <bdgridly@mailbolt.com> wrote in message
news:99phhukr6khied40pthqgkhq7fph1b8o0b@4ax.com...
> I've been delving into adding a clear button that will clear the
> values of the search form AND call the grid to redisplay it without
> the filter.
>
> Clearing the values of the search form is easy enough to do in the
> button's on click event. The problem is of course it won't call the
> grid with the new empty search fields.
>
> I traced this problem to my OnClick function not returning True. After
> adding True it does call the grid but it doesn't use the empty fields
> as the search parameters. Instead it uses the
>
> $querystring = CCCollectionToString($HTTP_GET_VARS,
> $RemoveParameters);
>
> and of course that is using the old parameters with $HTTP_GET_VARS and
> not the new empty ones.
>
> So the only thing I've come up with is to do my own:
> header("Location: grid.php");
>
> in my OnClick event and forget about trying to run the maze of trying
> to satisfy the CCS routines.
>
> Does anyone care to offer their suggestions? TIA
>
> Brent
|
|
|
 |
keijen
|
| Posted: 06/25/2002, 3:30 PM |
|
Ooops - typos, try again...must stop rushing...
<input type="button" class="YourStyle" value="Clear Search"
onclick="location.href='YourPageName.asp' ">
"keijen" <keijen@ozemail.com.au> wrote in message
news:afaq85$9ak$1@news.codecharge.com...
> I add this to the search form in the html...clears Search form and resets
> grid to show all.
>
> <input type="button" class="YourStylevalue="Clear Search"
> onclick="location.href=YourPageName.asp'">
>
>
> "Brent" <bdgridly@mailbolt.com> wrote in message
>news:99phhukr6khied40pthqgkhq7fph1b8o0b@4ax.com...
> > I've been delving into adding a clear button that will clear the
> > values of the search form AND call the grid to redisplay it without
> > the filter.
> >
> > Clearing the values of the search form is easy enough to do in the
> > button's on click event. The problem is of course it won't call the
> > grid with the new empty search fields.
> >
> > I traced this problem to my OnClick function not returning True. After
> > adding True it does call the grid but it doesn't use the empty fields
> > as the search parameters. Instead it uses the
> >
> > $querystring = CCCollectionToString($HTTP_GET_VARS,
> > $RemoveParameters);
> >
> > and of course that is using the old parameters with $HTTP_GET_VARS and
> > not the new empty ones.
> >
> > So the only thing I've come up with is to do my own:
> > header("Location: grid.php");
> >
> > in my OnClick event and forget about trying to run the maze of trying
> > to satisfy the CCS routines.
> >
> > Does anyone care to offer their suggestions? TIA
> >
> > Brent
>
>
|
|
|
 |
|