SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    save click in table

    I have a button that toggles the display of a hidden div:
    PHP Code:
    echo '<button class="button0" onclick="showDiv(this.value)" value="itemInfo' $counterz '">Item Info</button>'
    Is there a simpler way to save that button click to a table than using an ajax call? If so, how would you do it?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by nichemtktg View Post
    Is there a simpler way to save that button click to a table than using an ajax call? If so, how would you do it?
    Ajax allows you to communicate with the web server without needing to reload the page.

    Simpler ways involve reloading the page. Is that what you're willing to live with?
    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
  •