XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 1st, 2003, 10:36 AM
Digitalosophy Digitalosophy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 74 Digitalosophy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old July 1st, 2003, 02:23 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
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

Reply With Quote
  #3  
Old July 2nd, 2003, 09:43 AM
Digitalosophy Digitalosophy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 74 Digitalosophy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 6
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

Reply With Quote
  #4  
Old July 2nd, 2003, 11:17 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
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.

Reply With Quote
  #5  
Old July 2nd, 2003, 11:49 AM
Digitalosophy Digitalosophy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 74 Digitalosophy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 25 m 20 sec
Reputation Power: 6
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Targeting XML to IFRAME


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway