[campsite-dev] Ticket #1791 (Use Ajax to save article screen)
  • ----- Forwarded by Sava Tatic/Mdlf on 07/28/2008 04:21 PM -----

    "Pavel Novitsky"
    m> cc:
    Subject: Ticket #1791 (Use Ajax to save article screen)
    07/27/2008 12:29
    PM






    Hello,
    my name is Pavel Novitsky. I saw your ticket
    http://code.campware.org/projects/campsite/ticket/1791

    Accordin to date and ticket history, it was opened long ago and you still
    have no time to close it.
    I did not look at API of campsite, so wrote easy example how to send data
    to database using AJAX without any library.

    In attachement is archive with files:
    dump.sql - table with fields: id, short text, long text
    db.php - connect to database (edit it to set database name, user and
    password)
    index.php - form + php script
    script.js - 3 functions: send request, check form fields, receive response

    If JavaScript is disabled, example will work with page reload.

    Hope, this example will be helpful.

    Best regards,
    Pavel
    (See attached file: test.zip)


    Invest in Press Freedom: Visit http://www.mdlf.org/support-free-press