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

need some help

P: n/a
I want to make this work...
This is my script-file(.js):

function showText() {
theText = window.textFile.document.body.innerHTML.replace(/\<[^\>]+\>/gm,
"");
}

function productprice(img,titel,path,bestand1,bestand2) {
features =
'toolbar=no,location=no,directories=no,status=no,m enubar=no,' +
'scrollbars=no,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 ("</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 ("<form><iframe id='textFile' onLoad='showText()'
align='center'></iframe></form>")
dlg.document.write ("<CENTER><FONT size='2'><B>Handleiding: <A
href='",bestand2,"'>",bestand2,"</A></CENTER>")
dlg.document.write ("<FORM><CENTER><INPUT type='button' value='Close'
onClick = 'self.close()'></CENTER></FORM>")
dlg.document.write ("</BODY>")
dlg.document.write ("</HTML>")
}

And this is my HTML-line:
<a href="#" onclick="productprice('plaatswand03.jpg','Plaatswa nd','download/','data.txt','plaatswand.txt')">test</a>

Thanks for your replies in advance.
Jeroen
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"D2CAD" <je***********@planet.nl> wrote in message
news:b6**************************@posting.google.c om...
I want to make this work... ..... dlg.document.write ("<form><iframe id='textFile' onLoad='showText()'
align='center'></iframe></form>")


opener.showText() is probably what you want...

JW

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.