This content has been marked as final. Show 8 replies
please show the content of your page1.txt
here is the content in page1.txt (contains basic HTML):
page1=Mangroves are salt tolerant trees that grow along tropical and subtropical shores and estuaries. These forests provide shelter for many plants and animals, as well as act as a buffer between land and sea, (see Map) [Pop up 1]<br><br>Many commercially valuable fish and shellfish are dependant on mangrove forests for part of their life cycle (see diagram) [Pop up 2]).  In addition, these forests are nesting and migratory sites for hundreds of bird species, as well as home to a wide variety of reptile, amphibian, and mammal species. For example, the Sunderban mangrove forest of India and Bangladesh - the largest on Earth - are home to Bengal tigers, spotted deer, saltwater crocodiles, fishing cats, and various dolphin species. <br><br>Mangroves also help filter sediments and pollution from land before they reach the sea, and thus protect other marine life such as coral reefs. Mangroves also prevent coastal erosion, and act as barriers against storms, helping to minimize damage to property and life. <br><br>Mangrove ecosystems have traditionally been sustainably managed by local populations for the production of food, medicines, tannins, fuel wood, and construction materials, For millions of indigenous coastal residents, mangrove forests offer dependable, basic livelihoods and sustain their traditional cultures <br><br><br> © 02 Dec 2004 World Wildlife Fund (WWF) - the environmental conservation organization. Some rights reserved.<a href=' http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870&uLangID=1' target='_blank'><u> http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870&uLangID=1</u></a><br ><br>[2 Mangrove Action Project, a project of Earth Island Institute.<br><br><a href=' http://www.earthisland.org/map/mngec.htm' target='_blank'><u> http://www.earthisland.org/map/mngec.htm</u></a><br><br>[3 Smithsonian Environment Research Center: The Mangrove Bio-complexity Project <a href=' http://www.serc.si.edu/labs/animal_plant_interaction/biocomplexity.jsp' target='_blank'><u> http://www.serc.si.edu/labs/animal_plant_interaction/biocomplexity.jsp</u></a><a href=' http://www.serc.si.edu/labs/animal_plant_interaction/Trail/VirtualTour.html' target='_blank'><u> http://www.serc.si.edu/labs/animal_plant_interaction/Trail/VirtualTour.html</u></a>
the script is working at my side.
please make sure your page1.txt is locate at the correct folder,
the path should be content/text/1/page1.txt referring to your script.
yes, the file is in the right place. I tested that the file is uploading by the trace(), which presents the conent of the file in the comments window.
I'm curious what program do you use to create the .txt file?
you can use any text editor
1) make sure your text "page1=Mangroves are..." start from 1st line of your txt file
2) make sure you save your txt file using UTF-8 encoding since you have special character © in text
yes, I actually got it working. took some messing around with passing a variable thru several embeded MCs (a bit hard to describe here).
yet, then I had a problem where I was passing HTML that contained some amperstands ("&") in the URLS , and this really messes things up (since the "&" marks the separation between variables in the loadVars method.
such as: <a href=' http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870&uLangID=1' target='_blank'><u> http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870&uLangID=1</u></a>
so I ended up reverting to placing the text conent within variables directly within the FLA (which is acceptable in this case).
I still wonder how one might get around that "&" issue with loadVars ...
replace amperstands ("&") with %26, e.g.
<a href=' http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870%26uLangID=1' target='_blank'><u> http://www.panda.org/news_facts/newsroom/news/index.cfm?uNewsID=16870%26uLangID=1</u></a>