Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-16-2011, 01:46 AM   PM User | #1
ankifreeze
New Coder

 
Join Date: Dec 2010
Posts: 62
Thanks: 2
Thanked 0 Times in 0 Posts
ankifreeze is an unknown quantity at this point
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 11:19 AM..
ankifreeze is offline   Reply With Quote
Old 02-16-2011, 01:55 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 02-16-2011, 02:33 AM   PM User | #3
ankifreeze
New Coder

 
Join Date: Dec 2010
Posts: 62
Thanks: 2
Thanked 0 Times in 0 Posts
ankifreeze is an unknown quantity at this point
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....
ankifreeze is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:54 PM.


Advertisement
Log in to turn off these ads.