couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Skupin <hsku...@gmail.com>
Subject Evently + Pathbinder
Date Thu, 23 Sep 2010 00:36:20 GMT
Hi,

For my project I want to use pathbinder to differentiate between multiple
pages like: #/general or #/addons.

Sadly when using the steps from the tutorial but leaving the _init member
out, it looks like that the path handling with Evently doesn't work. The
content div stays empty.

Here the example:

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <div id="content"></div>
  </body>

  <script src="/script/myloader.js"></script>
  <script type="text/javascript" charset="utf-8">
    $.couch.app(function(app) {
      $("#content").evently({
        general : {
          path: '/general',
          mustache : '<p>General results</p>'
        },
        update : {
          path : '/update',
          mustache : '<p>Software Update results</p>'
        },
        addons : {
          path: '/addons',
          mustache : '<p>Addons results</p>'
        }
      });
    });
  </script>

</html>


What do I have to do that I can directly load the pages? Would I have to add
_init and define a redirect to the target path?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message