need some help

D

D2CAD

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,menubar=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','Plaatswand','download/','data.txt','plaatswand.txt')">test</a>

Thanks for your replies in advance.
Jeroen
 
J

Janwillem Borleffs

D2CAD said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top