Ok I did not use the archetypes. But I did not read this elsewhere.
Would be good to have this noted in the lift book or in the lift wiki.

I will post a comment on the liftbook group.

I will test it again with jQuery referenced.

with best regards

On 29 Dez., 14:54, Marius <[email protected]> wrote:
> When you create a lift project using one of the Lift archetypes, the
> html templates include a reference to JQuery such as: <script
> type="text/javascript" src="/classpath/jquery.js"></script>
>
> Lift does not inject jquery reference in html head. I don't think it
> should as one could use Lift with YUI or other Lift framework. We
> could probably create a small builtin snippet that does that but I
> don't see lots of gains but probably would be helpful.
>
> Br's,
> Marius
>
> On Dec 29, 3:44 pm, greekscala <[email protected]> wrote:
>
> > I dont think I have to take care to reference jQuery myself for lift.
> > Lift should insert the version it needs automatically.
>
> > Ok I can workaround this by inserting a jquery reference, but I see
> > that jquery is in the lift sources.
>
> > The LiftBook states that by default the LiftRules.jsArtifacts variable
> > is
> > pointing to use jQuery by default.
>
> > with best regards
>
> > On 29 Dez., 14:08, Timothy Perrett <[email protected]> wrote:
>
> > > It cant find JQuery, because, err, you have referenced it...
>
> > > You need to add:
>
> > > <script type="text/javascript" src="/classpath/jquery.js"></script>
>
> > > to your <head> element
>
> > > Cheers, Tim
>
> > > On 29 Dec 2009, at 12:43, greekscala wrote:
>
> > > > This is the generated head:
>
> > > > <head>
> > > > <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
> > > > <title>Test</title>
> > > > <link type="text/css" rel="stylesheet" href="/css/my_layout.css">
> > > > </link>
> > > > <script type="text/javascript" src="/ajax_request/liftAjax.js">
> > > > </script>
> > > > </head>
>
> > > > This is the generated form in a simple div element:
>
> > > > <div id="addsf">
> > > > <form id="F392208970316G4M" action="javascript://"
> > > > onsubmit="lift_ajaxHandler(jQuery('#'+'F392208970316G4M').serialize(),
> > > > null, null);return false;">
> > > > <input type="text" name="F392208970313SOO" value=""/>
> > > > <input type="submit" name="F392208970314N0V" value="add"/>
> > > > <input type="hidden" name="F392208970315CPR" value="true"/>
> > > > </form>
> > > > </div>
>
> > > > And this is a generated script block at the bottom of the page:
>
> > > > <script type="text/javascript">
> > > > //
> > > > jQuery(document).ready(function() {lift_successRegisterGC();});
> > > > var lift_page = 'F392208970312QQE';
> > > > //
> > > > </script>
>
> > > > with best regards
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Lift" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to 
> > > > [email protected].
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/liftweb?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to