473,802 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javas cript"
src=http://datafeed.XXXXXX .com/YYY.asp?area=XX &stories=10&url =www.ABC.com>
</script>

<script language="javas cript">
for (row= 0;row < Docs.length; row++)
{
document.writel n(" <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.writel n, 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 1200
In article <45************ **************@ posting.google. com>,
al****@saabcons ulting.com enlightened us with...

Given that I can insert HTML tags insire the document.writel n, 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="javas cript">
for (row= 0;row < Docs.length; row++)
{
new_win =
window.open('', 'new_win','resi zable=yes,scrol lbars=yes,width =800,height=625 ,left=200,top=1 0');
new_win.documen t.open("text/html");
new_win.documen t.writeln("<htm l><body><ul>") ;
new_win.documen t.writeln("<li class=\"style1\ " target=\"_blank \">" +
Docs[row] + " </li>");
new_win.documen t.writeln("</ul></body></html>");
new_win.documen t.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
6466
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 userid=XXXXX/YYYY@ZZZZ control=S:\.......\iss3_memdoc.ctl
18
4402
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
2
2096
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? I'm using IE 6.0 cheers, mortb actual code included (cut from a larger page):
0
1118
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
974
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, that use Crystal Report 9. RPT files are placed in a specific folder, with ReadOnly access. When a user requests for a repport, the temporary file is well created in
0
1211
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 enabled sorting.even the item command is not firing for the inner grid.I am binding the datagrid onPrerender. <ASP:DATAGRID id="MainDataGrid" Runat="server" width="100%" AutoGenerateColumns="False" BorderWidth="0"> <COLUMNS> <ASP:TEMPLATECOLUMN>...
4
1677
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 area it gives the following error Error Message:A potentially dangerous Request.Form value was detected from the client (lblpropertyDescription=" "). Stack Trace: at System.Web.HttpRequest.ValidateString(String s, String
1
1076
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 these parameters and run in the background. I looked for a sample but I can't find any. Who can help me. Many thanks Tim
1
959
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 only the node having value as Friends
0
10536
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10304
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9114
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.