Developing Feather-Weight Webservices with JavaScript

greeking.js in action

The following is sample usage from the greeking.js covered in the previous chapter, Configurable greeking. The samples are dynamically generated by the service.

Reload to redraw the greeking output

Title

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?type=title">
</script>

Name

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?type=name">
</script>

URL

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?type=url">
</script>

Email

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?type=email">
</script>

3 paragraphs in <p>

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?pc=3">
</script>

2 short paragraphs in locally defined CSS class, <div class=“result”>

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?delim=div;class=result;pc=2;wc=3,20">
</script>

A 17 word <blockquote>

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?pc=1;delim=blockquote;wc=17">
</script>

2 text blocks joined with <br /><br />

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js?pc=2;delim=brbr">
</script>

Default paragraphs, no args

<script type="text/javascript"
 src="http://elektrum.org/js/greeking.js">
</script>
« Configurable greeking · Object orientating and prototypes »
Google
 
Web Developing Featherweight Web Services with JavaScript
This is version 0.57b of this manual. It is a beta version with some gaps. We are grateful for feedback.

The code is the manual has not yet been fully tested against Internet Explorer. Bug reports are welcome.
An Elektrum Press Online