html - How to make a RESTful search button? -
I need to search based on the word in the text box. I simply: the user clicks on something and returns the result Are given.
It is quite straightforward, except that I really have difficulty implementing it. The problem is, I want to do it as soon as possible, so I do not want to create a button as follows:
Because this will post data to the server, and I do not want to post one because I am not changing any status. I am retrieving data based on value in the search box
I want to do this as a simple link, such as:
But it should be styled in the form of a button. If I was using input, then I could have a CSS like this:
.standardButtonStyle {background: url ("..//images/search_button.png") No-repeat Scroll 0 transparent; Limit: 0 none; White color; Cursor: indicator; }
But I do not think I can apply it to anchor tag. Can anyone tell me the right way to do this?
1) You can choose the method for your form if you type attribute in your form tag "method = If the 'receive' is given, the request will not be a post, but the one gets.
2) You want "input" if you want to create a button.
3) You can put an image tag inside the anchor tag, in which search button png is kept as its source.
I think you got a little bit caught in complexity I would not think that, in fact, it seems as complicated as it is as important as you do.
Comments
Post a Comment