Create two forms with textareas
Send the first form with ajax request (probably with the use of
javascript library)
Then set the returned value to the second textarea


On Oct 15, 9:58 am, "Roman Yakovenko" <[EMAIL PROTECTED]>
wrote:
> On Wed, Oct 15, 2008 at 4:36 AM, Justin Davis <[EMAIL PROTECTED]> wrote:
> > Hi Roman,
>
> > 1. Could you be more specific?  I don't really understand the
> > question.
>
> Sorry.
>
> I created a code generator for Boost.Python library. Now I want to
> expose it to the web. As input it takes C++ code, as output it returns
> Boost.Python code, which expose the original code to Python. I created
> a form with 2 text areas and submit button. I successfully get the
> source code, do my things and than I want to return the generated code
> to the user - to place it in the second text area. The only way I
> found, to do this, is to create new html page, with the same form, to
> initialize all its fields to the user values, to initialize "generated
> code" text area and then to send it.
>
> I think this solution is a little bit wasteful. I don't want to send
> the new html page with all values, but only the generated code.
>
> Is it possible?
>
> > 2.  form.Button should work, and only in IE6 will you have to specify
> > type="submit".  Make sure you wrap the form render with <form> tags in
> > your template.  Otherwise, this works fine for me:
>
> Thanks I will check my code.
>
> > 3. Form layout is very simple and table-based.  Check out this link
> > for more information on how I change layout, but other people do
> > different things.
> >http://groups.google.com/group/webpy/msg/c6827aa721bc5308?
>
> Thanks for the link. I took a look on it and I like it - easy &
> straightforward.
>
> Thanks for help!
>
> --
> Roman Yakovenko
> C++ Python language bindinghttp://www.language-binding.net/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to