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

 New Window (JavaScript) Through CCS

Print topic Send  topic

Author Message
Shnokey
Posted: 09/27/2003, 5:47 PM

Rookie questions - but here goes:

I am building an "on-line" store using the "bookstore" [CSS] sample project as a template. When I get to the "productdetail" page that lists the book, description and price [add to cart, etc.], I would like to create a JavaScript [or better way] link to click on the book image and open a new window with a larger version of the image. The Store I'm building has antiques, where detail counts - and instead of creating individual pages for each image - There must be a way to create an ASP page that will open in a "pop" up window for those customers wishing to see a larger image than a thumbnail. I can hold my own with HTML and JavaScript - but being new to CCS, I wantd a solution I can incorporate within the application, minimizing "post production" coding as much as possible.

I appreciate any feedback - Cheers.
stephenk
Posted: 09/29/2003, 2:12 AM

1) drop in image from forms in the toolbox onto your popup page
set properties as follows:
Control Source Type: Code Expression
Data Type: Text
Default Value: CCGetParam("img","");

2) add in html view of grid or record page
<script language="javascript">
function showimg(img){
var url = "popup.asp?img="+img;
val = window.open(url,"handle","height=100,width=100,top=0,left=0");
val.setfocus();
}
</script>
<-- Begin Row gridname-->
<a href="javascript:showimg('{img}')<!--your thumbnail image--></a>"
<-- End Row gridname-->
<!--
{img} dropped in html view
Control Source Type: database column
Control Source: image path in database
-->


   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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