Hi

I'm trying out the jquery mobile plugin for web2py (2.4.5) and I'm having 
no success. When I load the page (both on mobile device and desktop) I get 
a blank page.

When I look at the JavaScript console I get this error:

Uncaught Error: Syntax error, unrecognized expression: [data-role='none'], 
[data-role='nojs'], [object Object] 

I'm not a JavaScript expert (or Jquery for that matter) so I'm a bit stuck 
here. The other views (regular desktop version) of the application are 
working as intended.

I had to change the reference to modernizr in the Jquery mobile plugin 
layout.html file to point to modernizr.custom.js in stead of the default 
version 1.6 (which isn't included).

I see that my menu is rendered in the html:



<div data-role="page"><div data-role="header" data-fullscreen="true" 
data-position="fixed">
[...]

      </div>
      <div data-role="content">

    
    <ul data-role="listview" data-inset="true">
      <li data-role='list-divider'>Main Menu</li>

      <li><a href="/appname/default/index.mobile.html">Hjem</a></li>
[...]

I see one strange thing, the page doesn't seem to have a <body> starttag, 
just the end tag. Instead it has this:



<!-- 
paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> 
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->

Is that a problem too?

-Torvald



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to