P
pamelafluente
The precious input given by Laurent, Martin, Benjamin about
XMLHttpRequest in Javascript, has made me think that perhaps I could
improve what I am currently doing by using Ajax.
Let's make it simple and schematic, to see if there is a simple Ajax
answer to this.
A. I have an HTML page which has some pure html/css code representing a
GRID of cell. The page may also contain other objects (images, etc).
B. On the server I have a windows application which is able to generate
by direct construction of the string, the html representing this GRID.
On the html page I have a simple javascript which is capable to
submit() to an asp page a form which describes the changes the user
requires to be done on the GRID (for instance a drill down). The server
is capable to generate the new html (of the new GRID).
QUESTION.
Has I understand the Ajax technology, it should allow me to redraw the
grid ONLY, without reloading the whole page. Assume we have:
<DIV id="Grid Container">... Here the grid html <DIV>
and assume I have the string to represent the inner HTML "grid html".
1. How would I do the HTML substitution within <DIV id="Grid
Container"> ... <DIV> by using an Ajax style (using async
XMLHttpRequest) javascript?
2. Would that be reliable or is it advisable to reload the whole page.
Thanks for any help.
-Pam
XMLHttpRequest in Javascript, has made me think that perhaps I could
improve what I am currently doing by using Ajax.
Let's make it simple and schematic, to see if there is a simple Ajax
answer to this.
A. I have an HTML page which has some pure html/css code representing a
GRID of cell. The page may also contain other objects (images, etc).
B. On the server I have a windows application which is able to generate
by direct construction of the string, the html representing this GRID.
On the html page I have a simple javascript which is capable to
submit() to an asp page a form which describes the changes the user
requires to be done on the GRID (for instance a drill down). The server
is capable to generate the new html (of the new GRID).
QUESTION.
Has I understand the Ajax technology, it should allow me to redraw the
grid ONLY, without reloading the whole page. Assume we have:
<DIV id="Grid Container">... Here the grid html <DIV>
and assume I have the string to represent the inner HTML "grid html".
1. How would I do the HTML substitution within <DIV id="Grid
Container"> ... <DIV> by using an Ajax style (using async
XMLHttpRequest) javascript?
2. Would that be reliable or is it advisable to reload the whole page.
Thanks for any help.
-Pam