This is a discussion on "Links in a txt file not showing in dynamic text field" within the Flash & Multimedia Forum section. This forum, and the thread "Links in a txt file not showing in dynamic text field are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Links in a txt file not showing in dynamic text field
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Links in a txt file not showing in dynamic text field
Hi
can anyone help with this. I have a dynamic text field rendered as html text. I have a txt. file called "end_use.txt" that loads into the dynamic text field with the following inside of it: myText=<a href="http://www.mkdenial.com/login.cfm">Denied Parties Screening Tool (MK Data Denial List)</a> <a href="http://www.bbc.co.uk/">BBC</a> <a href="http://ldn0a007.eua.mitsui.com/intranet/browse.php?sess=0&parent=129&expand=1&order=name&c urview=0&sortname=ASC">TEST</a> The problem is the third link [that is an internal link to a page on our intranet site on our server ldn0a007] doesn't appear in the dynamic text field. I'm wondering if it has something to do with the fact it isn't a www link and has a ref to a php file on our sever. Here is the actionscript I have in the fla: loadText=new loadVars(); loadText=load("end_use.txt"); loadText.onLoad=function(){ text.htmlText=this.myText } ; This loads the txt file into the dynamic text field and displays the www links OK, but as I say not the third link [that's Internal] The questions is, can I make internal links without www in them appear in a dynamic text field from a txt file and be linkable? |
|
|
|
|||
|
Re: Links in a txt file not showing in dynamic text field
I don't see why not. It is essentially calling the a link, it shouldn't matter what the link is. Although, this is not something I am totally familiar with.
I'll do some research, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Hi Scott,
thanks for the quick reply. In fact I shortened the link just to point to our server: "http://ldn0a007.eua.mitsui.com" it worked, so no probs with internal links. However as soon as I entered the rest of the link with the php ref in it it breaks. Mustt be a conflict with flash looking at the link as html, but the php ref in there is causing it to bust, maybe??? |
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Edit: Nevermind, just re-read you statement and it goes to a page.
Good morning, So are they clicking on this link to download a file? just curious, still looking into it. Cheers, Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Yeah, most of the links point to word and excel files that sit in various dept folders on the 'backend file repository of our intranet site.
|
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Hi Scott,
think I know what is causing it but cannot resolve it. It appears the '&'s in the link are stopping the text directly after it from rendering. As when I remove the '&'s in the link the text appears. Then I thought all I have to do is embed the '&' and the link will appear. But no. Embedding the '&' or indeed all glyphs doesn't work Do you know how to successfully embed the '&' s? |
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Sorry Darren, I haven't had much experience doing this. I'll keep looking when I have time but maybe one of the other admins might have an idea.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Hi Scott,
got it bud, It appears the apersand '&'s in Flash are a special symbol 'reserved' I replaced them with the uni-code for & which is %26. It now works a treat. So people, if you are loading a txt file into a dynamic text box rendered as html and the links in the txt file have &'s in them and they are not showing in the dynamic text box, replace the &'s with %26. Also the + and other signs are special symbols. So just look for their relevant unicode number and insert that instead! Vola! |
|
|||
|
Re: Links in a txt file not showing in dynamic text field
Nice! Glad you got it working, and thanks for sharing with all of us!
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Tags |
| dynamic text field |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| dynamic text field inside movieclip | shan | Flash & Multimedia Forum | 0 | May 1st, 2008 13:47 |
| making text field text disapear | Phixon | JavaScript Forum | 4 | Feb 2nd, 2008 07:49 |
| Links not showing in browser | MonaE | Web Page Design | 31 | Dec 10th, 2006 07:57 |
| validate text field to db field | jtesolin | Classic ASP | 1 | Jul 18th, 2006 17:48 |
| file field in ASP page | lameneural | Classic ASP | 18 | Dec 8th, 2005 11:46 |