Hi,
After highlighting text, I would like to obtain the paragraph in which the selected text resides.
var select = window._content.document.getSelection();
Any pointers please?
I have a partial view that I use for editing and creating my models. When a user is editing the model, I would like a particular drop-down to be rendered as text as I don't want them to change it. A read-only drop-down would suffice, but I'd prefer text.
I'm thinking I can accomplish this via an extension method, but I'm not quite sure how to get started. Any help would be appreciated!
When I set up a custom button in Interface Builder it hides the Title text.
Do you have to create the text for the button too or is it possible to change the Z order so that the Title appears on top?
Hi all,
I'm trying to access the text of a QLabel using Qt script. Here is what I have:
var mystring;
var mylabel = objectFromPath("...someWindow::Label");
mystring = mylabel.text;
// then do something with mystring
This doesn't work and I don't know what I'm doing wrong.
Any help would be appreciated.
thanks
I have an error message like this:
<span class="errorMessage">Your input sucks!</span>
and I need to determine when it changes. the validation framework I'm using sets the text when there's an error and removes it when it's complete. I'm hoping to tap into that by watching for changes to the text property of the element using jquery. Any idea of how to go about doing this?
Thanks!
i am passing values from a textbox into a sql statement in ACCESS
i do not understand the difference in the usage of these two properties
when i set the the .text property to something, how does the .value property get affected?
when i do want something to be displayed in the textbox should i be using the value or text property?
Is it possible to find and replace in selected text in Snow Leopard Xcode 3.2? There always use to be an option for selected text. Really frustrating. Thanks.
I have a contact form that can be hidden using .slideToggle() but I want the tab used to Toggle the form to change text based on wether the form is in view or hidden.
Here is the jQuery:
$("#slider").click(function() {
$("#form_wrap").animate({ opacity: 1.0 },200).slideToggle();
});
I want the text of #form_wrap to read 'Hide' then 'Show'.
Any help appreciated!
Hi,
Is it possible to hilight part of a text and copy in Android?
It's kinda like how in iPhone, when you hold a text for sometime, the box will show up and you can copy then paste that somewhere?
Thanks,
Tee
hi,
i have displayed one text in UIview with UIScrollview.but when i zoom , the text goes ouside of the frame , i want to wrap automatically , any help please?
I have 2 text boxes one for email and one for Name. If text is entered in email I want to make Name required field. How can I do this using .net validation controls?
Thanks
in the design view of a report i have an image. i am putting text over the image at specific places. design view is showing one thing but when i open the report everything is misaligned. how do i align the text with the image and have the report reflect the changes accurately?
How to do processing on hindi text using c++ in linux any suggestions.
I want to read a hindi text from file encoded in UTF-8 and process it that is to find a
specific word from that . How can we do it??
i am passing the textbox1.text values into a query and sometimes into a string
sometimes i say this:
dim combor1 as string
combor1 = comboReason1.Text
how do i know when i should put combor1=comboreason1.value ??
also why do i need to set focus for a control to reference its property? that doesn't make sense to me
also when i set combor4 = comboReason4.Value and the .value is null, then i get an error about invalid use of null
please help!
I have a html textbox on which I've bound a function via jQuery to the paste event to prevent users pasting a value into the textbox. This functionality works well.
However it is possible to select some text from another textbox on the page and drag it into the textbox in which pastes are prevented. Is there a jQuery event that I can bind to that will prevent users dragging text into the texbox?
I have a large auditing stored procedure that prints values and runs some SELECT statements. When running within SQL Management Studio we have the use select to display "Results to Text" so all of the SQL results and print statement display in one place.
Now I need to have some C# code also call this auditing procedure at the end of the process and basically store all data that would be in the "Results to Text" window into a .txt file.
How can this be done?
I want to create an array of all the html elements within a div that contain text strings, such as
<p>some string</p>.
I don't want to get hold of the strings, I want the array items to be the elements (in the example, would be the p node). I do not know before hand what the strings will be, so I can't look for string values to match. I also don't want empty text nodes to end up in the array.
Thanks!
I have the text like "It's the 145 of 13221 items". I need to fetch all the number of text on one time. I want to use regex to do this. What is the regex like? "\d+" is not work fine.
<td valign="center" colspan="2">
<a href="" class="table_desc" >
<span class="desc_info_butt"></span>
</a>
text here
</td>
.desc_info_butt{
background:url(Description_Button.png) top left no-repeat;
height:16px;
width:16px;
display:block;
}
For some reason, the image and text appear on two different lines!~
i need to design a report that will print text on specified x,y coordinates
for example, i will input (50,50), (60,60), (70,70) and i will have my program print text at those specific coordinates on the report. in total there will be about 50 different coordinates.
how do i achieve this? should i be using a label control or a textbox? should i be creating the controls dynamically or should i already have controls set at the specified regions?
Is their any cases in C++ Like these
case WM_COMMAND:
switch(LOWORD(wParam))
That happen when you change the text of a edit Box, I need to call a function when i change in edit box and store the value of the edit box into a Integer.
case EditCD: //ID of your edit
{
if (HIWORD(wParam) == EN_CHANGE)
MessageBox(hwnd, "Text!", "Test!", MB_OK);
return TRUE;
}
Doesnt work did i do it wrong?
I have ComboBox (DropDown one) with 2 items in it ("One", "Onion"). When I type 'on' in combo and push dropdown arrow then the text i wrote automatically changes (item "One" is highlighted in list and text changes to "One").
How to prevent it?
Hi,
I want to disable writing in an input type text using javascript
the input type text is populated from database that is why i don't want that user modify its value.
Thinks for help
Hi.
I'm trying to calculate text width using jQuery. I'm not sure what, but I am definitely doing something wrong.
So, here is the code:
var c = $('.calltoaction');
var cTxt = c.text();
var cWidth = cTxt.outerWidth();
c.css('width' , cWidth);
Thank you for your help in advance!
I have two text boxes when i input in these text boxes , by clicking the print button , it should directly printed with the connected printer. can anybody help me how should i do this?