Is it possible to do this?

B

Bart Simpson

Is it possible to update only certain portions of a web page (without
uploading/refreshing the entire page)?.

I have a table displayed in a web page, and I would like to be able to
update the data in the table, cell by cell. That is to say, I could have
a function like so:

function updateCell(tablename, column_number, row_number) {

/* what goes here ? */

}

I suspect that the DOM (which I know next to nothing about), comes to
play here.

I look forward to any useful feedback.

Thanks
 
D

Deepak

ya u can do that with the help of AJAX. Ajax helps u to get the data
from the server. Then with the help of javascript u can update that
table.
 
B

Bart Simpson

Deepak said:
ya u can do that with the help of AJAX. Ajax helps u to get the data
from the server. Then with the help of javascript u can update that
table.

Thanks Deepak - anygood tutorials on AJAX. Google searches seem to
bringing up only "Hello World" type examples.
 
D

Deepak

Ajax is new technology that helps u to get the content with the help of
javascript. You can contact me through google talk at
(e-mail address removed) if u want to learn more.
 
D

Dag Sunde

Deepak said:
Ajax is new technology that helps u to get the content with the help of
javascript. You can contact me through google talk at
(e-mail address removed) if u want to learn more.

AJAX is just a new, fancy name for several old techniques used
for communicating with the server without refreshing the current
page.

Traditionally it was done using an hidden iframe, today the
XmlHttp object is more popular.

Here is a good starting point that focuses mostly on the relatively
new XmlHttp object:
http://www.ajaxmatters.com/r/welcome
 
D

Deepak

Deepak said:
Ajax is new technology that helps u to get the content with the help of
javascript. You can contact me through google talk at
(e-mail address removed) if u want to learn more.


If your are going to reply to my post, please quote it. Also, please
stop posing in gobbledegook, this isn't a chat room.

--
Ian Collins.




Thanx Dag,
It's good to hear more of this topic. Also the info is really
great that the same can be achieved by iframes but that process was
really complex in the sense as it is tough to resize the iframes. I
have faced that problem.
But today this have solved many problems.
Also this give close impact of windows forms to web forms.


Ian,
I am here just to help.
Also i have given u some links so u can trace them to get more out
of that.
 
D

Dr John Stockton

JRS: In article <[email protected]>,
dated Tue, 21 Feb 2006 05:11:40 remote, seen in
news:comp.lang.javascript said:
Is it possible to update only certain portions of a web page (without
uploading/refreshing the entire page)?.

I have a table displayed in a web page, and I would like to be able to
update the data in the table, cell by cell. That is to say, I could have
a function like so:

function updateCell(tablename, column_number, row_number) {

/* what goes here ? */

}

I suspect that the DOM (which I know next to nothing about), comes to
play here.

Posting under a false name shows a juvenile attitude. Posting with an
address that you do not have the right to use is an abuse of someone
else's resources, and against the AUP of respectable ISPs. Articles
should have meaningful Subject lines. Read the newsgroup FAQ.

You do not say where the new data is coming from. If it is coming from
a remote server, you may want to use AJAX. But if it can be generated
locally, then the matter can be handled without re-contacting the
server; here is a near-minimal example :-

<BODY>

<script type="text/javascript">

if (document.all && !document.getElementById) { // e.g. IE4
document.getElementById = function(id) {
return document.all[id] } }

function X() { document.getElementById("Y").innerHTML = new Date() }

</script>

<table border=1><tr><td ID=Y>target</td></tr></table>

<button onClick="X()">xxx</button>

</BODY>

Read the newsgroup FAQ; see below.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top