RE: How can I create a new browser window from flowscript?

2010-05-11 Thread Robby Pelssers
That's not the way to do this...

Just use an action instead of a form submit and add an event handler in your 
form definition...

I added some samples of a complex application I built so you can check some 
stuff out if you like.

Cheers,
Robby


 formdefinition -



http://apache.org/cocoon/forms/1.0#definition";>
  

  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.refresh();

  


  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.reset();

  


  

  false








  


  
  

  

  
  

=
contains
is 
null  
is 
empty
in   


  
  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.handleOperatorChangedEvent(event); 


  
  

  
  






  


  

  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.handleLookupClickEvent(event);

  





  




  


  

  
 
   
  

  



  

  
  

= 
is 
null  
<
<=
>
>=
between  


   
  
  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.handleOperatorChangedEvent(event); 


  

   

  
  

  

  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.handleLookupClickEvent(event);

  
 

   


   



  

  

  var objectSearcher = 
event.getSource().getForm().getAttribute("objectSearcher");
  objectSearcher.handleLookupClickEvent(event);

  


  

Re: How can I create a new browser window from flowscript?

2010-05-11 Thread Alberto Brosich

On 05/11/2010 04:46 PM, Robby Pelssers wrote:

Andre is completely right by the way...

What you could do is make an asynchronous request posting the form data and 
create the popup on the fly on the client...
   


Yes, but I tried to add an onclick attribute to the submit widget 
without success (with  tag).

Any other way to do it?

A


Robby

-Original Message-
From: Andre Juffer [mailto:andre.juf...@oulu.fi]
Sent: Tuesday, May 11, 2010 4:40 PM
To: users@cocoon.apache.org
Subject: Re: How can I create a new browser window from flowscript?

On 05/11/2010 05:27 PM, Alberto Brosich wrote:
   

Hi,

I have to create a new window (tab or popup, it's the same) where to
put results after the user submits a form (builded with cform and
controlled by a flowscript).
The result is a page generated with a pipeline that I call now with
cocoon.sendPage().
How can I achieve it?
I tried some tests with PopupWindow.js lib but it gives errors.
 

Flowscript runs on the server. You would need to accomplish this on the
client, e.g. with the Dojo toolkit.

   

thanks in advance

Alberto

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

 


   



-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: How can I create a new browser window from flowscript?

2010-05-11 Thread Robby Pelssers
Andre is completely right by the way...

What you could do is make an asynchronous request posting the form data and 
create the popup on the fly on the client... 

Robby

-Original Message-
From: Andre Juffer [mailto:andre.juf...@oulu.fi] 
Sent: Tuesday, May 11, 2010 4:40 PM
To: users@cocoon.apache.org
Subject: Re: How can I create a new browser window from flowscript?

On 05/11/2010 05:27 PM, Alberto Brosich wrote:
>
> Hi,
>
> I have to create a new window (tab or popup, it's the same) where to 
> put results after the user submits a form (builded with cform and 
> controlled by a flowscript).
> The result is a page generated with a pipeline that I call now with 
> cocoon.sendPage().
> How can I achieve it?
> I tried some tests with PopupWindow.js lib but it gives errors.

Flowscript runs on the server. You would need to accomplish this on the 
client, e.g. with the Dojo toolkit.

>
> thanks in advance
>
> Alberto
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>


-- 
Andre H. Juffer  | Phone: +358-8-553 1161
Biocenter Oulu and   | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat   | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: How can I create a new browser window from flowscript?

2010-05-11 Thread Andre Juffer

On 05/11/2010 05:27 PM, Alberto Brosich wrote:


Hi,

I have to create a new window (tab or popup, it's the same) where to 
put results after the user submits a form (builded with cform and 
controlled by a flowscript).
The result is a page generated with a pipeline that I call now with 
cocoon.sendPage().

How can I achieve it?
I tried some tests with PopupWindow.js lib but it gives errors.


Flowscript runs on the server. You would need to accomplish this on the 
client, e.g. with the Dojo toolkit.




thanks in advance

Alberto

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org




--
Andre H. Juffer  | Phone: +358-8-553 1161
Biocenter Oulu and   | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat   | WWW: www.strubiocat.oulu.fi
NordProt | WWW: www.nordprot.org
Triacle Biocomputing | WWW: www.triacle-bc.com


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



RE: How can I create a new browser window from flowscript?

2010-05-11 Thread Robby Pelssers
http://developer.yahoo.com/yui/container/

It's very simple to use but feel free to ask for some samples if you can't work 
your way around it.

Cheers,
Robby

-Original Message-
From: Alberto Brosich [mailto:abros...@ogs.trieste.it] 
Sent: Tuesday, May 11, 2010 4:28 PM
To: users@cocoon.apache.org
Subject: How can I create a new browser window from flowscript?


Hi,

I have to create a new window (tab or popup, it's the same) where to put 
results after the user submits a form (builded with cform and controlled 
by a flowscript).
The result is a page generated with a pipeline that I call now with 
cocoon.sendPage().
How can I achieve it?
I tried some tests with PopupWindow.js lib but it gives errors.

thanks in advance

Alberto

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org