16
so i will do my best:
Quote:
is this ajax overall implementation in XOOPS ? or ajax XOOPS comment system ..is there anyto edit in the comment template or php file ?
hmm i do not realy know what you are meaning. I'm useing this method in my own Moduls. And i'm not so familiar with XOOPS to patch it for the community.
Quote:
- Lightweight-Ajax ? - do i need to install third party application/file in my server ?
hmmm, i use only simple XMLHttpRequest and therefor i mean it is a very simple "Ajax". But it helps me for all my needs.
Quote:
the default/theme.html has the following content (Switch): ...
you mean delete all the content in theme.html and replace with the code you given ? or where do i have to put it?
the complete code(s) were complet printed above. The empty/theme.html only rendering the code from a module without anythin else (header, footer, menu, etc...).
the default-Theme is now in the normal-Theme and will render all things like business as usual.
Quote:
a full theme.html example will be nice
i wrote all things in the last posting ;)
So i code a two normal Page in a Modul with a php-script and a template. The differenz between the two pages are the variable $empty_theme = true; to do rendering the output onl the empty-Theme.
The "normal-Theme"-Modulpage contains a function like
function update(divid, strings...){
do = new myRequest();
do.add('divid', divid);
do.add('stings', encodeURI(strings));
do.add(....); document.getElementById(divid).innerHTML = unescape(do.execute('dosomthing.php','GET'));
}
which is called someware on this page. To put the output someware you need for example one div like:
here comes the output from the function
On the same Page you have a link or button which calls this function:
do click her for ajaxThe function update() will process the "Ajax-Request" and put the output via innerHTML in the div-container. The HTML will be rendered by the php-script with the empty-flag.