PDA

View Full Version : Automatic window "inline" call does NOT run {???} command…onClick does!



hano3
02-28-2012, 01:34 AM
:1) Script Title: DHTML Window widget (v1.1)


2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm


<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "inline", "<p align='center'><font face='Arial' color='#333333'><embed height='88' width='701' menu='true' loop='true' play='true' scale='exactfit' wmode='Window' quality='1' type='application/x-shockwave-flash' src='/UserFiles/11/Flash/swf/csts shop.SWF' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></font>{shop}</p>", "#1: Disc Site", "width=690px,height=350px,resize=1,scrolling=1,center=1", "recal")

googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
return window.confirm("Close window to exit eshop")
}
</script>


DHTML automatic window "inline" call does NOT run {???} command… But with onClick "inline" call! They Work !fine! Why ??:confused:

ddadmin
02-28-2012, 02:21 AM
Opening inline windows automatically does work, as seen in demo #2 on the Demo Page (http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/demo.htm). As far as why it doesn't on your page, it could be something within the HTML contents you're injecting into it; to confirm this, try changing the HTML from:


<p align='center'><font face='Arial' color='#333333'><embed height='88' width='701' menu='true' loop='true' play='true' scale='exactfit' wmode='Window' quality='1' type='application/x-shockwave-flash' src='/UserFiles/11/Flash/swf/csts shop.SWF' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></font>{shop}</p>

to something else/arbitrary:


This is some inline content. This is some inline content.