Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml url link how to load in new window?

Status
Not open for further replies.

panproduction

Technical User
Apr 8, 2008
1
US
Hello,
I'm new to xml and I have a script that is a flash based scroller that takes the information from an xml file:

There are scrolling thumbnails, when you click on them it takes you to a new url page. Only it's loading the url in the same window and I'd like for it to load in a blank or new window.
Here's what I have now:

<?xml version="1.0" encoding="utf-8" ?>
<thumbnails>
<thumbnail filename="nycomply2.jpg"
label="nycomply web"
url="description="Appearance Enhancement Compliance Agency" />
<thumbnail filename="amerbarber_2.jpg"
label="abi web"
url="description="ABI School of Barbering and Cosmetology" />
<thumbnail filename="isic_main.jpg"
label="isic web"
url="description="Institute for the Study of Infection Control" />
<thumbnail filename="smile_dental.jpg"
label="smiledental web"
url="description="Smile Dental PC - Flushing, Brooklyn NY" />
<thumbnail filename="posterize_01.jpg"
label="posterizethis web"
url="description="Compositing, FX for TV and Film" />
<thumbnail filename="HomeModerno.jpg"
label="homemoderno web"
url="description="Make Your Home a Future Home!" />
<thumbnail filename="Royal-Parking-of-NY.jpg"
label="royalparking web"
url="description="Royal Parking Valet Service" />
</thumbnails>

How can I get the url links to load in a new, blank window?

Thanks
 
Well, in HTML you add the following attribute and value to the anchor (<a>) tag:
Code:
target="_blank"
As far as your above example goes, it really depends whether the Flash-based scroller you are using implements this behaviour or not.

A good course of action would be to:
1) try adding the above "target" attribute to the "thumbnail" tag in your sample XML and see if it works
2) try finding some documentation (for the Flash-based scroller) listing the possible attributes for the "thumbnail" tag
3) try searching any FAQs (for the Flash-based scroller)
4) try contacting the author of the Flash-based scroller

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top