Links in a txt file not showing in dynamic text field

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 4th, 2007, 15:24
New Member
Join Date: Aug 2006
Location: Upminster
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old May 4th, 2007, 15:30
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
  #3 (permalink)  
Old May 4th, 2007, 16:08
New Member
Join Date: Aug 2006
Location: Upminster
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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???
Reply With Quote
  #4 (permalink)  
Old May 4th, 2007, 16:23
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
  #5 (permalink)  
Old May 8th, 2007, 09:44
New Member
Join Date: Aug 2006
Location: Upminster
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Reply With Quote
  #6 (permalink)  
Old May 8th, 2007, 11:43
New Member
Join Date: Aug 2006
Location: Upminster
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #7 (permalink)  
Old May 8th, 2007, 19:43
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
  #8 (permalink)  
Old May 9th, 2007, 07:26
New Member
Join Date: Aug 2006
Location: Upminster
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #9 (permalink)  
Old May 9th, 2007, 15:48
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
Reply

Tags
dynamic text field

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 16:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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