473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

need some more help...

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
1 2155
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: sinisam | last post by:
Object oriented programming is not a new term to me, but when I tried to do some of it... uhh... it sure looked (and felt) like Hell :) I won't bother about things like "help me learn it" (but...
9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
34
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
48
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and...
8
by: Elliot M. Rodriguez | last post by:
I am having a heckuva time debugging this, or determining why my page is behaving this way. I have a search form, that when completed, returns a datagrid. When the user selects a row (normal...
8
by: skumar434 | last post by:
i need to store the data from a data base in to structure .............the problem is like this ....suppose there is a data base which stores the sequence no and item type etc ...but i need only...
0
by: U S Contractors Offering Service A Non-profit | last post by:
Brilliant technology helping those most in need Inbox Reply U S Contractors Offering Service A Non-profit show details 10:37 pm (1 hour ago) Brilliant technology helping those most in need ...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.