sorry, the "layout ...... " is only the surface. The real reason is: in the body's style, position's value must be static
I do not know deeper reasons for this , 2009/7/15 mdipierro <mdipie...@cs.depaul.edu> > > interesting. thanks for letting us know. > > On Jul 14, 11:04 pm, zhang zheng <zzgigi2...@gmail.com> wrote: > > I found the issue, > > > > in my view: > > <body id='layout'> > > > > the key word "layout" maybe do not allow in jquery, > > if I change the id to "something", it work very well > > > > 2009/7/15 mdipierro <mdipie...@cs.depaul.edu> > > > > > > > > > > > > > I do not understand the context of the question. You should not call > > > web2py_ajax_init() it is called automatically when a page is loaded. > > > The caldear appears automatically for an input field of class "date", > > > "time" or "datetime" like > > > > > <input class="datetime" id="datetime" name="something" /> > > > > > I think it may be necessary that the <intpu> field has a "name" > > > attribute. > > > > > It should work with most browsers. Which browser do you use? > > > > > Massimo > > > > > On Jul 14, 11:00 am, 张峥 <zzgigi2...@gmail.com> wrote: > > > > hi,all > > > > > > in the innerHTML, > > > > <input class="datetime" id="datetime"/> > > > > > > I excute the web2py_ajax_init(), but the Calendar do not pop. > > > > > > follow code was excuted, I promise > > > > > > try { jQuery("input.datetime").focus( function() {Calendar.setup({ > > > > inputField:this.id, ifFormat:"{{=T('%Y-%m-%d %H:%M:%S')}}", > showsTime: > > > > true,timeFormat: "24" > > > > > > });}); } catch(e) {}; > > > > > > can you help me , > > > > the question maybe belong to JS, I don't know, > > > > -- > > 张峥 > > > -- 张峥 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---