Why would the below eliminate the whitespace around matched keyword text when replacing it with an anchor link? Note, this error only occurs in Chrome, and not firefox.
For complete context, the file is located at: http://seox.org/lbp/lb-core.js
To view the code in action (no errors found yet), the demo page is at http://seox.org/test....
Hi all, i need to generate the same number of text files as the xml files i have. Within the text files, i need the title and maybe some other tags of it. I can generate text files with the elements i wanted but not all xml files can be generated. Only some of them are generated. Something might be wrong with my parser so help out please...
I'm trying to draw mirrored (as in, it looks like you held it up to a mirror) text, and I want to do it the easiest way possible.
It is possible to do a transform on a UILabel? Or do I have to use Quartz and do CGContextShowTextAtPoint() ?
...
i want to replace some selected character from my text-area with some string.
To do this i wrote the following JavaScript code
var old_tag = "[";
var tag= " <xsl:value-of select = ";
var endtag= " />";
var txt='';
if(document.selection)
{
txt = document.selection.createRange().text
document.selection.creat...
Hi all,
In the process of updating my iPad app I've been attempting to draw a page from an existing PDF document into a Core Graphics context then save it as a new PDF, but am having difficulty getting the text to display properly. Images in the newly-created PDF look great, but text rarely appears correctly: more often that not it appe...
Hi,
I am actually developing a view with a text field that I want to be dynamic.
Was dynamic means ?
It means, when you type something in it, there is a suggestion list populating beside the text filed. I have already coded that, and it works fine !
Representation of what I have right now :
[ text field ] [ OK Button ]
[ sugge...
Hello, I'm attempting to do a "find and replace" in a file on a Mac OS X computer. Although it appears to work correctly. It seems that the file is somehow altered. The text editor that I use (Text Wrangler) is unable to even open the file once this is completed.
Here is the code as I have it:
import fileinput
for line in fileinp...
I'm applying a scale transform to a UIView that draws a number. (The number is literally being drawn with drawInRect; no UILabel in sight.) The scale transform makes the view smaller by quite a bit...say, 80% smaller.
The resulting number looks a little "chunky". Is there a way that I can keep my text looking nice and anti-aliased, the ...
I have two text files. I'd like to copy a specific part in the first text file and replace it with a part of the second text file.
This is how I read the files:
List<string> PrevEp = File.ReadAllLines(string.Format(@"{0}naruto{1}.ass", url, PrevEpNum)).ToList();
List<string> Ep = File.ReadAllLines(string.Format(@"{0}naruto{1}.ass", url...
How do I set the color of the text of a label?
myLabel.setText("Text Color: Red");
myLabel.???
Can I have two seperate colors in one label?
For example here:
The "Text Color:" to be black
and the "Red" to be red.
...
I am looking for an existing free component that can support any number of regular expressions that will be highlighted in the text in any colour. The regular expressions should be configurable to work on a line by line basis, or spanning multiple lines. If such a component does not exist, i am considering creating it. In the past whe...
How to set the node text.Here is the code am using
public TreeCreation(final ArrayList houseList){
Apartment= new DefaultMutableTreeNode("Apartment");
for(int i=0;i
by passing the userObject the name of the object is being displayed on the node ,how do i change the code to display h.HouseName when am using userObjects
node.getUserO...
Hello,
I have database as Oracle and development is in asp.net. Data stored is as,
Förderer, Jörg etc.
Everything works fine on my local environment, where i can fetch the records having German characters, and i can display it on users browser.
However, when i deploy the solution on client machine, problem starts. When i fetch data f...
I need to extract the vector space representation of several documents and then to compute the cosine distance among them.
I'd like to use that distance to classify some new documents using a k-Nearest-Neighbor approach.
Do you have some suggestion on the libraries I could use?
So far I saw that both Weka and Apache Lucene should supp...
I have a UIActionSheet which gives the user a few standard choices. The text on the buttons, however, does not cleverly scale down like a text field though when there's too much-- it just truncates with an ellipsis.
I need to say a little more in on of my action sheet buttons than there's room for. I don't see any way of changing the ac...
First of all, this is not homework, so please don't tag it as homewrok
I did not understand this problem. Can anybody explain it to me? It is not the english that I do not understand, but rather the general gist of the problem.
...
I have a text area. I can set the text of it with
$("#mytextarea").text("foo")
I can prepend to the text area like this:
$("#mytextarea").prepend("foo")
But I cannot prepend to the jquery text() object like this:
$("#mytextarea").text().prepend("foo")
The reason I want to do this is so that if my user gets me to prepend this te...
I have created a table with draggable rows. Unfortunately, most of the rows are covered with a large textbox input element. In order to drag the rows, you have to grab the row on the very edge just outside of the textbox. Is there a way to allow the rows to be grabbed through the textboxes without destroying the textbox functionality?...
All windows in Aero have this kind of whiteish background on their text. I'd like to create an equivalent of this effect for a GlassWindow I'm using that has a TextBlock in the label area, but I'm not really a designer so I have no idea how to approach this. How can I reproduce this background effect?
...
Is there an (unobtrusive, to the user) way to get all the text in a page with Javascript? I could get the HTML, parse it, remove all tags, etc, but I'm wondering if there's a way to get the text from the alread rendered page.
To clarify, I don't want to grab text from a selection, I want the entire page.
Thank you!
...