On Fri, Apr 3, 2009 at 10:33 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> Yarko most systems just use iframes. You can put anything you want
> into an iframe.


I'm not sure that's so, but regardless I think that misses the point (iframe
is a dtd type, and can be the target of links on a page and so forth;
my.msn.com does not use any iframes anywhere, nor did dotnetnuke - although
an iframe type was one of the container types, as I recall).  The point is
to have a surrounding structure to accomplish what you are trying to do in
controller code.  I think doing what you're doing in controller is fine if
someone wants a quick solution to something they have to do "right now", but
I have issue that it's not sufficiently general nor appropriately decoupled
for more general use). Further, if the right structure were in place to do
this other ways, there would be no need to do it this way, and I think other
ways are better (and there is already evidence of others doing.... as I
pointed out).

Anyway - I think the way I would like to see this go is look at other things
that are doing "this kind of" thing, and study and catalog what they are
dealing with and how, and then see where the overlap (or missing pieces)
are.  Then think of a pythonic way to accomplish something that makes sense.

Doing this in the controller the way you have just looks troublesome, and
even worse - precludes I think any clean extension.

Regards,
Yarko



>
>
> The problem I am trying to solve is turning existing forms into ajax
> forms and do it in such a way that when the form has errors, it just
> modified itself without reloading the page. If the form submission
> succeeds the ajax response triggers an event outside the "box". I do
> not want to use iframes because 1) I want to communicate with the
> outside; 2) I want to inherit the CSS of the "box container".
>
> I think this is a critical ingredient although not sufficient to
> implement what you are suggesting.
> >
>

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