Michael,

I use the following to dynamically create all kinds of pop ups:

<script language="JavaScript">
function openalertwindow(alertWidth,alertHeight){

alertwin=window.open('','alert','scrollbars=no,width='+alertWidth+',h
eight='+alertHeight);
alertwin.focus();
alertwin.document.open('text/html');
alertwin.document.write('<html>\n');
alertwin.document.write('<head>\n');
alertwin.document.write('<title>Alert</title>\n');
alertwin.document.write('</head>\n');
alertwin.document.write('<body>\n');
alertwin.document.write('<table>\n');
alertwin.document.write('<tr>\n');
alertwin.document.write('<td>Blah Blah Blah</td>\n');
alertwin.document.write('</tr>\n');
alertwin.document.write('<tr>\n');
alertwin.document.write('<td>[<a
href=\"javascript:window.close()\">Close</a>]</td>\n');
alertwin.document.write('</tr>\n');
alertwin.document.write('</table>\n');
alertwin.document.write('</body>\n');
alertwin.document.write('</html>\n');
alertwin.document.close();
}
</script>

<a href="javascript:openalertwindow(300,40);">open</a>

Mix and match to taste.

Gl,
Alexander Sicular
Chief Technology Architect
Neurological Institute of New York
Columbia University
as867 {at} columbia [dot] edu 

-----Original Message-----
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2003 7:12 PM
To: CF-Talk
Subject: OT Javascript popups and CF


OK, the spam-watch is going great and the UI is coming together
(http://www.houseoffusion.com/spam/pop.cfm). The only problem is with a
JS popup. I'm using this code:
    [<a
href="javascript:alert('#JSStringFormat(HTMLEditFormat(header))#')">Show
Headers</A>]
to cause the message header (coming from CFPOP) to be loaded into an
alert box. The HTMLEditFormat() and JSStringFormat() are to format the
header properly for inclusion in the JS and for display. The problem is
one of size. A large header will not be loaded into a JS alert() which
means I need to create the popup window myself. I like the way that the
alert shows the header both in size and font. When I create my own popup
it always looks kind of ugly, large and bulky. Does anyone know how to
either stuff more into an alert or to create a popup with the same
'look' as an alert? Thanks

Michael Dinowitz
Finding the technical solutions whether you need it or not


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to