Hello,

> mike wrote:
> 
> > When I do Search in the web-browser, is there any way to get it to
> > search the values in the fileds of the form?
> > 
> > Currently all the values show up, but they dont seem to 
> appear to be in
> > scope for searching
> 
> 
> Show some code -- likely your logic is wrong -- if using CGI module
> then capture all params in a single arrary, or hash, then walk
> thru the data.
> 
> If you normalize the CGI input to a sane value (IE, make string zero 
> numeric 0 and undefined input as empty strings) you can control
> the order they are placed into the array then you can use array
> index to make sure you are looking at the right array to CGI
> input values.

Actually, I think the OP means that text in form fields in his CGI-generated
web page can't be searched using the _browser's_ find feature (eg. when
pressing Ctrl-F in your browser window and typing some of the text that's in
a form field, it won't be found).

If that's the question, it is indeed totally unrelated to Perl and, indeed,
even to CGI. That is the browser's behaviour. As far as I know, this is true
for all browsers. For text to be searchable by the search function in the
browser, it has to be text on the web page itself, not in form fields.

In the interest of completeness, I will suggest one way of dealing with this
(assuming your user really needs to be able to both search and modify the
text) : Provide the text on the page (say "old value"...) _and_ in a form
field that will allow modification. That way, the text can be searched, and
it has the added benefit that the user will see the old value when modifying
it. Of course, if the text really doesn't need to be modified, then just put
it on the web page, not in a form field, and that will do it.

For more info about the search feature in web browsers, I suggest either the
Mozilla documentation (or the docs for some other browser), or you may want
to find a forum on browser development to ask what the behaviour of the
search feature with form fields really is.

Hope this helps,

J-S

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to