Results 1 to 4 of 4

Thread: AJAX to PHP file command

  1. #1
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default AJAX to PHP file command

    What I'm looking to do is, I have a small gallery page that displays images. Below each image I have a link that is for deleting the image, but I don't want to have to go to another page and then reload and all that. What I need is an ajax command from my link so asynchronously call my php delete page then return with a small message box saying that it has completed or hasn't completed. How can I do this?

    Thanks in advance for any help.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    It's very simple:
    Learn ajax at http://www.w3schools.com/Ajax/Default.Asp
    Jeremy | jfein.net

  3. #3
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

    Ok not exactly the answer I was looking for here. I came to this forum for a little bit of help please. I understand ajax and have used it before but I cannot get this to work, thank you.

  4. #4
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    First of all, you may want to start with XMLHttpRequest and XMLDOM folders. This will allow you to access your .php page.

    -magicyte

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
  •