SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    556
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to post a simple form and display result in colorbox ?

    Hi,

    I have a very basic html form which is currently POSTing data to a php script.
    Upon getting data the php script saves the data in db and shows a message of a line or 2.

    How can I submit the form but display result using colorbox without refreshing the page ?


    Or is it possible to show colorbox on page load ?

    Thanks.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Tapan View Post
    How can I submit the form but display result using colorbox without refreshing the page ?
    AJAX is how you would do that. The book Bulletproof Ajax teaches you nicely about the topic. They even have lots of useful code examples on their site.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •