SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    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

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you PHP, that did the trick !


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •