473,321 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Dynamic Text problem

Hi,
I am having trouble loading dynamic text with html content specifically
<br>. If i have the rendered as html option checked the bold property of the font i initially set goes away and instead of making new line the <br> is replaced with br (no brackets). am i doing something wrong?

heres the code:
Expand|Select|Wrap|Line Numbers
  1. popinfo = _root.txt_tour.show_mc.show_txt;
  2.  
  3. showPop1_btn.onRollOver= function(){
  4.     popinfo.text = "Featuring Sarah Bettens, Christine Baze and Jesse Ciarmataro. <br> 630 N. High Street - 10pm - $12-$15<br> call: 614.930.2260 for tickets";    
  5.     showinfo();
  6. };
  7. showPop1_btn.onRollOut = function(){
  8.     show_mc._visible = false;
  9. };
  10.  
also the text has multiline option selected.
Aug 24 '07 #1
1 2544
xNephilimx
213 Expert 100+
To properly pass html text to the textbox (having it marked to render as HTML), don't use the popinfo.text, that only passes normal text. You must use popinfo.htmlText, like this:

Expand|Select|Wrap|Line Numbers
  1. popinfo.htmlText = "Featuring Sarah Bettens, Christine Baze and Jesse Ciarmataro. <br> 630 N. High Street - 10pm - $12-$15<br> call: 614.930.2260 for tickets";
  2.  
Anyway, I'm not sure how flash will handle the br tag, the Flash's html render capability is awfully limited and buggy. If it doesn't work well, try using \n instead of the br, just in case.

Kind regards,
The_Nephilim

Hi,
I am having trouble loading dynamic text with html content specifically
<br>. If i have the rendered as html option checked the bold property of the font i initially set goes away and instead of making new line the <br> is replaced with br (no brackets). am i doing something wrong?

heres the code:
Expand|Select|Wrap|Line Numbers
  1. popinfo = _root.txt_tour.show_mc.show_txt;
  2.  
  3. showPop1_btn.onRollOver= function(){
  4.     popinfo.text = "Featuring Sarah Bettens, Christine Baze and Jesse Ciarmataro. <br> 630 N. High Street - 10pm - $12-$15<br> call: 614.930.2260 for tickets";    
  5.     showinfo();
  6. };
  7. showPop1_btn.onRollOut = function(){
  8.     show_mc._visible = false;
  9. };
  10.  
also the text has multiline option selected.
Aug 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: K | last post by:
I have found a script online that I want to use (I am new to PHP). It creates dynamic images based on the text that you pass it. However, no matter how I try, I can't get anything other than a...
4
by: Stromboli | last post by:
hi people, My problem is that I need to build a dynamic menu (preferably that works in all the browsers) that appears when I mouseover a certain link. The problem is that I have to declare...
3
by: Tyler Carver | last post by:
I am trying to use some dynamic controls that are built and then added to tables. The problem that I am having is the timing of when I can populate the controls and have the state remain after a...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
1
by: Satish.Talyan | last post by:
hi, i want to create a dynamic tree hierarchy in javascript.there are two parts in tree, group & user.when we click on group then users come under that's tree category will be opened.problem is...
7
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
9
by: Tarscher | last post by:
hi all, I have this seemingly simple problem. I have lost a lot of time on it though. When a user selects a value from a dropdownlist (static control) a dynamic control is generated. I have...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: Scott Roberts | last post by:
I always thought that the viewstate "keys" included the control ID. As long as the control IDs were unique, there shouldn't be any conflicts. Well, it appears that that may not be the case with...
2
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.