homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Update content (php mysql ajax)
php mysql ajax
gonny

5+ Year Member



 
Msg#: 3884203 posted 5:30 pm on Apr 2, 2009 (gmt 0)

Hi all!
I'm looking for an example where ajax call a php function to add something (friend). And after run change content.
Example:

Add Friend (url=friend.php?action=add&id=12)

After run this to change in

Remove Friend (url=friend.php?action=remove&id=12)

Using div and id.

Anyone can give me any example of this?

 

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3884203 posted 7:44 am on May 7, 2009 (gmt 0)

Apologies for late reply.

I am sure there is a reason why you want to use AJAX for this, even though there is technically no need.

What have you got so far? Do you have the AJAX function already, or ...?

gonny

5+ Year Member



 
Msg#: 3884203 posted 5:18 pm on May 7, 2009 (gmt 0)

Nothing :(. No I dont have a function but I can use $_GET['']

DrDoc

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3884203 posted 7:27 am on May 13, 2009 (gmt 0)

Perhaps you should settle for a simple form and regular page update then?

I know that is probably not what you want to hear ... but it is a clean and simple solution, and would certainly cause less of a headache for you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved