SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Jul 22, 2007, 10:37 #1
- Join Date
- Jul 2007
- Posts
- 21
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
refresh problem type='image' button
hello,
I hope someone can give me the answer to this problem.
In stead of using a normal submit type button for my form i want to use an image-type button because i think that's nicer for the design.
Problem with that is that the image-type button preform a refresh/reload so it makes the textfield blank again, something the normal submit-button doesn't do.
So i like to keep the textfield filled after hitting the image-type button just like the normal submit-type button would.
Check it out here:
http://www.newsclick.nl/test.html
I hope someone can help me out here !
best regards
Fraloom
-
Jul 22, 2007, 11:02 #2
You're talking about a regular button, not submit button. Image button submits the form too; to avoid that, you can change onclick="randomString(); return false"
Saul
-
Jul 22, 2007, 12:36 #3
- Join Date
- Jul 2007
- Posts
- 21
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thank you PHP, that did the trick !
Bookmarks