By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,519 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,519 IT Pros & Developers. It's quick & easy.

need some more help...

P: n/a
function productprice(img,titel,path,bestand1) {
features =
'toolbar=yes,location=no,directories=no,status=no, menubar=no,' +
'scrollbars=yes,resizable=no,width=680,height=600'
dlg = window.open ("","",features)
dlg.document.write ("<HTML>")
dlg.document.write ("<HEAD>")
dlg.document.write ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.write ("<script>")
dlg.document.write ("function showText()")
dlg.document.write ("theText =
window.textFile.document.body.innerHTML.replace(/\<[^\>]+\>/gm, '');")
dlg.document.write ("}")
dlg.document.write ("</script>")
dlg.document.write ("</HEAD>")
dlg.document.write ("<link rel=stylesheet href='d2cad.css'
type='text/css'>")
dlg.document.write ("<body onload='window.textFile.location =
\"",bestand1,"\"'>")
dlg.document.write ("<CENTER><H3>",titel," </H3></CENTER>")
dlg.document.write ("<CENTER><img src='",img,"'></CENTER>")
dlg.document.write ("<BR><BR><BR><FONT size='2'>")
dlg.document.write ("<iframe id='textFile' onLoad='showText()'
align=center width=640 height=240></iframe>")
dlg.document.write ("<FORM><CENTER><INPUT type='button' value='Close'
onClick = 'self.close()'></CENTER></FORM>")
dlg.document.write ("</BODY>")
dlg.document.write ("</HTML>")
}

This script creates a new window, but not the contents of the
bestand1-file...

<a href="#" onclick="productprice('plaatswand03.jpg','Plaatswa nd','download/','plaatswand.txt')">test</a>

JW suggested to use opener.showtext(), but I am new at this, so I need
some more explenation or examples...
Thanks
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
what is the html code of the opened window ?
"D2CAD" <je***********@planet.nl> wrote in message
news:b6**************************@posting.google.c om...
function productprice(img,titel,path,bestand1) {
features =
'toolbar=yes,location=no,directories=no,status=no, menubar=no,' +
'scrollbars=yes,resizable=no,width=680,height=600'
dlg = window.open ("","",features)
dlg.document.write ("<HTML>")
dlg.document.write ("<HEAD>")
dlg.document.write ("<TITLE>Try & Buy applicatie :
",titel,"</TITLE>")
dlg.document.write ("<script>")
dlg.document.write ("function showText()")
dlg.document.write ("theText =
window.textFile.document.body.innerHTML.replace(/\<[^\>]+\>/gm, '');")
dlg.document.write ("}")
dlg.document.write ("</script>")
dlg.document.write ("</HEAD>")
dlg.document.write ("<link rel=stylesheet href='d2cad.css'
type='text/css'>")
dlg.document.write ("<body onload='window.textFile.location =
\"",bestand1,"\"'>")
dlg.document.write ("<CENTER><H3>",titel," </H3></CENTER>")
dlg.document.write ("<CENTER><img src='",img,"'></CENTER>")
dlg.document.write ("<BR><BR><BR><FONT size='2'>")
dlg.document.write ("<iframe id='textFile' onLoad='showText()'
align=center width=640 height=240></iframe>")
dlg.document.write ("<FORM><CENTER><INPUT type='button' value='Close'
onClick = 'self.close()'></CENTER></FORM>")
dlg.document.write ("</BODY>")
dlg.document.write ("</HTML>")
}

This script creates a new window, but not the contents of the
bestand1-file...

<a href="#" onclick="productprice('plaatswand03.jpg','Plaatswa nd','download/','plaatswan
d.txt')">test</a>
JW suggested to use opener.showtext(), but I am new at this, so I need
some more explenation or examples...
Thanks

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.