#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    74
    Rep Power
    11

    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
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    74
    Rep Power
    11
    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
  6. #4
  7. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    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.
    -james
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    74
    Rep Power
    11
    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

IMN logo majestic logo threadwatch logo seochat tools logo