The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> XML Programming
|
Targeting XML to IFRAME
Discuss Targeting XML to IFRAME in the XML Programming forum on Dev Shed. Targeting XML to IFRAME XML Programming forum discussing XML and related technologies, including XUL and XSL. XML is a self-describing file format, designed for maximum compatibility between applications.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

July 1st, 2003, 10:36 AM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 74
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 10
|
|
|
Targeting XML to IFRAME
Hi,
This is my first post here. I am a XML noob. I really don't know much about it so forgive this question. I created an XML file that is read by Flash MX, which control's my navigation. The problem is I am not sure how to target a link to a specified IFrame. here is what my XML code looks like:
PHP Code:
<?xml version="1.0"?>
<MENU>
<ITEM NAME="Home" URL="index01.asp" />
<ITEM NAME="Publications">
<SUBITEM NAME="Mail" URL="mail.asp"/>
<SUBITEM NAME="Forms" URL="sublink22.html" />
<SUBITEM NAME="Correspondence" URL="sublink23.html" />
<SUBITEM NAME="Publications" URL="sublink23.html" />
</ITEM>
<ITEM NAME="Links">
<SUBITEM NAME="Army Library Links" URL="sublink21.html" />
<SUBITEM NAME="Other Library Links" URL="sublink22.html" />
</ITEM>
<ITEM NAME="FAQ's">
<SUBITEM NAME="View FAQ's" URL="sublink21.html" />
<SUBITEM NAME="Post A New FAQ" URL="sublink22.html" />
</ITEM>
<ITEM NAME="Site Map" URL="link1.htm" />
<ITEM NAME="Contact">
<SUBITEM NAME="Help With Site" URL="sublink31.html" />
<SUBITEM NAME="Questions" URL="sublink32.html" />
<SUBITEM NAME="Suggestions" URL="sublink32.html" />
</ITEM>
</MENU>
I really dont know why this doesn't work:
PHP Code:
<SUBITEM NAME="Mail" URL="mail.asp" target="myFrame"/>
I am really in a bind here, and would appreciate any help.
Thanks in advance
|

July 1st, 2003, 02:23 PM
|
|
Moderator =(8^(|)
|
|
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710
Time spent in forums: 20 m 38 sec
Reputation Power: 13
|
|
|
You'll probably get a better response to this questing if you ask in the Flash forum. The only thing I can suggest for you to look at is how does flash know to display "NAME" as a link, and put "URL" as the href. If you can figure that out, you should be able to get it to include a target attribute as well.
__________________
-james
|

July 2nd, 2003, 09:43 AM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 74
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 10
|
|
|
yes i did figure that out, thank you, the only problem is that all my links now target the IFrame. I only want 2 to do so, I will have to reconstrcut my code to fit my needs. thank you for your reply
|

July 2nd, 2003, 11:17 AM
|
|
Moderator =(8^(|)
|
|
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710
Time spent in forums: 20 m 38 sec
Reputation Power: 13
|
|
|
You can target "_top" if you want links to go to the current window. Or, if you're in a frame set, you can target "_self" to get the current frame.
|

July 2nd, 2003, 11:49 AM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 74
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 10
|
|
yes i understand. just for your own info this is the way my site is set up. I have an xml flash driven navigation. so when we need to update our navigation we don't have to open flash, since i am the only flash guru here  Flash generates the xml file and creates a drop down navigation. i have an IFrame with all my content. I have everything working fine, except for some of the buttons, they shoudl not open in the IFrame, rather a new window. the problem is that the flash function linsk all URL's to my IFrame. SO i guesswhat I need to do is soemhow detect what buttons are being called by flash, and just target them appropriatly. anyway thanks again
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|