Fontface changes when changing html of text

I have a textfield nested in a symbol and am using an Adobe web font (droid-sans). When I change the text inside the textbox with something like the following:
sym.getSymbol("captionButton").$("textBox").html("Hide Captions");
the fontFace APPEARS to go to some other sans font and seems bold from that point forward. Do I need to reset all the css properties of the fontface every time I change html text in a textbox. And if so, could someone tell me the correct sytax, given the action above?
Thanks.

You mean I have to break it again ;-) OK, I'll try to find a previous version. OK, I commented out the css setting on init and the css settings when the caption button is clicked.
whoops. looks like a bad upload. I'll try again in a few minutes.
OK, uploaded. Sorry I had to include some assets just so it would load but it's all in a zip file. Ironically, downloading it to test it, it doesn't change to bold but it does seem to change fontfamily so the concept is the same.
https://www.dropbox.com/s/wzr5s3nb12uccu4/sample.zip

Similar Messages

  • Changing HTML to text file using java

    Hi,
    I am doing a project in which i have to read news articles from websites. I have tried XML but for that i need to know which tag has the article in it. Since i have to read from various websites so each site used different tags for different informations.
    Is there anyway that i can change an HTML file into a text file using java. Maybe some command that removes all the HTML tags and gives just the information. Is there anything else that anyone would like to recommend?
    Thanx
    yafis

    Maybe something like this:
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetHTMLText
         public static void main(String[] args)
              throws Exception
              EditorKit kit = new HTMLEditorKit();
              Document doc = kit.createDefaultDocument();
              // The Document class does not yet handle charset's properly.
              doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
              // Create a reader on the HTML content.
              Reader rd = getReader(args[0]);
              // Parse the HTML.
              kit.read(rd, doc, 0);
              //  The HTML text is now stored in the document
              System.out.println( doc.getText(0, doc.getLength()) );
         // Returns a reader on the HTML data. If 'uri' begins
         // with "http:", it's treated as a URL; otherwise,
         // it's assumed to be a local filename.
         static Reader getReader(String uri)
              throws IOException
              // Retrieve from Internet.
              if (uri.startsWith("http:"))
                   URLConnection conn = new URL(uri).openConnection();
                   return new InputStreamReader(conn.getInputStream());
              // Retrieve from file.
              else
                   return new FileReader(uri);
    }

  • E-mail changes to unreadable text when moved to another mailbox folder

    Hi,
    when moving a correct received e-mail to another mailbox folder, the mail and the attachment will change to unreadable text and it looks like the column below.
    On my iPad and iPhone the mail and the attachment is shown correct. If I forward it to my own account again, the mail is also correct shown an my imac27, as long as it resides in the in-box.
    On the other hand, there are lots of mails+attachments with "normal" behavier when moved.
    Any idea about that?
    mackliko
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: multipart/alternative;
              boundary="----=_NextPart_001_0002_01CCF256.3C7DD310"
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/plain;
              charset="us-ascii"
    Content-Transfer-Encoding: 7bit
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/html;
              charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
    xmlns=3D"http://www.w3.org/TR/REC-html40">
    <head>
    <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Dus-ascii">
    <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
    <style>
    <!--
    /* Font Definitions */
    @font-face
              {font-family:"Cambria Math";
              panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
              {font-family:Calibri;
              panose-1:2 15 5 2 2 2 4 3 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
              {margin:0cm;
              margin-bottom:.0001pt;
              font-size:11.0pt;
              font-family:"Calibri","sans-serif";}
    a:link, span.MsoHyperlink
              {mso-style-priority:99;
              color:blue;
              text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
              {mso-style-priority:99;
              color:purple;
              text-decoration:underline;}
    span.E-MailFormatvorlage17
              {mso-style-type:personal-compose;
              font-family:"Calibri","sans-serif";
              color:windowtext;}
    .MsoChpDefault
              {mso-style-type:export-only;}
    @page Section1
              {size:612.0pt 792.0pt;
              margin:70.85pt 70.85pt 2.0cm 70.85pt;}
    div.Section1
              {page:Section1;}
    -->
    </style>
    <!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext=3D"edit">
    <o:idmap v:ext=3D"edit" data=3D"1" />
    </o:shapelayout></xml><![endif]-->
    </head>
    <body lang=3DDE-AT link=3Dblue vlink=3Dpurple>
    <div class="3DSection1">
    <p class="3DMsoNormal">Mfg<o:p></o:p></p>
    <p class="3DMsoNormal">Martin lanzinger<o:p></o:p></p>
    <p class="3DMsoNormal"><o:p> </o:p></p>
    </div>
    </body>
    </html>
    ------=_NextPart_001_0002_01CCF256.3C7DD310--
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: application/pdf;
              name="Test.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
              filename="Test.pdf"

    Please run /cleanviews switch to check the result.
    (Type "Outlook.exe /cleanviews in Windows search bar and press ENTER.)
    Please also create a new Outlook profile to check if the issue still persists. Thanks.
    Tony Chen
    TechNet Community Support

  • How do i change my message settings so that when i get a text message only the phone number shows up - not the message?

    how do i change my message settings so that when i get a text message only the phone number shows up - not the message?

    settings - notification- message - show preview - OFF
    you can also select the alert type your want -banners or alerts

  • When I send a text message it shows up as coming from my email address not my phone, can i change this

    when I send a text message it shows up as coming from my email address not my phone, can i change this

    another way to change it is :
    go to settings -> phone -> my number (iput your phone number)
    and then do what razmee209 said,
    after you change it, your phone number will authenticate with the operator that you use,
    I hope this could help you,

  • When I send a text message through my work email, keep in mind I do not get my work email on my phone, the response comes back to my phone instead of my work email. Where do I need to go to change this to keep it from happening?

    I do not have my iphone synced with my work email but when I send a text message via my work email any response I get comes to my phone. Why? How do I change that because I do not want my phone connected with my work email?
    Thank you

    I am not sure what you mean.
    Do you mean the From field?
    You can change it by tapping it, it will give you options based on the other email accounts set up.
    You can set a default account here:
    Sttings > Mail, Contacts, Calendars > scroll down to the Mail section & you will see Default Account. You can change that to your gmail account.

  • TS3274 When I send a text it shows up as my email address and not my name how do I change it

    When I first set up my iPad 2 I could send text from the iPad and my name would show up when I sent a text, after I changed my iPhone to a new one, now when i send a text only my email address comes up not my name can anybody help me?

    When you go to Settings>Messages>Send and Recieve At what is listed for send?
    Also, see the previous discussions listed on the right side of this page under the heading "More Like This"?

  • I have just upgraded to the iphone 5 and now when I send a text message it says its from astrogirl36@*** instead of my name, that is my name for icloud how do I change this

    I have just upgraded to the iphone 5 and now when I send a text message it says its from astrogirl36@*** instead of my name, that is my name for icloud how do I change this
    <Email Edited By Host>

    You are only as young as you feel......
    This is an example of how you can select the exact content that you want to sync to your device. You do not have to sync the entire iTunes library. You can pick and choose the music, apps, books and so on that you want to sync. This is using music as an example.
    Connect the iPad to the PC and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Music Tab on the right.
    Click on only the albums or playlists that you want to sync.
    Click on the Sync Music Heading.
    Click on Apply in the lower right corner of iTunes
    You can do this with apps, books, movies .... Whatever .... You have the freedom to sync whatever you want.

  • When i send a text from my iphone 5S its going from my icloud email not my phone number , how can i change this?

    When i send a text message from my iphone 5s, it is sending it from my icloud email rather than my phone number , how can i change this ?
    Thanx

    Settings>Messages>Send/Receive>Start New Conversations From....put a check next to your phone number.

  • When i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it

    when i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it help

    Hello Todd:
    I had this very same problem when trying to activate iMessage and Facetime on my iPad. When I signed into my account, I actually wasn't even presented with the option of a phone number - notwithstanding the fact that I was contacting others (and being reached by others) by my phone number on my iPhone. Having both the iPad and the iPhone on, I kept trying to turn off and on both iMessage and Facebook in Settings on both my iPad and iPhone, hoping that that they would eventually sync. But this proposed solution by others was unsuccessful for me.
    Then, I found out what the problem was: When my iPhone was activated, it automatically registered my phone number for contact purposes. I was using iMessage on my iPhone for quite some time without actually being signed into my Apple ID account. When another device - such as an iPad or iPod - is being used for iMessage or Facebook, you are prompted to sign into your Apple account, using your username and password. These two devices will not register your phone number as an option for contact unless your iPhone is signed into your Apple account as well. In other words: your phone number will not be synced.
    Go into your "Settings" on your iPhone and click on "Messages". Scroll down and click on "Send & Receive" (which should be followed by your phone number). On the next page, you will be able to determine whether or not your iPhone is using the Apple ID for messaging purposes. (Note: This information applies for Facetime as well.) If it is using your Apple ID for messaging, than at the top, you will see "Apple ID: <your particular e-mail account>" in Blue text. However, if you are not using your Apple ID for messaging, than you will see the words: "Use your Apple ID for message". Even though below this you will see your phone number checked as the contact source, you will want to click the tab that says, "Use your Apple ID for message". Sign into your account (just as you must sign in for iMessage on your other devices), and just choose your phone number as the "Send & Receive" contact. (The option of the e-mail will be there too, but you don't have to check it. And later on, you can delete it as an option.)
    Now that all of your devices are signed in using your Apple ID, the other devices should register your phone number as a choice. It may take a little while, however. What I did was sign out of iMessage on my iPad, and then sign in again. If the option didn't appear, I just went back and signed in again, and kept doing this until the option for the phone number appeared.
    Again, this will work for Facetime as well. The solution is to sync your iPhone account with the other devices by using your Apple ID for messaging (and Facetime) purposes.
    I hope that this works for you, Todd!   ~ Brian

  • My Friend has a iphone and when i change the setting text messege into imessege it keeps saying text message, even though i changed it

    My Friend has a iphone and when i change the setting text messege into imessege it keeps saying text message, even though i changed it.

    iMessage must be enabled on the sender and receivers iDevice.

  • Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    Hi all when I send a text to a contact (iphone4s) the contacts name changes to a phone number and the name is lost. I then have to resave it again, googled it but can't see anyone with the same issue, any ideas ?

    There is another setting for "Start Conversation from", that needs to be set to phone number.

  • Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    Does anyone know if I can change the font on Word to 13? When I highlight the text and type in 13 it automaticall reverts back to 12. I have a MacBook Air.

    hit command + A to highight all text, type in 13 in the font size box.

  • How do I change the default text for when I open up pages?

    How do I change the default text for when I open up pages?

    Colin,
    You may substitute any text you like for the "Placeholder Text", as it is called, in Pages. Click on the existing placeholder text and type something more to your liking. Do this in as many places as your particular template of interest demands. Then, Format > Advanced > Define as Placeholder Text. Lastly, File > Save as Template.
    Now that you have defined a Custom Template to your liking, you can go to Pages Preferences and under the General tab's first section, define the new custom template as your default for each new document.
    Regards,
    Jerry

  • When i try to add a text. Their is no box in the text tab that allows me to change what the text says.

    Hi everyone,
    I recently got fcpx and i am having lots of trouble trying to put in a text. When i choose a text to put on top of a clip, i am not able to change what the text says.  I am not even able to highlight the text on the screen.  There is not text box on the text tab where i am also able to change the text.

    To make what Tom said, a little clearer, press 'A' then double click the text box in the Viewer window, and type into there.
    Andy

Maybe you are looking for