Links in XML

Dear Adobe Forums Team:
It's a pleasure for me to address for the first time ever to this wonderful community of motivated developers and designers.  I have the following question: How can I assign a link to an element of a Spry XML Data Set.  Here's are the link for:
the XML file
http://www.facendaradio.com/_xml/contributors.xml
and the webpage...
http://www.facendaradio.com/dataset_xml.html
What I want is to be able to assign a link to any field that I want.  In the XML file, I tried to assign it to the last record without any good result.
If you are so kind, I will really appreciate any help or comment.
Sincerely...
LF-Lizmark

The following is basically what you want, although you may prefer a variation.
In the XML file the input to web should be http://www.website.com or similar. If you want a name for the website - eg LF Studio.com - then there should be a web_name field.
For the output you will have
<td><a href="{web}">{web_name}</a></td>
Gramps

Similar Messages

  • How Can I Attach and Link an XML file to a 3D Model in a PDF?

    How Can I Attach and Link an XML file to a 3D Model in a PDF?
    What I am trying to do is find out how to have a 3D model and a parts list linked to it within the PDF file.  I would also like to be able to add to the parts list if at all possible once the pdf has been created.  A template to create future PDF's with the 3D model and list might also be useful.
    I am not entirely sure if this is all possible within a PDF file, but I have viewed a PDF (Adidas Trainer) example which has a Excel file attached to it which links to the 3D model.  I have also had a look at partner products such as Lattice, Tetra4D, Anark, which can do animations and all sorts, but frankly it seems a bit overkill for what I am looking to do.
    Please, any help would be appreciated.  Thanks

    AlliCT59 wrote:
    > Shared Object sounds like it would work, but hten agian,
    I'm really stuck!
    >
    > Thanks for any help.
    >
    > Allison
    I wrote about it while ago, let me paste the whole thing.
    This example has simple
    buttons which upon click go to new sites and in the same time
    place record in form
    of *.SOL file on user drive. That record is read when you hit
    the next button and
    based on that the button will be selected as the one last
    clicked.
    You could use the very same thing just instead of suppressing
    button simply gotoAndPlay frame
    to continue the part you need.
    http://groups.google.com/group/macromedia.flash.actionscript/browse_thread/thread/36649453 1f4fd02d/245a57d0cdaa1d29?lnk=st&q=&rnum=3&hl=en#245a57d0cdaa1d29
    The source is in a different place, i re-upload for you :
    http://www.flashfugitive.com/stuff/SharedObj_urlcheck/
    fla file
    http://www.flashfugitive.com/stuff/SharedObj_urlcheck/beentourl.fla
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Link multiple  XML files  stored in oracle database

    Link multiple XML files
    Can any one give some code example regarding my issue:
    If I have for example file1.xml stored in one relational table and another file2.xml stored in another table ….etc
    And I want to put link and reference which will make me able to link these files and make query or insert…etc
    May be I need to use Xlink, Xpoiner or Xinclude . But if this is the solution to this problem please can you give a simple example that will help to understand the solution especially that I want to develop my project in oracle and I will register xml schema to insert the xml files in the database
    Thanks lots and I am waiting for your solution

    no answer for my question
    is this thread is a write place or I have to move my query to another part of the forum
    thanks

  • Link to xml from xml ( mx:Button click="function({...});" )

    links.xml contains links for page1, page2
    links.xml
    |
    +-- page1.xml
    |
    +-- page2.xml
    I try:
    <mx:Button click="loadXML2({ getField( XML(
    linksItems.currentItem ), how1Link ) });" label="Link" />
    Debugger says:
    Error: Repeater is not executing.
    at mx.core::Repeater/get currentItem()
    at LinkFromXML2/___LinkButton1_click()
    <!-- File: links.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <item>
    <dc:title>Page 1</dc:title>
    <dc:link>page1.xml</dc:link>
    </item>
    <item>
    <dc:title>Page 2</dc:title>
    <dc:link>page2.xml</dc:link>
    </item>
    </rdf:RDF>
    <!-- File: page1.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <dc:Work>
    <dc:title>Page 1</dc:title>
    </dc:Work>
    </rdf:RDF>
    <!-- File: page2.xml -->
    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns="
    http://web.resource.org/cc/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/"
    xmlns:rdf="
    http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <dc:Work>
    <dc:title>Page 2</dc:title>
    </dc:Work>
    </rdf:RDF>
    <!-- File: LinkFromXML.mxml -->
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="loadXML('links.xml');">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    public var pathxml:String;
    public var pathxml2:String;
    private var how:Namespace = new Namespace("
    http://web.resource.org/cc/");
    private var dc:Namespace = new Namespace("
    http://purl.org/dc/elements/1.1/");
    [Bindable]
    private var how1Title:QName = new QName(dc, "title");
    [Bindable]
    private var how1Link:QName = new QName(dc, "link");
    [Bindable]
    private var how2Title:QName = new QName(dc, "title");
    [Bindable]
    private var how1externalXML:XMLListCollection;
    [Bindable]
    private var how2externalXML:XMLListCollection;
    private function loadXML(pathxml):void {
    trace (pathxml);
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(pathxml);
    loader.load(request);
    loader.addEventListener(Event.COMPLETE, onComplete);
    private function loadXML2(pathxml2):void {
    var loader2:URLLoader = new URLLoader();
    var request2:URLRequest = new URLRequest(pathxml2);
    loader2.load(request2);
    loader2.addEventListener(Event.COMPLETE, onComplete2);
    private function onComplete(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    var how1Items:QName = new QName(how, "item");
    var dataXML:XML = XML( loader.data );
    dataXML.addNamespace( dc );
    var how1base:XMLList = dataXML.descendants( how1Items
    how1externalXML = new XMLListCollection( how1base );
    private function onComplete2(event:Event):void {
    var loader2:URLLoader =
    URLLoader(event.target);
    var how2Items:QName = new QName(dc, "Work");
    var dataXML:XML = XML( loader2.data );
    dataXML.addNamespace( dc );
    var how2base:XMLList = dataXML.descendants( how2Items
    how2externalXML = new XMLListCollection( how2base );
    private function getField( itemXML:XML,
    field:QName):String {
    return itemXML.descendants( field ).toString();
    ]]>
    </mx:Script>
    <mx:Canvas id="HowView" backgroundColor="#FFFFCC"
    label="How"
    width="100%" height="100%">
    <mx:HBox width="100%" height="100%">
    <mx:VDividedBox width="400" height="100%" id="how1Box"
    backgroundColor="#B9C5A0">
    <mx:Repeater width="80%" id="linksItems"
    dataProvider="{ how1externalXML }">
    <mx:VBox width="80%" horizontalAlign="center"
    creationCompleteEffect="Fade">
    <mx:LinkButton click="loadXML2('{getField( XML(
    linksItems.currentItem ), how1Link )}')" label="{ getField( XML(
    linksItems.currentItem ), how1Title) }" />
    </mx:VBox>
    </mx:Repeater>
    </mx:VDividedBox>
    <mx:VDividedBox width="100%" height="100%" id="how2Box"
    backgroundColor="#6BA1A3">
    <mx:Repeater width="100%" id="workItems"
    dataProvider="{ how2externalXML }">
    <mx:VBox width="534" horizontalAlign="center"
    creationCompleteEffect="Fade">
    <mx:Label text="{ getField( XML(
    workItems.currentItem ), how2Title) }" color="#000000"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:VDividedBox>
    </mx:HBox>
    </mx:Canvas>
    </mx:Application>

    "Cole_62" <[email protected]> wrote in
    message
    news:gd2q5r$f08$[email protected]..
    > no i dont think this will work because i need to iterate
    through each
    > <item> in
    > the XML...below is an exmaple of possible tree structure
    of the XML:
    > channel
    > -->item1
    > ----->title
    > ----->imgs
    > --------->imgUrl
    > --------->imgUrl
    > -->item2
    > ----->title
    > ----->imgs
    > ---------->imgUrl
    > -->item3
    > ------>title
    > ------>imgs
    > ----------->(no imgs)
    >
    > i thought to handle this using something like the
    ATTACHED CODE below:
    >
    > ...i need to be able to go through each <item> and
    <imgUrl> (because i
    > dont
    > know how many (if any) there are!) sorry if my PHP
    background shines
    > through!
    >
    > THANKS!
    >
    > <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    > <mx:HBox>
    > <mx:Text text="{feed.currentItem.title}"/>
    > <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    > <!-- PSEUDO CODE I NEED HELP RESOLVING:
    > if ("{item.currentItem.imgURL}")
    > -->
    > <mx:Image source="{item.currentItem.imgUrl}"/>
    > </mx:Repeater>
    > </mx:HBox>
    > </mx:Repeater>
    How bout
    <mx:Repeater id="feed"
    dataProvider="{XML.channel.item}">
    <mx:HBox>
    <mx:Text text="{feed.currentItem.title}"/>
    <mx:Repeater id="item"
    dataProvider="{feed.currentItem.imgs}">
    <mx:Image
    source="{item.currentItem.imgURL.length()>0?item.currentItem.imgURL:null}"
    includeInLayout="{item.currentItem.imgURL.length()>0}"/>
    </mx:Repeater>
    </mx:HBox>
    </mx:Repeater>

  • Embed Images which are linked through xml

    Hi there,
    I need to embed images of several galleries which are linked
    by xml code directly A) to a directory or B) to http... To make a
    ShowCase Application for my LapTop but need to embed these images
    as I do not want to use a internet connection when showing???
    Thanks for any help in advance
    aktell

    Unlock all layers and items.
    Select first image in links palette
    Hold down shift and click on last item to elect all
    Click on 2nd icon on bottom (Go To link)
    Hit Delete
    Unfortuanately there is not a show linked itms only, but you can show embedded prior to doing this and locking.

  • URL link inside XML file

    Hi, does anyone know how if its possible to create a link
    inside XML description. The script like this:
    <a href="
    http://yoursite.com"target="_blank"> did not
    work.
    Thanks,

    Thanks, I tried the code which made the whole existing script
    fall apart. I got the file from FlashDen and to do the change will
    require an advanced programming in which I am absolute 0. Here is
    the template
    http://www.flashden.net/files/16781/index.html
    I am trying to create URL inside the image description.
    I feel absolutely helpless.
    Thanks again for your effort.

  • Issue using data link in XML Publisher

    Dear All,
    I am new to XML Publisher, for the first time trying data link concept in XML Publisher tool. The issue is very simple, I have two queries Q1(say it fetches sales_order_number, application_name ) and Q2 (say it fetches sales_order_number , error_number, error_description). And sales_order_number is passed as input using data link to Query Q2 from query Q1 and Q2 will retrive more than one row for a given sales_order_number.
    Say for a given dept_name 1001 the output will be something similiar like
    Q1:
    SO# | Appl.Name
    1001 | 'Invoice '
    Q2:
    SO# | Error.# | Error Desc
    1001 | 1512 | No Data Found
    1001 | 1513 | Invalid Entry
    1001 | 2674 | Error while inserting the record
    and the query which I have used in XML template goes like this
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select sales_order_number, application_name                 
                      from T1
                     where sales_order_number = :in_sales_order_num]]>
    </sqlStatement>
    <sqlStatement name="LINES">
    <![CDATA[
    select sales_order_number , error_number, error_description
    from T2]]>
    </sqlStatement>
    <link name="Dummy_LINK" parentQuery="Q1" parentColumn="sales_order_number" childQuery="Q2" childColumn="sales_order_number" condition="="/>
    </dataQuery>
    <daraStructure/>
    And the grouping is as follows
    <group name="G_Q1" source="Q1">     
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="application_name" value="application_name"/>     
    <group name="G_Q2" source="Q2">
         <element name="sales_order_number" value="sales_order_number"/>
         <element name="error_number" value="error_number"/>
         <element name="error_description" value="error_description"/>     
    </group>
    </group>
    And in the RTF template I have properly used <?for-each:G_Q1?> <?for-each:G_Q2?>- --
    <?end for-each?><?end for-each?>
    Ideally the header (Q1) should have one row and the lines (Q2) should have 3 rows. But the issue here is even Q1 produces 3 rows.
    If in case Q2 has 4 records, then Q1 also plots 4 records in the report output. Hope I am explaining the issue correctly. Any help to resolve the issue would be a great. Thanks in advance.
    Regards,
    Antony.

    try like this
    <?if: (TYPE='A') or (TYPE= 'B')?><TABLE STRUCTURE><?end if?>
    or
    <?if:contains('A~B', TYPE )?><TABLE STRUCTURE> <?end if?>

  • Creating a Link with XML Files

    Hi,
    I am trying to import a XML file in a table structure following instructions from the Adobe help file (could only find a CS3 one, I am using CS4, the link to it: http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf). Now the import works fine and my table is displayed correctly. My plan for this is to have XML files created from a database so when they get overwritten it will automatically update the tables in the file. While importing it I chose the "Create Link" option and I can see it in the links panel. All that seems fine. My problem is from this point if I do any changes to this file it gets added into my template along with the original with no formatting. So normally imported it looks like:
    code
    description
    unit
    price
    10000
    Product A
    Each
    5.00
    and if I edit it it then looks like this:
    5.00
    Each
    Product A
    10001
    PRICE
    UNIT
    DESCRIPTION
    CODE
    code
    description
    unit
    price
    10000
    Product A
    Each
    5.00
    And all I edited was the code value to be 10001 on the link yet it makes all these changes. Now if I edit the original XML file again it will crash Adobe CS4 and it freezes and says encountered error and closes. Does anyone have any advice on this situation? Is there a simple way to get XML tables inserted into a document that will change in the document if I edit the original file. If I have to change the XML that is fine as I can output it from the database pretty much whichever way I want.
    Here is the code for the XML file:
    <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="4">
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">CODE</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="59">DESCRIPTION</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">UNIT</Cell>
    <Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">PRICE</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">10000</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">Product A</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">Each</Cell>
    <Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">5.00</Cell>
    </Table>
    Any help would be appreciated.

    I wasn't using "Edit Original" before, but now that I do, I'm still unable to duplicate your result. When I edit and save, the results are just as one would expect. What application are you using to edit the XML? I am using Text Wrangler. What platform are you one? I've been testing this on a Mac, but could try it on Windows of that's what you are using. Also, out of curiosity, what does your XML structure look like? Here's mine:
    <Root>
      <Article>
        <Story>
          <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="2" aid:tcols="4">
            <Cell ..... (your cell nodes here)
          </Table>
        </Story>
      </Article>
    </Root>    

  • CDATA links in xml document

    Hello all,
    I am trying to add an html link inside a parapgraph of text that is loaded through an xml document. I have done some research and it appears I need to set my actionscript to read the html. When I add the href in the text it reads literally as the code instead of creating a hyperlink in the paragraph. My problem is I did not set up the original flash document and I anot sure where to add the htmlText=true; and so on.
    Here is the link. The problem is in the "press" section. last line in the paragraph of text. You can see the aref code not working.
    http://atelierdelalain.com/index_test.html
    Thanks in advance for any help!
    Sandra
    XML data:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <images>
            <pic>
            <image>http://atelierdelalain.com/press/01.jpg</image>
            <title><![CDATA[WHAT IS JAMES WEARING?]]></title>
            <desc><![CDATA[As you know by now, I love to incorporate the work of fine artisans and crafts people into the interiors I create for both myself and my clients; an individually handcrafted object really can make a space.
    This brings me to furniture maker Emmanuel Delalain and his company Atelier Delalain who are doing the most marvelous things in wood and metal. With clean elegant lines, highly considered functionality, and a rich sensual poetry to his work, it didn't surprise us to learn that Delalain honed his craft as a young man in the Southern French coastal workshop of his father and grandfather building sailboats.
    To view full article click here.<a href="http://www.strutdenver.com" target="_blank">Strut</a>]]></desc>
            <dims><![CDATA[]]></dims>
            <note><![CDATA[]]></note>
            <thumbnail>http://atelierdelalain.com/press/thumbs/01.jpg</thumbnail>
            <width>600</width>
            <thumbwidth>47</thumbwidth>
        <subpics>
        </subpics>
        </pic>
    </images>
    Actionscript Code:
    import mx.transitions.*;
    import mx.transitions.easing.*;
    displayWidth = Stage.width;
    function loadXML(loaded) {
        if (loaded) {
            xmlNode = this.firstChild;
            image = [];
            title = [];
            desc = [];
            dims = [];
            note = [];
            thumbnails = [];
            imageW = [];
            subimage = [];
            subthumb = [];
            subW = [];
            subArray = new Array();
            total = xmlNode.childNodes.length;
            for (i=0; i<total; i++) {
                image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                title[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                desc[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                dims[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                note[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
                thumbnails[i] = xmlNode.childNodes[i].childNodes[5].firstChild.nodeValue;
                imageW[i] = xmlNode.childNodes[i].childNodes[6].firstChild.nodeValue;
                if (i == 0) {
                    thisX = 0;
                    w = xmlNode.childNodes[i].childNodes[7].firstChild.nodeValue;
                } else {
                    thisX = Number(w)+Number(2);
                    thisW = xmlNode.childNodes[i].childNodes[7].firstChild.nodeValue;
                    w = Number(thisX)+Number(thisW);
                //number of subpics
                total_subpics = xmlNode.childNodes[i].childNodes[8].childNodes.length;
                if (total_subpics != undefined) {
                    subArray[i] = new Array();
                    for (x=0; x<total_subpics; x++) {
                        subArray[i][x] = new Array();
                        subArray[i][x][0] = xmlNode.childNodes[i].childNodes[8].childNodes[x].childNodes[0].firstChild.nodeValue;
                        subArray[i][x][1] = xmlNode.childNodes[i].childNodes[8].childNodes[x].childNodes[1].firstChild.nodeValue;
                        subArray[i][x][2] = xmlNode.childNodes[i].childNodes[8].childNodes[x].childNodes[2].firstChild.nodeValue;
                        subArray[i][x][3] = xmlNode.childNodes[i].childNodes[8].childNodes[x].childNodes[3].firstChild.nodeValue;
                thumbnails_fn(i, thisX);
            firstImage();
        } else {
            content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("flash/press.xml");
    listen = new Object();
    listen.onKeyDown = function() {
        if (Key.getCode() == Key.LEFT) {
            prevImage();
        } else if (Key.getCode() == Key.RIGHT) {
            nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {
        prevImage();
    next_btn.onRelease = function() {
        nextImage();
    p = 0;
    this.onEnterFrame = function() {
        filesize = picture.getBytesTotal();
        loaded = picture.getBytesLoaded();
        preloader._visible = true;
        if (loaded != filesize) {
            preloader.preload_bar._xscale = 100*loaded/filesize;
        } else {
            preloader._visible = false;
            if (picture._alpha<100) {
                picture._alpha += 10;
                subHolder._alpha += 10;
    function nextImage() {
        if (p<(total-1)) {
            p++;
            if (loaded == filesize) {
                ///////////// sub thumbs ////////////
                subHolder.removeMovieClip();
                if (subArray[p] != undefined) {
                    createEmptyMovieClip("subHolder", 10);
                    subHolder._x = 800;
                    for (z=0; z<subArray[p].length; z++) {
                        subthumbs_fn(p, z);
                    createEmptyMovieClip("Line", 1);
                    lineLen = z*60+z*5;
                    Line.lineStyle(1, 0x492F92, 100);
                    Line.moveTo(795, 0);
                    Line.lineTo(795, lineLen);
                    createEmptyMovieClip("Line2", 2);
                    Line2.lineStyle(1, 0x492F92, 100);
                    Line2.moveTo(895, 0);
                    Line2.lineTo(895, lineLen);
                } else {
                    Line._alpha = 0;
                    Line2._alpha = 0;
                subHolder._alpha = 0;
                ///////////// end sub thumbs ////////////
                picture._alpha = 0;
                picture.loadMovie(image[p], 1);
                //displayWidth = Stage.width;
                imageWidth = imageW[p];
                res = displayWidth-imageWidth;
                place = res/2;
                picture._x = place;
                title_txt.htmlText = true;
                title_txt.htmlText = title[p];
                desc_txt.htmlText = desc[p]+" "+dims[p]+". "+note[p];
                picture_num();
    function prevImage() {
        if (p>0) {
            p--;
            ///////////// sub thumbs ////////////
            subHolder.removeMovieClip();
            if (subArray[p] != undefined) {
                createEmptyMovieClip("subHolder", 10);
                subHolder._x = 800;
                for (z=0; z<subArray[p].length; z++) {
                    subthumbs_fn(p, z);
                createEmptyMovieClip("Line", 1);
                lineLen = z*60+z*5;
                Line.lineStyle(1, 0x492F92, 100);
                Line.moveTo(795, 0);
                Line.lineTo(795, lineLen);
                createEmptyMovieClip("Line2", 2);
                Line2.lineStyle(1, 0x492F92, 100);
                Line2.moveTo(895, 0);
                Line2.lineTo(895, lineLen);
            } else {
                Line._alpha = 0;
                Line2._alpha = 0;
            subHolder._alpha = 0;
            ///////////// end sub thumbs ////////////
            picture._alpha = 0;
            picture.loadMovie(image[p], 1);
            //displayWidth = Stage.width;
            imageWidth = imageW[p];
            res = displayWidth-imageWidth;
            place = res/2;
            trace("dW:"+displayWidth+"iW:"+imageWidth+"x:"+place);
            picture._x = place;
            title_txt.htmlText = true;
            title_txt.htmlText = title[p];
            desc_txt.htmlText = desc[p]+" "+dims[p]+". "+note[p];
            picture_num();
    function firstImage() {
        if (loaded == filesize) {
            ///////////// sub thumbs ////////////
            subHolder.removeMovieClip();
            if (subArray[p] != undefined) {
                createEmptyMovieClip("subHolder", 10);
                subHolder._x = 800;
                for (z=0; z<subArray[p].length; z++) {
                    subthumbs_fn(p, z);
                createEmptyMovieClip("Line", 1);
                lineLen = z*60+z*5;
                Line.lineStyle(1, 0x492F92, 100);
                Line.moveTo(795, 0);
                Line.lineTo(795, lineLen);
                createEmptyMovieClip("Line2", 2);
                Line2.lineStyle(1, 0x492F92, 100);
                Line2.moveTo(895, 0);
                Line2.lineTo(895, lineLen);
            } else {
                Line._alpha = 0;
                Line2._alpha = 0;
            subHolder._alpha = 0;
            ///////////// end sub thumbs ////////////
            picture._alpha = 0;
            picture.loadMovie(image[0], 1);
            //displayWidth = Stage.width;
            imageWidth = imageW[0];
            res = displayWidth-imageWidth;
            place = res/2;
            picture._x = place;
            title_txt.htmlText = true;
            title_txt.htmlText = title[p];
            desc_txt.htmlText = desc[p]+" "+dims[p]+". "+note[p];
            picture_num();
    function picture_num() {
        current_pos = p+1;
        pos_txt.text = current_pos+" / "+total;
    function thumbNailScroller() {
        // thumbnail code!
        this.createEmptyMovieClip("tscroller", 1000);
        scroll_speed = 10;
        tscroller.onEnterFrame = function() {
            if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
                if ((_root._xmouse>=(hit_right._x-60)) && (thumbnail_mc.hitTest(hit_right))) {
                    thumbnail_mc._x -= scroll_speed;
                } else if ((_root._xmouse<=(hit_left._x+60)) && (thumbnail_mc.hitTest(hit_left))) {
                    thumbnail_mc._x += scroll_speed;
            } else {
                delete tscroller.onEnterFrame;
    function thumbnails_fn(k, xpos) {
        thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
        tlistener = new Object();
        tlistener.onLoadInit = function(target_mc) {
            target_mc._x = xpos;
            target_mc.pictureValue = k;
            target_mc.onRelease = function() {
                p = this.pictureValue-1;
                nextImage();
            target_mc.onRollOver = function() {
                this._alpha = 80;
                thumbNailScroller();
            target_mc.onRollOut = function() {
                this._alpha = 100;
        image_mcl = new MovieClipLoader();
        image_mcl.addListener(tlistener);
        image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
    function scrollLeft() {
        // thumbnail code!
        this.createEmptyMovieClip("tscroller", 1000);
        if (thumbnail_mc.hitTest(hit_right)) {
            thisX = thumbnail_mc._x;
            dist = hit_right._x-thumbnail_mc._x;
            r = thumbnail_mc._width-dist;
            if (r>=200) {
                newX = thumbnail_mc._x-200;
            } else {
                newX = thumbnail_mc._x-r;
            new Tween(thumbnail_mc, "_x", Regular.easeOut, thisX, newX, .5, true);
    function scrollRight() {
        // thumbnail code!
        this.createEmptyMovieClip("tscroller", 1000);
        if (thumbnail_mc.hitTest(hit_left)) {
            thisX = thumbnail_mc._x;
            dist = hit_left._x-thumbnail_mc._x;
            if (dist>=200) {
                newX = thumbnail_mc._x+200;
            } else {
                newX = thumbnail_mc._x+dist;
            new Tween(thumbnail_mc, "_x", Regular.easeOut, thisX, newX, .5, true);
    buttonRight.onRelease = function() {
        scrollLeft();
    buttonLeft.onRelease = function() {
        scrollRight();
    function subthumbs_fn(p, z) {
        subHolder.createEmptyMovieClip("sub"+z, subHolder.getNextHighestDepth());
        sublistener = new Object();
        sublistener.onLoadInit = function(targ_mc) {
            //targ_mc._x = 800;
            targ_mc._y = 60*z+5*z;
            thumbWidth = subArray[p][z][3];
            thumbRes = 90-thumbWidth;
            thumbPlace = thumbRes/2;
            targ_mc._x = thumbPlace;
            trace(targ_mc._x);
            targ_mc.onRelease = function() {
                //p = this.pictureValue-1;
                //nextImage();
                picture._alpha = 0;
                picture.loadMovie(subArray[p][z][0], 1);
                //displayWidth = Stage.width;
                imageWidth = subArray[p][z][2];
                res = displayWidth-imageWidth;
                place = res/2;
                picture._x = place;
                this._alpha = 30;
                //picture_num();
            targ_mc.onRollOver = function() {
                targ_mc._alpha = 80;
                trace(targ_mc);
            targ_mc.onRollOut = function() {
                this._alpha = 100;
        sub_mcl = new MovieClipLoader();
        sub_mcl.addListener(sublistener);
        sub_mcl.loadClip(subArray[p][z][1], "subHolder.sub"+z);

    Thank you for your replies
    I tried adding the code mentioned, but I still can't get it to work. I added:
    title_txt.htmlText = true;
    title_txt.htmlText = title[p];
    desc_txt.htmlText = true;
    desc_txt.htmlText = desc[p]+" "+dims[p]+". "+note[p];
    Am I adding in the wrong place? The text box that has the html in it is the "desc_txt" box. Any clues as to where the code would go in relation to the above code listed?
    Again... thank you for all of your help. Really appreciated! 
    Sandra

  • Insert a link on xml report. The link should open up a document(PDFS).

    Is it possible to insert a link in the report? The value would come from a sql query. The link when clicked on would open up the pdf or doc.
    Is this done thru a href or by inserting a dynamic hyper link.
    The release Release 5.6.2 documentation references how to insert a hyperlink. NOt sure if this will work for me.
    I tried it but in the documentation it states:
    >
    If your input XML data includes an element that contains a hyperlink or part of
    one, you can create dynamic hyperlinks at runtime. In the Type the file or Web page
    name field of the Insert Hyperlink dialog box, enter the following syntax:
    {URL_LINK}
    where URL_LINK is the incoming data element name.
    >
    However the dialog box I am getting when I insert the hyperlink does not have a place to enter the element name. That is, there is no 'TYPE the file or Web page' area that I can see.

    hi ashalon,
    I did it this way in MS Word.
    1. create placeholder for value
    2. highlight it and make it a hyperlink
    3. enter the url into the address line
    So If you have a complete hyperlink in xml element URL_LINK you just have to enter {URL_LINK} into the address line. If you have only a part of the link, i.e only a product name, you can enter "http://www.oracle.com?product={PRODUCT_NAME}".
    Hope this helps.
    Regards
    chrissy

  • How to add URL links in XML file?

    Hi,
    I'm having problem with adding the URL links to the flash output. I'm using the XML file to call images and then the corrsponding links. Images are called correctly but when I try to add a link I'm not getting the links, but instead getting the HTML anchor tags as texts. I'm using the XML escape characters to escape the HTML tags but the results are not what I need.
    I'm using the following code:
    <thumbnail preview="large.jpg" thumb="thumb.jpg">
                <title><![CDATA[Finance Services]]></title>
                <discription><![CDATA[&lt;a href=&quot;http://www.google.ca">Google</a>]]></discription>
    </thumbnail>
    Output:
    Images are displayed correctly, but instead of getting the links, I'm getting following text message:
    <a href="http://www.google.ca">Google</a>
    I need to find out what I'm doing wrong. Am I using the correct way to add the links or not?
    Thanks for your time.

    I'm using following code for the Description part, where I need to place the HTML tags:
    var _discription:TextField = previewHolder.discriptionText.discriptionText;
    _discription.htmlText = _xml.thumbnails.thumbnail[photoNum].discription.toString()
    I'm using the htmlText, I tried replacing htmlText with tf.htmlText, but it didn't work. I'm importing the text field using import flash.text.TextField; do I need to import something for HTML tags to work?

  • Photo caption links in xml

    hi......i was wondering if anyone had ideas on how to display
    links from the xml file?.....i have some photos with corresponding
    captions and links, but have had a hard time figuring how to make
    the links active on the page.......was looking into xlink, but
    heard that IE doesn't support this.......any ideas, or examples
    that might help figure this out?
    thanks,
    emile

    thanks Donald.....hadn't tried that, that works pretty well
    and is really close to what would like to do.......one complication
    is that basically the individual enlarged photos in the album i'm
    trying are either in sets of 1 or 2 images........when u have only
    one image and one link displayed at a time, the link column works
    great.....but when there are two images and two links together - am
    not sure how to get this to work......i tried to make two link
    columns, which worked for the double images, but then on the single
    images one of the links would be undefined........does that make
    sense?......here's a link to the gallery if it might help:
    http://www.00-00.org/0-0/00/0/00-0.html

  • Link in xml form article text to open another portal page?

    Like in all websites our intranet have pages with articles (xml forms) where it's logical for the text to include links to other articles in other areas of the portal.
    Since all iviews (km navigation in this case) are displayed as iframes, links within the text only lead to the target page being displayed within the iview/iframe. I need the complete portal page to change to also show where in the page hierachy/navigation structure the user has landed.
    I am aware of the related links iview, but this doesn't do the trick. I want the article text itself to include the links.
    A logical solution would be to find the page's navigation URL and use this as a text link, but then I would need to add a target=_top to change the whole page around. This is not possible within a xml form. (<a href="/irj/portal?NavigationTarget= navurl://cf1c773631c70d216fe3434ca4dc3a0e" target="_top")
    Ideas?
    Henning

    Thanks for answer. Points awarded.
    BUT: Still, a link to http://server/irj/portal/link added in the html editor window of an xml form only give the options of opening the link in new browser, or in the active window. The first option results in a massive amount of opened browsers, the second results in the target page being opened in the iframe (not nice!)
    Of course I could edit the xml directly adding a target=_top, but every new editing of this file would overwrite these changes.
    The best way would be to add a new option in the html editor allowing an option of "fill entire window" when adding a text link that adds target=_top in the xml.
    Ideas?
    Henning

  • The portal url appears in external links in XML Forms

    Hi,
    I have created an XML Forms application that should contain a link to an external webpage.
    In the Edit view I have created 2 text fields.
    1 for the url and 1 urlname for the name of the link.
    In the Show view I have created a link (Lable)  with:
    Hyperlink property:        /DataSchema/DataModel/url
    Schema Reference:          /DataSchema/DataModel/urlName     
    Style :              Function Link
    When I run the application It renders the link as a link with the urlname as the name of the link.
    Great !! ;0)
    <b>...but</b> when clicking on the link it open up a new window with the <b><b><b>portal URL</b> + the specified url:</b></b>
    E.g.
    Test data:
    Name:     Google
    URL:     http://www.google.com
    Result:
    <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    Why does this happen? And what can I do in order to open up the new window with just the url that I have provided (http://www.google.com)
    Thanks for any help !
    Best regards
    Rasmus

    Hi All and thanks for all help
    But..
    The thing is that it has nothing to do with the application.
    E.g. I have tested the <b>SAP_APP_FAQs</b> forms application delivered by SAP.
    This forms application has an external link called <b>Read more… </b>When I test this forms application everything is OK. It opens up the target URL in a new window e.g. <b>http://www.google.com</b>
    This is exactly what I want so I make a copy (save as) of the project. I run the application and believe it or not I got the wrong result: <b>http://<portalurl>:58000/irj/portal/http://www.google.com</b>
    I have not made any changes of the application!!
    Can any tell me what’s wrong?
    Thanks in advance
    Best regards
    Rasmus

  • URL links in XML

    I have a datagrid populated with a XML file which contains
    URL links. I cannot get the links to work when I click on them. Is
    there a simple solution? I'v tried to use this format :
    <link> <a href="
    http://www.ghagdjagdjadg.com>
    testpage</a></link> , but nothing happens and the line
    in the datagris is empty. Can anyone help me?

    I dont suppose eith ero fyou can help me with a menu Im
    building, I have worked through a few demonstrations my xml menu
    looks like this.
    <menu>
    <menuitem label="Integration Files" icon="folder" >
    <menuitem label= "JPI Word dot" icon="dot"/>
    </menuitem>
    </menu>
    the problem I'm having is I have tried to add urls but to no
    avail. Any help would be appreciated.

  • Links from XML

    Hello everybody. I'm working with a XML driven photo gallery
    that looks like this:
    <gallery name="Birthday">
    <image source="pics/pic5.jpg" thumb="pics/th5.jpg"
    title="Agreement"/>
    <image source="pics/pic6.jpg" thumb="pics/th6.jpg"
    title="Landscape"/>
    <image source="pics/pic7.jpg" thumb="pics/th7.jpg"
    title="Face"/>
    <image source="pics/pic8.jpg" thumb="pics/th8.jpg"
    title="Sunset"/>
    <image source="pics/pic9.jpg" thumb="pics/th9.jpg"
    title="My Girlfriend"/>
    </gallery>
    Now, I would need the title to become a link. Could anybody
    help me please?
    Thanks so much
    dani

    Here is the actionscript:
    var tnNr;
    spacing = 10;
    container._alpha = 0;
    var curLength;
    MovieClip.prototype.loadPic = function(pic, id) {
    info.text = "";
    this._alpha = 0;
    this.loadMovie(pic);
    temp = this._parent.createEmptyMovieClip("temp2", 998);
    temp.onEnterFrame = function() {
    var t = container.getBytesTotal(), l =
    container.getBytesLoaded();
    if (Math.round(l/t) == 1 && container._width != 0
    && container._height != 0) {
    var w = container._width+spacing, h =
    container._height+spacing;
    border.resizeMe(w, h, id);
    delete this.onEnterFrame;
    MovieClip.prototype.resizeMe = function(w, h, id) {
    var speed = 3;
    container._alpha = 0;
    this.onEnterFrame = function() {
    this._width += (w-this._width)/speed;
    this._height += (h-this._height)/speed;
    if (Math.abs(this._width-w)<1 &&
    Math.abs(this._height-h)<1) {
    this._width = w;
    this._height = h;
    container._x = this._x-this._width/2+spacing/2;
    container._y = this._y-this._height/2+spacing/2;
    info._y = Math.round(this._y+this._height/2+spacing/2);
    container._alpha += 5;
    if (container._alpha>90) {
    info.text = id;
    container._alpha = 100;
    delete this.onEnterFrame;
    function galleryChoice(q) {
    pArray = new Array();
    tArray = new Array();
    iArray = new Array();
    my_xml = new XML();
    for (var j = 0; j<curLength; j++) {
    this.th_nav["thmb"+j].removeMovieClip();
    my_xml.ignoreWhite = true;
    my_xml.onLoad = function(loaded) {
    if (loaded) {
    gallery = this.firstChild.childNodes
    quote:
    curLength = gallery.childNodes.length;
    for (var i = 0; i<gallery.childNodes.length; i++) {
    pArray.push(gallery.childNodes
    .attributes.source);
    tArray.push(gallery.childNodes.attributes.thumb);
    iArray.push(gallery.childNodes
    .attributes.title);
    delay = setInterval(makeButtons, 50);
    my_xml.load("gallery.xml");
    function makeButtons() {
    tnNr = 0;
    clearInterval(delay);
    for (var i = 0; i<tArray.length; i++) {
    var thb = th_nav.thmb.duplicateMovieClip("thmb"+i, 1000+i);
    thb.id = i;
    thb._x = i%2*50;
    thb._y = Math.floor(i/2)*50;
    loadButtons();
    function loadButtons() {
    var tbox = th_nav["thmb"+tnNr].box;
    tbox.loadMovie(tArray[tnNr]);
    temp = this.createEmptyMovieClip("tmp"+tnNr, 999);
    temp.onEnterFrame = function() {
    bt = tbox.getBytesTotal();
    bl = tbox.getBytesLoaded();
    if (bt == bl && bt>4) {
    nextButton();
    delete this.onEnterFrame;
    function nextButton() {
    if (tnNr<tArray.length-1) {
    tnNr++;
    loadButtons();
    } else {
    activateButtons();
    function activateButtons() {
    mainButtons();
    for (var i = 0; i<pArray.length; i++) {
    var but = th_nav["thmb"+i];
    but.id = i;
    but.onRelease = function() {
    container.loadPic(pArray[this.id], iArray[this.id]);
    disButtons2(this.id);
    container.loadPic(pArray[0], iArray[0]);
    disButtons2(0);
    butArray = new Array();
    butArray = ["gal1_btn", "gal2_btn", "gal3_btn", "gal4_btn"];
    function mainButtons() {
    for (var i = 0; i<butArray.length; i++) {
    this[butArray].id = i;
    this[butArray
    ].onRelease = function() {
    galleryChoice(this.id);
    disButtons(this.id);
    function disButtons2(d) {
    for (var i = 0; i<tArray.length; i++) {
    if (i != d) {
    this.th_nav["thmb"+i].enabled = 1;
    this.th_nav["thmb"+i].box._alpha = 100;
    } else {
    this.th_nav["thmb"+i].enabled = 0;
    this.th_nav["thmb"+i].box._alpha = 50;
    function disButtons(d) {
    for (var i = 0; i<butArray.length; i++) {
    if (i != d) {
    this[butArray].enabled = 1;
    this[butArray
    ].gotoAndStop(1);
    } else {
    this[butArray].enabled = 0;
    this[butArray
    ].gotoAndStop(2);
    disButtons(0);
    galleryChoice(0);

Maybe you are looking for

  • Another J2SDK1.4 Installation problem on Linux

    I downloaded the latest .bin, and when I do a ". [filename.bin]" from the shell, the installation starts by showing my the license agreement. At the end when I go to press 'y' to agree to the terms, the install halts by displaying the message invalid

  • How to retrieve e-mail accidently deleted?

    I have accidentally deleted one of my e-mail from the in box. how to retrieve?

  • DW CC Displaying Duplicate Stylesheets

    Dreamweaver has started showing duplicate stylesheets for every one that I create. When I select the duplicate one it gives me the "...is not on the local disk. Get" dialog. Every time I create or add a new css doc to the site it automatically create

  • Publish Photo's to Facebook Pages - How?

    Hi, I have a Facebook Page for my business and I would like to be able to publish pictures directly from iPhoto to the administer page (not my personal page)? Thanks.

  • Windows 2000 connected to Mac OS X 10.4 Server

    We are in the process of installing a digital press with a workflow front end running Windows 2000 Server. We would like to connect this to our XServe running 10.4 Server. Are there any issues with connecting an older Windows operating system to newe