!!!!!
(2)
These Ajax-ized modules are just for XOOPS 2.0.x.( I modified modules of XOOPS 2.0.13.x)
(so..maybe some of them won't work properly on XOOPS 2.O.x JP because of the difference of One-Time Token System.
the package for XOOPS 2.0.x JP already exits because I already released it!)
##XOOPS 2.0.x JP(Cube) Basic Modules AJAX Hack Project##
http://xoopscube.org/modules/xhnewbb/viewtopic.php?viewmode=flat&topic_id=86&forum=2(3)
If you want to test these ajax-ized modules with my DD&Resize&Window themes,
You must replace prototype.js of theme with prototype.js of module!!(because I changed some codes for this project.)
And delete prototype.js of each module!!!
Otherwise, it won't work properly on IE because it's already included in page-header of my themes.
( Just delete prototype.js of each module!!
ex: in case of ajax-ized mydownloads module, Just delete mydownloads/include/prototype.js and it will work well on IE !!)
## XOOPS Cube/XOOPS Default Theme Drag&Drop&Resize&Window Version ##
https://xoops.org/modules/newbb/viewtopic.php?topic_id=48487&forum=14-----------------------------------------------------------------
-------------------------------
How to install?!
---------------------------------
Simple!
First(of All),
we need to copy this three smarty plugins
block.ajax_formupdate.php
block.ajax_form.php
function.ajax_update.php
to smarty's plugin dir,html/class/smarty/plugins/
And..
Install each of them like normal modules!
That's all!
---------------------------
-------------------------------
How to upgrade?!
---------------------------------
more simple!
Overwrite and upgrade each module through Admin menu.
---------------------------
---------------------------
Basic Idea
-------------------------
Simple!
Using Ajax,
we refresh/rewrite only Content section(id="content")(I mean module section of theme) instead of whole page.
ex)
/themes/default/themes.html
<{$xoops_contents}>
------------------------
------------------------------
Now, let's check how they work!
------------------------------
(in case of contact)
1) access ~/modules/contact/
2) fill the contact form!
3) Click Send button!
Ha..Ha
No refresh!!
How is it possible?
Simple!
With Ajax,
we refresh/rewrite only Content section(id="content")(I mean module section of theme) instead of whole page.
ex)
/themes/default/themes.html
<{$xoops_contents}>
----------------
(in case of xoopsheadline)
1) access ~/modules/xoopsheadline/
2) select/click your favorite feed!
Ha..Ha
No Page-Refresh!!
click other feed!
No Page-Refresh!!
Just refresh of Content section( I mean
<{$xoops_contents}>
)
Don't you think it's interesting and more efficient than Page-refresh ?
--------------------
(in case of mydownloads, mylinks ,newbb and etc. )
..Just browse it!!! and you can understand how it works !!
--------------------
------------------------------
files and scripts used for this project!
------------------------------
prototype.js
/* Prototype JavaScript framework
* (c) 2005 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://prototype.conio.net/
*
(modified for this project by wanikoo )
/*--------------------------------------------------------------------------*/
Smarty_ajax plugins
(modified for this project by wanikoo and based on AJAX-enabled Smarty plugins,author Dmytro Shteflyuk (GPL))
--------------------------------
-------------------------------------
Support Forum:
XOOPS 2.0.x JP(Cube) Basic Modules AJAX Hack Project
http://xoopscube.org/modules/xhnewbb/viewtopic.php?viewmode=flat&topic_id=86&forum=2
Related Project:
XOOPS Cube/XOOPS Default Theme Drag&Drop&Resize&Window Version
http://xoopscube.org/modules/xhnewbb/viewtopic.php?viewmode=flat&topic_id=81&forum=3
https://xoops.org/modules/newbb/viewtopic.php?topic_id=48487&forum=14
---------------------------------------
---------------------------------------
PS:
With Ajax, we can control output of any module more detailedly.
but...I think it just could make code very complicated and make us modify more files.
...
By refreshing/reloading the module content section of theme,
We can
easily make basic modules ajax-based
and
reuse/recycle most files of basic modules with little modification.
--------------------------------------------
From wanikoo
the most educational site, wanisys.net