on the top of your page before the <body> add the following code:

<script language="javascript">
        function openpicture(picture, legend) {
        
window.open('picture','NewWin','toolbar=no,scrollbars=auto,width=660,height=
505')
                if (legend == "y") 
        
window.open('legendwindow','NewWin','toolbar=no,scrollbars=auto,width=
660,height=505');
 }

</script>

<body>.....


Then on your image change to ...

        <img src="#drawingthumbdir#/#thumbnail#" border="0" alt=""
        onClick="openpicture('#drawingimagedir#/#drawing#',
'#query.legend#');">


Now, I assume you are building the image list inside a cfquery (or cfloop),
if so, change the "query.legend" to the field that tells you whether the
legend should also be opened... what will happen is that once the user
clicks on the link, the javascript will be called and open the first window,
if the legend should also be opened if will then open it, otherwise it
won't...


Bismarck Perez


-----Original Message-----
From: Jay Wigginton [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: CF and new browser windows


Hey,

Since I am a total Java "idiot" this sounds totally like "Greek" to me....
care to elaborate in terms that a "non-java" person would understand? <grin>

thanks
Jay



-----Original Message-----
From: Perez, Bismark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 2:32 PM
To: '[EMAIL PROTECTED]'
Subject: RE: CF and new browser windows


why don't you move the "window.open" code to the <script> section and then
call the function from the onclick=, that way you can check on the
JavaScript for the value of the field that tells you whether the 'legend'
should be opened and then issue another "window.open" call...

Bismarck Perez
*1-617-563-2896
* G10H
* [EMAIL PROTECTED]



-----Original Message-----
From: Jay Wigginton [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 15, 2000 2:20 PM
To: [EMAIL PROTECTED]
Subject: OT: CF and new browser windows


I have an application that creates thumbnail images of a larger image...
upon clicking on the thumbnail I have it opening a new window with the full
size image using the code...

<img src="#drawingthumbdir#/#thumbnail#" border="0" alt=""
onClick="NewWin=window.open('#drawingimagedir#/#drawing#','NewWin','toolbar=
no,scrollbars=auto,width=660,height=505');">

The problem I have now is that some of the full size images require a
"drawing legend" to be opened also...  can anyone offer any suggestions on
how to cause two new windows to be opened upon a click... and the order is
important also... must open the full size drawing above and then open
another new window with the legend.... or any other creative ideas on how to
accomplish this...

thanks
Jay

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to