PDA

View Full Version : Open New Window in XML Issue


Magnix
03-28-2008, 06:40 PM
In XML, I can't get a link to open a new window by putting "_blank". I have othe links to open in its window with "_self", but it opens a new window instead.

XML -

<?xml version="1.0" encoding="UTF-8"?>
<MENU>
<FOLDER NAME="USING THE INSTINCT" LINK="using.asp" targ="_self">
<FILE NAME="FEATURES" LINK="fab.asp" targ="_self" />
<FILE NAME="FAQS" LINK="faq.asp" targ="_self" />
<FILE NAME="TIPS & TRICKS" LINK="tip.asp" targ="_self" />
<FILE NAME="SIMULATOR" LINK="#" targ="_blank" /> <---opens a new window only
</FOLDER>
</MENU>

Actionscript -

subBtn.onRelease = function():Void {
var targ = node.attributes.targ;
getURL(this.link, targ);
};

This will not work. Did I miss something here?

Thanks!

Magnix
03-28-2008, 07:24 PM
Nevermind, I figured this out and it worked.

In XML, I had to uppercase targ="_blank" to TARG="_blank" and set a different variables like this -

subBtn.targ = this.subfolder[i].attributes.TARG;
and this
getURL(this.link, this.targ); and it worked.

Thanks!