Javier,

Could you please tell me how you included your javascript files in the
layout after the
 <!-- All JavaScript at the bottom, except for Modernizr which
enables
HTML5 elements & feature detects -->
?

I see that you added the latest jQuery and jqueryui under the default /
static/js folder that web2py has. Did you remove the jquery.js file
that web2py comes with? (or did you override it?)



On Sep 17, 11:11 pm, JavierQQ <[email protected]> wrote:
> Can I edit =FORM too?
>
> is it difficult?
> As a example I'm going to insert 
> thishttp://jqueryui.com/demos/dialog/#modal-form
>
> and I have one view called 'regcliente.html'
> that has this
> {{extend 'layout.html'}}
> <h1>Registrar cliente</h1>
> <div class="form">
>     <fieldset>
>     <legend>Cliente</legend>
>         {{=form}}
>     </fieldset>
> </div>
>
> can I do =form(_class="Dialog-form")?     (Dialog-form is the id of
> the example)
>
> this is how I intend to put it folders
> /static
>   /css
>     /start
>       jquery-ui-1.8.16.custom.css
>       /images
>     ..
>   /js
>     jquery-1.6.2.min.js
>     jquery-ui-1.8.16-min.js
>     ..
>
> and in Layout.html I put the javascript here
>  <!-- All JavaScript at the bottom, except for Modernizr which enables
> HTML5 elements & feature detects -->
>
> and finally in the view I put the divs but it only appears without the
> style
>
> Is the something I missed?
>
> On Sep 16, 10:06 pm, Anthony <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Friday, September 16, 2011 10:05:39 PM UTC-4,ramiwrote:
>
> > > Oh my bad,
> > >                 // Accordion
> > >                 $("#accordion").accordion({ header: "h3" });
>
> > >                 $('#tabs').tabs();
>
> > > I included the semicolon in my code but just for some dumb reason not
> > > on my post. Sorry to confuse you :(
>
> > > Any other reasons why this does not work??
>
> > Nothing obvious. If accordion is working, I assume jQuery UI is loaded. You
> > may need to check the source html delivered by web2py and do some debugging
> > in the browser.
>
> > Anthony

Reply via email to