text

How to select text that is not marked up with CSS/jquery?

I want to apply some CSS to text that I can't get marked up in spans. So for example: <li><a href="google.com">This is marked up</a> and this is not </li> I want to select, with either CSS (preferably) or jQuery this bit: and this is not. Maybe there's a method of selecting the entire li then excluding a, that seems like a bypass. Th...

Selecting a radio button when a dropdown value changes

My setup is something like this: radiobutton1 - selection1 radiobutton2 - selection2 textinput1 I want radiobutton1 to be selected whenever selection1 is changed, and I want radiobutton2 to be selected whenever either selection2 or textinput1 is changed. There has to be a simple javascript solution here... I just can't find it. Here...

CSS gradients in IE7 & IE8 is causing text to become aliased

I'm attempting to use a CSS gradient in a div containing some text. With Gecko and Webkit, the text displays fine. In IE7 & IE8 the text appears aliased (jaggy). I came across this blog stating: "we decided to disable ClearType on elements that use any DXTransform". IE Blog: http://blogs.msdn.com/ie/archive/2006/08/31/730887.aspx Th...

Get selected text and its parentNode from an iframe

I've tried many methods to get selected text and its parent from an iframe but it did not work at all. Please advise... Thanks ...

jquery onblur text

Hello <div id="servisesmenu"> <span class="services" title="Сервисы">Сервисы</span> </div> <div id="services_menu" class="hiddenmenu"> <div class="framemenu"> <div class="itemmenu"><a href="/flights_booking/" class="u" title="Покупка авиабилетов онлайн">Покупка авиабилетов онлайн</a></div> <div class="...

Disable copy paste in SWT Text Component

Hi I'm using SWT Text component. Do someone know how can I prevent copy/paste operation for the Text component. Thanks Subha ...

Flex - Issues vertically aligning Datagrid header text

Hi!! I'm having some issues aligning the header text of a datagrid. I'm using an embed font for the header text, and when applying the css, the header text behaves as if I'd set the text vertical align to top. I'm trying to vertically center the text, but haven't found a way to make it work. An image to give you a better idea: Any ti...

flex textarea text attribute but still renders as html

actually i got to the cause of the issue. if you feed the textarea text attribute with an tag that has a valid src url, then for some reason flex will try to render everything as html. Eg, try this: <mx:TextArea id="textArea" width="100%" height="90%" text="<img src='http://url-to-a-valid-img"/&gt; and instead of it rendering it a...

How do I render text with pixel heights rather than points in pyglet?

Pyglet only seems to use points. Is there a way to convert easily? Surely there must be a simple way because it's something obviously important, to be able to use pixels for text height. class Font(): def __init__(self,font,size): self.size = size self.font = font def return_surface(self,label): surface =...

PHP GD Text Transparency..

Hello, I can't slove this. I'm trying to make a text transparency but doesn't work.. Here how it looks: qshort.com/userbar/gd.php Here how if possible to show with transparency: qshort.com/userbar/transparent.png Is that possible? Here my PHP Code: <?php header('Content-type: image/png'); $im = imagecreatefrompng("signature.png"...

How can I find images to represent user text?

On our web site, users enter free form text like "Ribeye steak at Safeway for $8.99. Great deal in Palo Alto." Does anyone know of APIs that can take free form text and return an image that best represents the text? Right now, we're feeding the whole text to Google Image Search, but sometimes the extraneous words (e.g., at, for, $8.99...

What is the best way to wrap label text with jquery?

I need to set a maximum widht to a label tag and avoid the text overflow with jquery. Is there an elegant way to do it? ...

Printing the exact content of a text file in Java

I want to print the content of a simple text file in Java exactly the way the text appears in the text file. The print out has the same content as the text file but the format is not the same. Tabs and line breaks are ignored in the print out. Any help will be very much appreciated. ...

Measuring text width with font as org.faceless.pdf.PDFFont instance

Hi! I have text with font in org.faceless.pdf.PDFFont. How can I get width of it in px? Thanks. ...

Adobe Flex:change the text in <mx:text> with a click effect

I am new to flex, how do you change the text inside of a text control when a user has clicked a button. I could not find a way to do this. I used an event handler to input a .xml to a string and then to the text control. This doesn't seem to work. Any suggestions? ...

What language should I use to write a text parser and display the results in a user friendly manner?

My company's proprietary software generates a log file that is much easier to use if it is parsed. The log parser we all use was written by another employee as a side project, and it has horrible performance. These log files can grow to 10s of megabytes very quickly, and the parser we currently use has issues if a log file is bigger th...

How to use C# to parse a glossary into database?

This should be a simple one, but I'm a beginner with C#. Given a glossary list in the following format: aptitude ability, skill, gift, talent aqueous watery arguably maybe, perhaps, possibly, could be How can I parse this, and insert into a database table in the format: TABLE: Term_Glossary ==================================...

How to delete text string using JQuery?

Hi Guys, I have the following code: $('.breadcrumb:contains(",")').hide(); It does as expected and hides the entire breadcrumb, but how would I go about just remove the comma? ========== EDIT: <div class="breadcrumb"> <a href="#">Link 1</a>, <a href="#">Link 2</a> </div> ========== Thanks for any help ...

Replace a whole line in a txt file

I'am new to Python 3 and could really use a little help. I have a txt file containing: InstallPrompt= DisplayLicense= FinishMessage= TargetName=D:\somewhere FriendlyName=something I have a python script that in the end, should change just two lines to: TargetName=D:\new FriendlyName=Big Could anyone help me, please? I have tri...

divide and search for specific words

i have a text i want to divide it into equal 4 part and search for specific words that repeat in those part and display them any ideas am working with c# vs 2008 and .txt files ...