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
-~----------~----~----~----~------~----~------~--~---

Reply via email to