Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    problem with append child

    hello, i want to appendchild view3.php to <div id="responsecontainer">...like var x=load(view3.php);$("#responsecontainer").appendchild(x) what should I do?




    Code:
    <script>
    $(document).ready(function() {
    $("#responsecontainer").load("view3.php");
    var refreshId = setInterval(function() {
    $("#responsecontainer").load('view3.php?randval='+ Math.random());
    },6000);
    });
    </script>
    
    <div id="responsecontainer"></div>
    Last edited by ankifreeze; 02-16-2011 at 12:19 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,916
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    I’m not quite sure what you’re trying to do but aren’t you already appending the contents of view3.php to responsecontainer through the load() function?

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    I’m not quite sure what you’re trying to do but aren’t you already appending the contents of view3.php to responsecontainer through the load() function?
    i'm also not sure....what is the like.....I have made chating box but when I type message and load view3.php .it's display irregular...message I type it appears from the middle, not from top of chatbox area... I see many example people use appendchild to make chatbox....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •