problem in opening another page when i click link

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default problem in opening another page when i click link

    hi all,

    i have one prob i have created 2 file mxxml and xml file


    now i am doing open new page on link button click but url is depend on xml
    file but it will display errr


    ************ mxml file***************************
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
    <mx:Model id="err" source="url.xml"></mx:Model>

    <mx:Link label="ok" click="getUrl(err.root.product.url, '_blank')"></mx:Link>

    </mx:Application>

    ....................................xml file.............

    <?xml version="1.0" encoding="iso-8859-1"?>
    <root>
    <product>
    <url>http://www.yahoo.com</url>

    </product>

    </root>


    but it not open site
    plz give me idea

    thanks in advance

    ckshah Guest

  2. Similar Questions and Discussions

    1. DataGrid OnPageIndexChanged does not fire for first page link click
      When DataGrid with paging enabled shows numeric links for pages, you get OnPageIndexChanged event fired when user clicks on any of the page links -...
    2. Problem opening PDF when using link from HTML page
      I have links to PDF files in my html pages (created using FrontPage). The files open fine when the user has Adobe Reader 6.0 on their machine. The...
    3. getURL problem with Link to HTML page with anchors
      Hi I have this prblem with actionscripting a link to my site. I have flash buttons and i used the getURL action and the buttons are not linking to...
    4. Link click detection?
      How might one detect if someone clicked on a hyperkink at your website, so it can be logged in a database? This would have to be done before the...
    5. Layer problem...How do I center my opening page??
      PLEASE...HELP!!!!! Check my page at http://www.tanzatelier.com/ and see how the "fly over top images" are not centered if the screen resolution is...
  3. #2

    Default Re: problem in opening another page when i click link

    Are you certain that "err.root.product.url" is evaluating to the url string?

    Instead of calling getURL inline, create a click handler function so that you
    can debug easier. Trace or alert the url. Hardcode the url to test the rest
    of the functionality.

    Tracy

    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139