En/na Sylvain Wallez ha escrit:

werner wrote:

Hi,

I know it is not possible to have multiple forms on one page using
cforms. Is there some kind of workaround? I would like to put a
search-field on every page of a website. The website contains also a lot
of other cforms.  So I would like to put a form with a searchfield (does
not need to be a cform) together with another form (this has to be a
cform) on one single page.  Has anybody tried this before?


There are some parts of the client-side JavaScript libraries that may prevent the use of multiple CForms in a single page (this will have to be fixed soon with Ajax apps where the concept of "page" becomes blurred).

But absolutely nothing prevents several other forms to exist on the page. And your search field can very well post another URL.

If you use tabs presentation the js libraries use forms[0] in some functions. If you have another form in the page the tabs don't work:

function forms_showTab(tabgroup, idx, length, state) {
   // Change state value
   if (state.length > 0) {
       document.forms[0][state].value = idx;
   }

I don't know if its used in any other place of the libraries.

The dangling continuations mentioned by Geert are not a problem, as they will expire, just as they would if the user closed the browser window.

Sylvain


--
Josep A. Frau <[EMAIL PROTECTED]>
Centre de Tecnologies de la Informació
Universitat de les Illes Balears


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]