Hi All,
I want to display a background text in the textbox.
ex: The Title textbox in the stackoverflow Ask question page.
Needs: If i enter some text inside the textbox it should disappear.
Geetha.
The ChoiceField creates a select html element and the options show the choice_label which is the _unicode_ of each model object.
How can I change the text of the choice_label without modifying _unicode_ ?
I have a Product model and I want to show in the options text the product name + price + link to edit.
I've searched in fields.py and widgets.py but couldn't find what needed to be changed.
Thanks
Is it possible to disallow free text entry in the JQuery UI autocomplete widget?
eg I only want the user to be allowed to select from the list of items that are presented in the autocomplete list, and dont want them to be able to write some random text.
I didn't see anything in the demos/docs describing how to do this.
http://jqueryui.com/demos/autocomplete/
I'm using autocomplete like this
$('#selector').autocomplete({
source: url,
minlength: 2,
select: function (event, ui) {
// etc
}
I'm making a "sort elements" web game using jQuery, HTML & CSS. While everything works fine in FF, IE8, Opera, Chrome, I'm having problem with IE7 wrapping words inside block elements.
Here's how it looks in IE7 (wrong):
Link (cannot post images as a new user)
In IE8 the box with wrapped text would just expand to fit it whole in one line without any overflows. Sorry, can't give another link as a new user
Don't mind the element order as it's random. Elements are dynamically generated by jQuery.
HTML code:
<div class="ui-sortable" id="area">
<span class="object">: </span>
<span class="object">1998- </span>
<span class="object">ISSN 1392-4087</span>
<span class="object">, </span>
<span class="object">. </span>
<span class="object">nepriklausomas savaitraštis buhalteriams, finansininkams, auditoriams</span>
<span class="object">. </span>
<span class="object">. </span>
<span class="object">. </span>
<span class="object">Vilnius</span>
<span class="object">1998- </span>
<span class="object"><em>Apskaitos, audito ir mokesciu aktualijos</em></span>
</div>
CSS code (irrelevant info like fonts & colors removed):
#area {
min-height: 160px;
width: 760px;
}
.object {
display: block;
float: left;
text-align: center;
width: auto;
}
Any comments on why does IE7 does that? How do I make these spans expand to fit the whole text in one line in IE7 and not wrap the text or make overflows?
I have coded a PHP script that takes $text and $font and creates an image, it even caches the image.
Is it possible to create a vertical gradient on the text using GD in PHP, I am trying to create the effect below!
Many thanks,
I am using a piece of code someone pasted for C# which uses urlmon.dll. It reads in <= 256bytes and returns the mime based on the data.
Problem is it cant distinguishes a css file from a text/plain. I can goto /style.css but when including it in my html the CSS does not show up. I am using urlmon + context.Response.TransmitFile to send it.
Hey,
I have an input text :
<input name="Email" type="text" id="Email" value="[email protected]" />
I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear.
Hi all,
If we want to remove the entry widget contents we can use delete
with entry object.
Example
$ent->delete(0,'end');
But I want to remove the Text widget contents.Can any one tell me what is the function for removing the text widget contents?
I have a grouped UITableView with a few sections. The text in some of the cells can get quite long, I was wondering how I could make the text word-wrap?
I have text objects on a Crystal Report in Visual Studio with an initial capital. When I print the report, the text is all lower case.
And the reason is?
Hi all
I have a textbox in aspx page in which the user enters text. Now when user clicks on a button called "Sin" the textbox should show "Sin[]" and the cursor has to be placed in between brackets.Like as follows "Sin[<cursor here]" Now when the user clicks on some other button say "Cos" the textbox text should show "Sin[Cos[]]" and the cursor has be placed between the brackets of Cos as follows: "Sin[Cos[<cursor here]]".
How is this handled. Any simple code please..
Thanks in advance
I have one expander and which contain text box, text is validating through IDataErrorInfo, it is working fine when i enter wrong information, it popup with red rectangle.
but issue arises when i tried to collase the expander, and red rectangle is still there. it stayed on Expander
so please provide soem good solution....
I will be taking an independent study class on SQL server management. I will have to configure SQL Server 2008 on a Windows Server 2008 system. I was wondering if anyone could suggest decent text for configuration/administration of SQL Server 2008. The Murach text doesn't look like it will take me far.
Hi I have created a text field in java and i am able to get the data from text field and store in a .txt file. But My problem is that let the my data in textfield is in bold and italic format and the font colour is red. Now I want to store the data exactly in the same format in .txt file. I donot know how to write code for that.
Anyone please help me to solve this type of problem
Thanks
Sunil Kumar Sahoo
Hi all, I'm trying to make it so when I tab to some text fields on in my JFrame the data in the text field will be highlighted. I thought I had done this in the properties before but I am not seeing the option now. Does anyone know how to do this?
I have this code:
tableList = [[NSMutableArray alloc] initWithObjects:@"First View",@"Second View",nil];
I have synthesized it and set the property, the problem is when I add this line under the configure the cell comment to set the text of each row, the app opens in the simulator but instantly closes:
// Configure the cell.
cell.textLabel.text = [tableList objectAtIndex:indexPath.row];
return cell;
Any ideas on what is causing this ?
I have a field as follows in MySQL:
Type: Text
Length: 0
Decimals: 0
And when I try to insert data around the size of 4 pages of MS Word, Coldfusion errors with: Data Too Long from the DB.
I thought TEXT data type was able to expand and handle this size of data? What am I missing and what can I do?
How i can Export a report in SSRS 2008 / 2005 in text file.
with proper allignment
if it is possible by adding some code in Reporting
then pls provide me that code . .
its very urgent . .
In my models I often use text fields that are intended to contain large pieces of textile-formatted input. I'd like to automatically obfuscate any email addresses that are entered into these text fields, so that when they're printed in a template they're not visible to spiders.
Is there a smart way to do this?
Is it possible to load new lines from a text file to variables in bash?
Text file looks like?
EXAMPLEfoo
EXAMPLEbar
EXAMPLE1
EXAMPLE2
EXAMPLE3
EXAMPLE4
Variables become
$1 = EXAMPLEfoo
$2 = EXAMPLEbar
ans so on?
Looking at the document, the goal is to select
the second cell from the second row, in the first table.
I've created the following expression:
//row/td[2]/text()[td[@class="identifier"]/span[text()="identifier"]]
but it does not return any rows. Unfortunately I do not see what's wrong.
To me, it looks alright. The expression should:
select the text
in the second cell
in any row
where
the text of a span equals to "identifier"
and the span is located in cell with a "identifier" class
I'd appreciate it if you could point out what I'm doing wrong.
Sample XML document:
<?xml version="1.0"?>
<html>
<table class="first">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td class="identifier">
<span>identifier</span>
</td>
<td>
foo
<span>ignore</span>
bar
</td>
</tr>
<tr>
<td>row 3, cell 1</td>
<td>row 3, cell 2</td>
</tr>
</table>
<table class="second">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td class="identifier">
<span>not an identifier</span>
</td>
<td>
not a target
</td>
</tr>
<tr>
<td>row 3, cell 1</td>
<td>row 3, cell 2</td>
</tr>
</table>
</html>
Is it possible to shrink the spacing between a cell header and cell text? Looking at the example below I'd like the header to be closer to the top of the cell that contains the other text.
Sorry, I don't have high enough reputation to embed images.
http://www.freeimagehosting.net/uploads/6afdd58c2f.jpg
I've got this plain HTML:
"Many things are in my room: a bed, a desk, and a computer."
And these phrases:
"things are"
"are in my room"
"room: a bed"
In JQuery, is there some way to loop through the phrase list, and highlight the phrases as they appear in the text, and have the overlap delineated by color, or border, etc?
I know there are simple highlighters but that won't do the trick. Maybe something with overlaying opacities? Thanks!
I have a C++ Windows program. I have a text file that has some data. Currently, the text file is a separate file, and it is loaded at runtime and parsed. How is it possible to embed this into the binary as a resource?