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?
Hello there,
I've got a textbox(id="tb1") and a button(id="btn1").
I want that whenever I click on btn1 a text "hello world" must be inserted in the tb1 at the current position of cursor in text-box.
Please provide me a cross browser solution for this.
Since I'm frosted from some heavy extra ordinary links so it'd be better to post a function considering the current scenario.
Thanks,
Guru
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, I am trying to develop a cocoa application that requires to read highlighted text from any application. But so far I cannot find any decent solution because the accessibility API isn't always work. (e.g. Firefox) Does anyone know it is implemented in text-to-speech included in Leopard?
I have found this SO question but it isn't solved.
i am trying to make a text box no editable for the users. I tried using this code and it works. Any ramifications??? I mean do u suggest the use of this code or it may cause trouble for me in future???
<input type="text" name="west" value="fixed value" readonly />
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 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.
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
iPhone Application writes data to a text file, saves it on the Documnets folder. Great that works
If I place "£" in the string, or use [currencyStyle stringFromNumber] the text file will not be created.
The "£" and the [currencyStyle stringFromNumber] works if the information is printed to a "New View" page on the simulator, pound and all
Can someone please explain what's happening?
My requirement is to display localized text messages in a J2EE web application. I know J2EE provides very good support for this.
My question is what is the practice followed to have the localized messages stored to be used by the application. If I want to display Japanese / Chinese kind of messages which are not like English like char sets how do we get that messages/text into the properties files or Database tables.
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?
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
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!
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,
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 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 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 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?
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 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 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?
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?
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?