473,378 Members | 1,658 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,378 software developers and data experts.

URGENT>>> HTML and Javascript question

Hello all

I am using a datafeed that provides me with a Javascript that spits
out a bunch of hyperlinks to other locations.

Her is what it looks like:

<script language="javascript"
src=http://datafeed.XXXXXX.com/YYY.asp?area=XX&stories=10&url=www.ABC.com>
</script>

<script language="javascript">
for (row= 0;row < Docs.length; row++)
{
document.writeln(" <li class=\"style1\" target=\"_blank\">" +
Docs[row] + " </li> <br>");
}
</script>

This will spit out a bunch of hyperlinks with bullets

* link1
* link2
* link3

The problem is that these links DO NOT pop up a new window. Instead,
they just open in the current window.

Since I do not have access to hyperlink HTML code to insert a
target=_blank tag, I am stuck and can not figure out what to do. I
need each link to pop open in a new window.

Given that I can insert HTML tags insire the document.writeln, is
there anything that I can put there that would solve my problem.

Please advise ASAP.

Thank you in advance
Albert
Jul 23 '05 #1
2 1181
In article <45**************************@posting.google.com >,
al****@saabconsulting.com enlightened us with...

Given that I can insert HTML tags insire the document.writeln, is
there anything that I can put there that would solve my problem.


Yes.
See my little example.
Apply as appropriate.
Tested in IE6.

<html>
<head>
<title> New Document </title>
</head>

<body>
<base target="_blank">
New<br>
<a href="http://www.google.com">Google</a><br>
<a href="http://www.yahoo.com">Yahoo</a><br>
<base target="_self">
Self<br>
<a href="http://www.google.com">Google</a><br>
<a href="http://www.yahoo.com">Yahoo</a><br>

</body>
</html>

--
--
~kaeli~
Murphy's Law #2030: If at first you don't succeed, destroy
all evidence that you tried.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
> <script language="javascript">
for (row= 0;row < Docs.length; row++)
{
new_win =
window.open('','new_win','resizable=yes,scrollbars =yes,width=800,height=625,left=200,top=10');
new_win.document.open("text/html");
new_win.document.writeln("<html><body><ul>");
new_win.document.writeln("<li class=\"style1\" target=\"_blank\">" +
Docs[row] + " </li>");
new_win.document.writeln("</ul></body></html>");
new_win.document.close();
}
</script>


Dont know why you would want this but try that.

Mike
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pargat singh | last post by:
Hi Everyone I am using SQLLDR to load the data and i am getting following error SQL*Loader-908: Unable to lock table TABLE_NAME due to ORACLE error 54. Loader Cmd is SQLLDR.EXE...
18
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
2
by: mortb | last post by:
I create a table containing radiobuttons in client script depending on what choices the user makes. It works fine the radio buttons appear *but* they are *not clickable*. Why? Is there a solution?...
0
by: Daniel | last post by:
HI, Does anyone know to create crystal reports with sql string (T-SQL) query..?? If have any example more prefer. thanks in advance.... daniel.
0
by: Fabrice DG. | last post by:
Hi, we've got a small security setting problem here, an as I'm new to server 2003, I can solve it alone... here is the situation : we have a web application, hosted on Windows Server 2003,...
0
by: Dheeraj Verma via DotNetMonster.com | last post by:
Hi all, I have a asp data grid under which i have another datagrid which is my user control and is autogenerated.Now I am not able to implement sorting in my inner datagrid eventhough I have...
4
by: Vikas Kumar | last post by:
propertyDescription += "<br>" + lblpropertyDescription.Text; //here i am reading some text from text area i test wrting "p" in my text area it wrks fine but when i write <pin my text...
1
by: tim | last post by:
Hi all, I want to execute a VB application from a ASP page (not .Net). Want I want to do is that I write some parameters to a database and then start the external application that will pickup...
1
by: rajasekharsiva | last post by:
hi to all, i am new to this forum and also new to xml too... i have an xpath expression to select a list of values... XmlNodeList nl=doc.SelectNodes("//group/@group_name") it can select...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.