need some more help...

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

    need some more help...

    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
  • steve stevo

    #2
    Re: need some more help...

    what is the html code of the opened window ?


    "D2CAD" <jeroenberkers@ planet.nl> wrote in message
    news:b604bdfd.0 309290433.580bd 129@posting.goo gle.com...[color=blue]
    > 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="#"[/color]
    onclick="produc tprice('plaatsw and03.jpg','Pla atswand','downl oad/','plaatswan
    d.txt')">test</a>[color=blue]
    >
    > JW suggested to use opener.showtext (), but I am new at this, so I need
    > some more explenation or examples...
    > Thanks[/color]


    Comment

    Working...