Page created:
Jun 19, 2009 (? ago)
Last modified ? ago
To main page | Opera Unite HowTo's


I'm releasing Uniteness v. 0.11, main major advancement is DEBUG mode:


Images are working

I've found a way to use Yusef's shareDirectory. Things seem to work stable now. If you have downloaded 0.11 already - re-download it. (Didn't want to release 0.12 just as a fix to that).

Auto-magically reloading sources

* There is a wrapper for scripts so that they reload automatically in debug mode:

<script src="serverside/lib/uniteness-0.11.js"></script>
DEBUG = 1; // It's important to define it here
This will make 'serverside/main.js' to be reloaded on each request.


* Errors are displayed to you, but not to your visitors.

Static CSS/JS fix

* Static files (css/js) serving is semi-fixed.

Have to serve them dynamically, but at least they don't break. (Using breaks images on 5-6th access, actually when you first time you request it concurrently, i.e. when previous attempt to load same image hasn't finished - hit Reload rapidly enough 2-3 times and image/js/css is permanently broken, this is kind of fixed with dynamic serving, but can't serve images yet).

(No change in calling convention):
    '_index', start_page,
    'stylesheets', 'static',

New things
function start_page(r) {
    r.URI                 // contains '/my/humane/url'
    r.uri('/bar/?foo')    // will return '/service/bar/?foo'
    r.uri('/')            // will return '/service/' (main page URL)
I know this can be confusing, will think how to fix it.


For complexly nested this can be a way to output contents:
function start_page(r) {

Slava V. [about me]

main page

Last updated

  1. Markuper (HTML templates)
  2. .ua
  3. Opera Unite HowTo's
  4. .us (files)
  5. Distribute Your Application
  6. 24/7 sites (permanent applications - idea) [stub]
  7. Issues
  8. HTTP Connections (AJAX/REST)
  9. Cookies
  10. file_wrap.js - File Wrapper
  11. Basic HowTo: Simple app (tutorial)
  12. Static images, client-side scripts
  13. Application Examples
  14. How to Debug Opera Unite apps
  15. Persistence & databases
  16. Opera Unite benchmark
  17. From PHP to Opera Unite
  18. Uniteness (Framework)
  19. Config.xml
  20. Key-value storage
  21. Widget Object
  22. Notifications (Growl'esque)
  23. Reset (debug)
  24. Cron example
  25. What I meant by CNAMEs
  26. Wish List
  27. Device Unavailable
  28. StopLorem (Opera Unite blogging)
  29. uniteness-0.11
  30. GET/POST data
  31. CRUD And Static (example)
  32. Opera object
  33. URLs
  34. Headers & Redirects
  35. Error Console
  36. JSON State (storing data)
  37. Security
  38. /storage/ (in fileio)
  39. Yusef library
  40. unite_info (a-la php_info)
  41. Javascript Imports
  42. onunload / _close
  43. fileio: Sandboxed Filesystem
  44. Request Hierarchy (like php_info)
  45. Intro: Web Apps with Opera Unite