1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP + Ajax Comments?

Discussion in 'PHP' started by JinRoh, Feb 18, 2007.

  1. #1
    Hello, Does anyone knows and script for comments (like blog comments, but for any website) that uses PHP and Ajax so it doesn't refresh? (Like Phpcomment, but without ajax)

    I found some scripts but they are only for blogs (wordpress).

    Do you know any? I have searched a lot, without finding anything.

    Thanks
     
    JinRoh, Feb 18, 2007 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    Why not just look at the code of the plugins for the ones that are already made for Wordpress and just duplicate it for your needs?
     
    fsmedia, Feb 18, 2007 IP
  3. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, I haven't tried, but I don't know very much about the website languages, so I'm looking for an ""easy"" already-made script, because I don't think I could do it editing the one for blogs.
     
    JinRoh, Feb 18, 2007 IP
  4. jnm

    jnm Guest

    Messages:
    343
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    jnm, Feb 18, 2007 IP
  5. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Didn't found anything on that website (BTW, cool website :) )
     
    JinRoh, Feb 18, 2007 IP
  6. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Icheb, Feb 18, 2007 IP
  7. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello.

    What am I supposed to find there? I can't see any script, or any Comment script.

    Where do I have to search??

    Thanks
     
    JinRoh, Feb 18, 2007 IP
  8. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #8
    AJAX with PHP doesn't get easier than with scriptaculous, so start digging into the site.
     
    Icheb, Feb 18, 2007 IP
  9. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    well, I forgot to say that I know NOTHING about Javascript - AJAX (and very little PHP), so I was looking for a PRE-MADE comment script (possibily in AJAX, or PHP + AJAX)
     
    JinRoh, Feb 18, 2007 IP
  10. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
  11. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #11
    You don't need to know Javascript to be able to use scriptaculous, just rtfm.
     
    Icheb, Feb 18, 2007 IP
  12. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Hello again, scriptaculous it's nice, but I didn't find anything I could use with a "comment script" or a pre-made comment script, As far as I have seen (demos) it's most a script to move things and so... (as I said I don't have much ideas)

    Nico_swd, my comments are supposed to be like blog comments (below the text, but it's not a blog :p) In that website it's seem to be so an user can comment anything from the website, it's not what I was looking for.

    Thanks anyway :)
     
    JinRoh, Feb 19, 2007 IP
  13. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I suggested scriptaculous because I'm using it myself for the exact purpose you want to use it for so get reading.
     
    Icheb, Feb 19, 2007 IP
  14. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Oh, then could you please tell me (or give me the link) where I have to read to learn to do what I want to?

    I searched the web, and started testing the libraries (with nice results), but didn't figure how to use it to do "comments".
     
    JinRoh, Feb 19, 2007 IP
  15. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Some example of what I was looking for are:

    http://www.scriptsmill.com/comments.html

    http://www.gentlesource.com/comment-script/

    But with some AJAX, so it doesn't refresh it would be great :p
     
    JinRoh, Feb 21, 2007 IP
  16. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #16
    rays, Feb 21, 2007 IP
  17. pachecus

    pachecus Well-Known Member

    Messages:
    1,841
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    110
    #17
    I customized other scripts by myself, use ajax for the comment form in one of my websites, the page doesn't has to refresh, visit one article in the articler website in my signature try the comment form and tell me if that is what you are looking for, if yes I can customize it for you.
     
    pachecus, Feb 22, 2007 IP
  18. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Hello! Yes, moreless is that what I was looking for, how did you do that?

    Thanks
     
    JinRoh, Feb 23, 2007 IP
  19. jitesh

    jitesh Peon

    Messages:
    81
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #19
    var docObj = null;

    if (typeof window.ActiveXObject != 'undefined'){
    docObj = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
    docObj = new XMLHttpRequest();
    }

    docObj.open("GET", "file.php?iproduct_id="+iproduct_id+"+&iprod_item_id="+iprod_item_id, false);
    docObj.send(null);
    var Res = docObj.responseText;
    var a=document.getElementById('part');
    a.innerHTML = '';
    a.innerHTML += Res;

    in file.php write server script like
    <?php
    echo "hello";
    ....................
    ....................
    ....................
    ?>


    HTML

    <div id=part>
    Hi
    </div>

    After executing above script you will found
    <div id=part>
    Hello
    </div>
     
    jitesh, Mar 5, 2007 IP
  20. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    ???????????
     
    JinRoh, Mar 16, 2007 IP