CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Open a New Windows from a Submit Button?

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.