Forum OpenACS Q&A: popup results page using ad_form

Collapse
Posted by Vince T on
hello,

i'm using ad_form to input criteria for a query.

i would like the result set to popup onto a new window but i can't seem to find how to manipulate the form's submit button (i figure this should use some javescript code on the client side, like what is usual for popups).

so, how do i get the form to display results onto a pop-up/new window?

thanks in advance.

Vincent

Collapse
Posted by Claudio Pasolini on
You can create a new window passing a property to your master template, e.g.:

<property name="header_stuff"><base target="popup"</base></property>

Collapse
Posted by Vince T on
hi claudio,

this doesn't seem to work... could you clarify? how do you use base target tags for popups?

i was thinking more of an onclick javascript if i could find how to insert that onto ad_form (OACS ver. 4.6.3)

thanks,
vincent

Collapse
Posted by Claudio Pasolini on
I missed a closing tag:

<property name="header_stuff"><base target="popup"></base></property>

This is working on my Oacs 5.1 but if you have trouble passing a property to your Oacs 4.6 master, you can simply add <base target="popup"> within the <head> section of your html.