CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Control Pop-up page window size and call print function onload

Print topic Send  topic

Author Message
charles

Posts: 59
Posted: 08/22/2006, 5:55 AM

From the forms tab in codecharge studio toolbox i added a standard link to a grid form.
I have successfully configured the link to open a separate page called tickets1.asp and send two parameters over the url.
My first issue is that the pop-up page opens as a full page. i would like to control the size and position of the pop-up page.
Secondly i want at the very least the print function to be automatically called as the page loads.
But i would really love to do is for the contents of thepage to be automatically printed and the pop-up page to close after 5 seconds.
I already have a functioning code to close the page after a timed period.
Also i know about the javascript window.print () function, but i dont know how to properly apply it in a codecharge studio on page load event environment.
Any form of help will be greatly appreciated.
regards,
charles
View profile  Send private message
peterr


Posts: 5971
Posted: 10/05/2006, 11:00 AM

You would need to apply your JavaScript function(s) in regular way, regardless if you are editing the page in CCS. I also don't program in JavaScript but usually find the right syntax on the net.
Here are couple searches I recommend for your case:
http://www.google.com/search?q=javascript+pop-up+window+size
http://www.google.com/search?q=javascript+onload+window.print
The last one probably should be applied directly to the <body> tag on your page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
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.