473,378 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Doubt regarding the implementation of div tag in javascript funcion

Hi ,

I am working in ajax using a javascript file and a jsp file. Its a tree generation and I need to place div tag under all the nodes that have children. The div tag needs to be placed in the javascript file as a function in the js file is responsible for adding the nodes in the tree. I feel stuck in this place as I dont know how to use a div tag in a javascript function. I am not supposed to use the document.write function here as the request is dynamic and the page does not get reloaded after the request is made.


Thanks
Sep 28 '06 #1
1 1539
phpmaet
27
Hi,
you can load the all AJAX response content in the DIV ID.


Expand|Select|Wrap|Line Numbers
  1. document.getElementById("DIV_ID").innerHTML="";
  2. document.getElementById("DIV_ID").innerHTML=HTTP.responseText;    
Thanks
Sep 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JF | last post by:
Hi, can somebody give me a minimal example of how to read xml file into mozilla AND run some Javascript funcion? Mozilla can read xml files directly and css files can be included as well,...
0
by: Jorge Gallardo | last post by:
Hola a todos... Vereis, me gustaria saber si se pueden asignar las teclas del F1...al F12, a alguna instruccion dentro de access, ejemplo macro, funcion, consulta. etc etc... Estoy pensando en...
0
by: Marcin Jaworski | last post by:
Hi. I'm working on some project. We need application in C# with web control in it in which we need to load a page with javascript. This javascript must have some posibility to talk with our...
1
by: Jon | last post by:
Hello all, The following <a> which contains a javascript window.open is causing the error: 'return statement outside of funcion' and the link.. <a...
18
by: bsruth | last post by:
I tried for an hour to find some reference to concrete information on why this particular inheritance implementation is a bad idea, but couldn't. So I'm sorry if this has been answered before....
4
by: Anarki | last post by:
##include <iostream> using namespace std; class A { }; class B:virtual public A { }; class C:virtual public A
8
by: somenath | last post by:
Hi All, I have a doubt regarding the pointer assignment . Please have a look at the following program . #include<stdio.h> #include<stdlib.h> #define NAMESIZE 10 #define SAFE_FREE(t) if(t)\...
15
by: somenath | last post by:
Hi All, I am not able to understand the behavior of the bellow mentioned program. #include<stdio.h> int main(void) { printf("\n Size = %d \n",sizeof 1<0); return 0;
11
by: whirlwindkevin | last post by:
I saw a program source code in which a variable is defined in a header file and that header file is included in 2 different C files.When i compile and link the files no error is being thrown.How is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.