RE: searching on client side.
Use javascript and a button to invoke the browser find function. Edgar > -Original Message- > From: imran ali [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 4:17 PM > To: Struts Users Mailing List > Subject: searching on client side. > > > Hi All, > I am having a table in my jsp. I have a text box which > takes value of a particular column, make search on that column and > finally displays only those rows which have those columns. And if > I again want to search on some other column it will search in > initial collection of values and will give me result. > > How can I achieve it on client side itself without going to > server. > > Please help . > Imran. > > > > Imran > ___ > Click to Order Your Prints For Delivery Anywhere > in India at http://www.kodakexpress.co.in > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: searching on client side.
agree. I tried to do something like that a couple of years ago, when there were still some poor suckers out there with netscrape 4.7x multiple different scripts, browser detection, if ns4 or if ie5 or whatever ... too bad they all couldn't agree with w3c on how stylesheets should work. another problem with ns4: if you don't actually use inline styles with elements, linked or embedded stylesheets will not work. What a cheesy browser that was. those guys should be ashamed of themselves :-( - Original Message - From: "Daniel Wang" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "imran ali" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 2:27 PM Subject: Re: searching on client side. > A *lot* of javascript. > > You can basically iterate through the entire table, i.e. with something like > document.getElementsByTag("TR"); use RegEx to find the data you want; and > then hide the other rows by turning CSS style display to 'none' > > Imho, the client is not the right place to do this... > > daniel > > - Original Message - > From: "imran ali" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, September 17, 2003 2:17 PM > Subject: searching on client side. > > > > Hi All, > > I am having a table in my jsp. I have a text box which > > takes value of a particular column, make search on that column and > > finally displays only those rows which have those columns. And if > > I again want to search on some other column it will search in > > initial collection of values and will give me result. > > > > How can I achieve it on client side itself without going to > > server. > > > > Please help . > > Imran. > > > > > > > > Imran > > ___ > > Click to Order Your Prints For Delivery Anywhere > > in India at http://www.kodakexpress.co.in > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: searching on client side.
A *lot* of javascript. You can basically iterate through the entire table, i.e. with something like document.getElementsByTag("TR"); use RegEx to find the data you want; and then hide the other rows by turning CSS style display to 'none' Imho, the client is not the right place to do this... daniel - Original Message - From: "imran ali" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 2:17 PM Subject: searching on client side. > Hi All, > I am having a table in my jsp. I have a text box which > takes value of a particular column, make search on that column and > finally displays only those rows which have those columns. And if > I again want to search on some other column it will search in > initial collection of values and will give me result. > > How can I achieve it on client side itself without going to > server. > > Please help . > Imran. > > > > Imran > ___ > Click to Order Your Prints For Delivery Anywhere > in India at http://www.kodakexpress.co.in > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]