Not sure what you mean by
ajax('show_month',[3],'test')
the second argument of ajax had to be a list of IDs if <input> fields.
The values of those fields will be passed.
On 27 Mar, 06:00, salbefe <[email protected]> wrote:
> Hello,
>
> With the following code:
>
> <div class="container" style="color:#ffffff;text-align:center;">
> <span onclick="ajax('show_month',[3],'test')">{{=month_str}}</
> span>
> <div id="test"></div>
> </div>
>
> I get the following javascript error message:
>
> document.getElementById(s[i]) is null
>
> I do not why I'm getting that error. I think this code is very similar
> to the same on page 274 of the web2py book.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en.