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.
