Ben
|
| Posted: 05/27/2003, 4:41 PM |
|
I am writing some reports and want the results to be displayed in a new browser windows. I have created a results grid in a new page with the columns I want displayed. I then created a new page using the Search Builder in CCS and told it to display the results in the grid on my results page.
It all works great, except it always opens the results page in my current browser window. I need it to open in a new one.
So the question is how do I make a Submit button redirect to a new browser window?
Thanks,
Ben
|
|
|
 |
RonB
|
| Posted: 05/28/2003, 12:42 PM |
|
use the target= method to set the target to _new so it will open in a new window or use the onclick=window.open(etc etc) method
Ron
|
|
|
 |
Ben
|
| Posted: 05/28/2003, 2:18 PM |
|
I tried that but Submit buttons don't reconize the target="_new" properity. I have no problems opening a new window using a Link, but can't get a Submit button to do it.
Any more ideas?
Ben
|
|
|
 |
Bence
|
| Posted: 05/29/2003, 6:56 AM |
|
Try something like this:
<script type="text/javascript">
function createTarget(t){
window.open("", t, "width=600,height=550");
return true;
}
</script>
<form name="sampleform" method="POST" action="kulker-online.hu"
onsubmit="return createTarget(this.target)" target="formtarget"></form>
|
|
|
 |
Ben
|
| Posted: 06/02/2003, 1:39 PM |
|
That works!
Thanks,
Ben
|
|
|
 |
|