So it's looking like using an SQLFORM in the regular fashion just
isn't going to cut for what I would like to do. If I override the
normal submission method and use jquery + ajax to submit the form, I
have full control of what the page does after submission. The problem
then is that I would loose validation, auto insertion, and any point
of using SQLFORM in the first place. Any suggestions? This still
doesn't explain my main problem of why the form only refreshes the
page, but it's given me some ideas.

On Aug 23, 4:12 pm, Yarko Tymciurak <yark...@gmail.com> wrote:
> this might help:http://www.sitepoint.com/article/ajax-jquery/
>
> On Sun, Aug 23, 2009 at 5:06 PM, Alastair Medford <alastairmedf...@gmail.com
>
>
>
> > wrote:
>
> > I haven't been able to find anything on google about submitting forms
> > that have been brought it by ajax. I did notice deep in mailing list
> > archives a mention about jDivs, which may help me with refreshing just
> > a portion of the page. Has anyone used Jdivs before? The mention of it
> > was so old and there's no documentation of it other than in the post
> > itself. Is there any way to refresh a portion of the page without
> > using jdivs?
>
> > On Aug 22, 11:28 am, Alastair Medford <alastairmedf...@gmail.com>
> > wrote:
> > > Wel, I figured out how to make the calendar widget work on the form at
> > > least. I re-called the web2py_init jquery function in the call back of
> > > the ajax function I was using. Still no luck making the actual form
> > > submission work though.
>
> > > On Aug 22, 10:33 am, Alastair Medford <alastairmedf...@gmail.com>
> > > wrote:
>
> > > > No change. Like I said before, everything works as it should when
> > > > calling the controller function directly. It's when it's brought into
> > > > another page via ajax that neither the jquery nor the form submission
> > > > work. Has anyone else brought in anSQLFORMvia ajax and had it work?
>
> > > > On Aug 20, 12:37 pm, DenesL <denes1...@yahoo.ca> wrote:
>
> > > > > In layout.html the {{include 'web2py_ajax.html'}} (which has the
> > > > > calendar and other JS script links) happens inside the head section
> > on
> > > > > the page, try doing something similar in yours.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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