need some help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • D2CAD

    need some help

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

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

    function productprice(im g,titel,path,be stand1,bestand2 ) {
    features =
    'toolbar=no,loc ation=no,direct ories=no,status =no,menubar=no, ' +
    'scrollbars=no, resizable=no,wi dth=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 ("</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 ("<form><ifr ame id='textFile' onLoad='showTex t()'
    align='center'> </iframe></form>")
    dlg.document.wr ite ("<CENTER><F ONT size='2'><B>Han dleiding: <A
    href='",bestand 2,"'>",bestand2 ,"</A></CENTER>")
    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>")
    }

    And this is my HTML-line:
    <a href="#" onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','data.txt','p laatswand.txt') ">test</a>

    Thanks for your replies in advance.
    Jeroen
  • Janwillem Borleffs

    #2
    Re: need some help


    "D2CAD" <jeroenberkers@ planet.nl> wrote in message
    news:b604bdfd.0 309290323.4963a 7db@posting.goo gle.com...[color=blue]
    > I want to make this work...[/color]
    .....[color=blue]
    > dlg.document.wr ite ("<form><ifr ame id='textFile' onLoad='showTex t()'
    > align='center'> </iframe></form>")[/color]

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

    JW



    Comment

    Working...