function productprice(im g,titel,path,be stand1) {
features =
'toolbar=yes,lo cation=no,direc tories=no,statu s=no,menubar=no ,' +
'scrollbars=yes ,resizable=no,w idth=680,height =600'
dlg = window.open ("","",features )
dlg.document.wr ite ("<HTML>")
dlg.document.wr ite ("<HEAD>")
dlg.document.wr ite ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.wr ite ("<script>")
dlg.document.wr ite ("function showText()")
dlg.document.wr ite ("theText =
window.textFile .document.body. innerHTML.repla ce(/\<[^\>]+\>/gm, '');")
dlg.document.wr ite ("}")
dlg.document.wr ite ("</script>")
dlg.document.wr ite ("</HEAD>")
dlg.document.wr ite ("<link rel=stylesheet href='d2cad.css '
type='text/css'>")
dlg.document.wr ite ("<body onload='window. textFile.locati on =
\"",bestand1,"\ "'>")
dlg.document.wr ite ("<CENTER><H3>" ,titel," </H3></CENTER>")
dlg.document.wr ite ("<CENTER><i mg src='",img,"'></CENTER>")
dlg.document.wr ite ("<BR><BR><BR>< FONT size='2'>")
dlg.document.wr ite ("<iframe id='textFile' onLoad='showTex t()'
align=center width=640 height=240></iframe>")
dlg.document.wr ite ("<FORM><CENTER ><INPUT type='button' value='Close'
onClick = 'self.close()'> </CENTER></FORM>")
dlg.document.wr ite ("</BODY>")
dlg.document.wr ite ("</HTML>")
}
This script creates a new window, but not the contents of the
bestand1-file...
<a href="#" onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','plaatswand.t xt')">test</a>
JW suggested to use opener.showtext (), but I am new at this, so I need
some more explenation or examples...
Thanks
features =
'toolbar=yes,lo cation=no,direc tories=no,statu s=no,menubar=no ,' +
'scrollbars=yes ,resizable=no,w idth=680,height =600'
dlg = window.open ("","",features )
dlg.document.wr ite ("<HTML>")
dlg.document.wr ite ("<HEAD>")
dlg.document.wr ite ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.wr ite ("<script>")
dlg.document.wr ite ("function showText()")
dlg.document.wr ite ("theText =
window.textFile .document.body. innerHTML.repla ce(/\<[^\>]+\>/gm, '');")
dlg.document.wr ite ("}")
dlg.document.wr ite ("</script>")
dlg.document.wr ite ("</HEAD>")
dlg.document.wr ite ("<link rel=stylesheet href='d2cad.css '
type='text/css'>")
dlg.document.wr ite ("<body onload='window. textFile.locati on =
\"",bestand1,"\ "'>")
dlg.document.wr ite ("<CENTER><H3>" ,titel," </H3></CENTER>")
dlg.document.wr ite ("<CENTER><i mg src='",img,"'></CENTER>")
dlg.document.wr ite ("<BR><BR><BR>< FONT size='2'>")
dlg.document.wr ite ("<iframe id='textFile' onLoad='showTex t()'
align=center width=640 height=240></iframe>")
dlg.document.wr ite ("<FORM><CENTER ><INPUT type='button' value='Close'
onClick = 'self.close()'> </CENTER></FORM>")
dlg.document.wr ite ("</BODY>")
dlg.document.wr ite ("</HTML>")
}
This script creates a new window, but not the contents of the
bestand1-file...
<a href="#" onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','plaatswand.t xt')">test</a>
JW suggested to use opener.showtext (), but I am new at this, so I need
some more explenation or examples...
Thanks
Comment