[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread luftikus143
You may need to add a form tag (using new Element) then put the contents of your form inside it. Alternately, you can have the form tag as part of your HTML to begin with. Thanks a lot! How does this new Element thing work? Do you have by chance a quick example? Thanks anyway, I'll see what

[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread Diodeus
To insert something into the DOM use this. You can add other attributes as well. Read the Prototype docs. $(someDiv).insert(new Element(form, { id: 'moo' })) On Sep 17, 6:53 am, luftikus143 [EMAIL PROTECTED] wrote: You may need to add a form tag (using new Element) then put the contents

[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread luftikus143
Thanks. I know have something like this: function variables() { var url = '/xxx/etc/php/fill_variable_list.php'; var target = 'output-div'; var pars = 'selectedKeyword=.str_replace( , +, $selectedKeyword).selected_ids=[EMAIL

[Proto-Scripty] Re: How to handle different forms

2008-09-16 Thread Diodeus
Forms added to a document via innerHTML (which Ajax updater uses) are not recognized at part as the DOM. You can add fields to a form this way, but not forms themselves. You may need to add a form tag (using new Element) then put the contents of your form inside it. Alternately, you can have the