Wiki source for JavascriptuPublisher
=====uPublisher=====
uPublisher is a javascript class designed to give writers, artists, and small publishers with some experience with javascript a means for distributing their work on free websites like googlepages that enable javascript but do not allow the kind of server-side access typically necessary to build dynamic web pages.
**license** : [[http://www.opensource.org/licenses/gpl-license.php GPL2]]
**source** : [[http://upublisher.googlecode.com/svn/trunk/ google code]]
**demo** : [[http://klenwell.googlepages.com/demo.upublisher.htm klenwell.googlepages.com]]
When this project reaches a stage where it is stable and ready for wider usage, it will be available on the [[http://code.google.com/p/upublisher/downloads/list project download page]].
please report any issues or bugs on the [[http://code.google.com/p/upublisher/issues/list?can=1 project page issue list]]
====Status====
**current release version** 0.3
**last stable release** n/a
**to do**
hideable page handlers
data file production
++resolve stylesheet loading issue++
++start over link on last page++
====Sample Usage====
**working example**
the code below is the actual code from the [[http://klenwell.googlepages.com/demo.upublisher.htm demo]] listed above
%%(javascript)
<!-- Note : must be called from body; if called from head, will not autoload properly -->
<!-- google code repository : http://upublisher.googlecode.com/svn/trunk/ -->
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/intro.data.js"></script>
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/upublisher.ini.js"></script>
<!-- Test Script -->
<script type="text/javascript">
var debug = 0;
var MyPublisher = new uPublisher(debug);
var stylesheet = 'upublisher.default.css';
MyPublisher.ini();
MyPublisher.load_file();
MyPublisher.build_page();
MyPublisher.add_page_handler_img('last', MyPublisher.dirpath + 'image/dogear.back.png');
MyPublisher.add_page_handler_img('next', MyPublisher.dirpath + 'image/dogear.next.png');
MyPublisher.add_stylesheet(stylesheet);
MyPublisher.publish('uBook');
</script>
%%
----
CategoryJavascript
uPublisher is a javascript class designed to give writers, artists, and small publishers with some experience with javascript a means for distributing their work on free websites like googlepages that enable javascript but do not allow the kind of server-side access typically necessary to build dynamic web pages.
**license** : [[http://www.opensource.org/licenses/gpl-license.php GPL2]]
**source** : [[http://upublisher.googlecode.com/svn/trunk/ google code]]
**demo** : [[http://klenwell.googlepages.com/demo.upublisher.htm klenwell.googlepages.com]]
When this project reaches a stage where it is stable and ready for wider usage, it will be available on the [[http://code.google.com/p/upublisher/downloads/list project download page]].
please report any issues or bugs on the [[http://code.google.com/p/upublisher/issues/list?can=1 project page issue list]]
====Status====
**current release version** 0.3
**last stable release** n/a
**to do**
hideable page handlers
data file production
++resolve stylesheet loading issue++
++start over link on last page++
====Sample Usage====
**working example**
the code below is the actual code from the [[http://klenwell.googlepages.com/demo.upublisher.htm demo]] listed above
%%(javascript)
<!-- Note : must be called from body; if called from head, will not autoload properly -->
<!-- google code repository : http://upublisher.googlecode.com/svn/trunk/ -->
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/intro.data.js"></script>
<script type="text/javascript" src="http://upublisher.googlecode.com/svn/trunk/upublisher.ini.js"></script>
<!-- Test Script -->
<script type="text/javascript">
var debug = 0;
var MyPublisher = new uPublisher(debug);
var stylesheet = 'upublisher.default.css';
MyPublisher.ini();
MyPublisher.load_file();
MyPublisher.build_page();
MyPublisher.add_page_handler_img('last', MyPublisher.dirpath + 'image/dogear.back.png');
MyPublisher.add_page_handler_img('next', MyPublisher.dirpath + 'image/dogear.next.png');
MyPublisher.add_stylesheet(stylesheet);
MyPublisher.publish('uBook');
</script>
%%
----
CategoryJavascript