Right so as the title says im trying to show the selected option from my radio type to be highlighted. I know this can be done with css as it is done [here](http://jsfiddle.net/hekh8/) however i can not implement it within this script. Any help would be very appreciated, thank you. $HTML .= '<div class="required">' . "\n"; $HTML .= ' <label for="contest-q' . $scoreboard['questions'][$i]['number'] . '">' . str_format( $scoreboard['questions'][$i]['name'] ) . '</label>' . "\n"; $HTML .= 'option A<input type="radio" class="underline-on-hover" name="contest[' . $scoreboard['questions'][$i]['number'] . ']" value="A""' . ( isset( $entry[$i] ) ? str_format( $entry[$i] ) : '' ) . '" id="contest-q' …

Member Avatar
Member Avatar
+0 forum 1

Hello, I have write a simple search page for my sit(testing!) Now I am trying to highlight my search keyword from the search result. Not going to use java so I am thinking to use something like preg_replace But the problem is I dont where should I start with. As you can see the code below(Ive took out some part of it), the output will be a table and displaying all the result which will match $term. So now, I am trying to implement the preg_replace $hterm = preg_replace($term, '<span class="highlight">$term<\/span>', ????); what should I use to replace the ???? …

Member Avatar
Member Avatar
+0 forum 8

I have a MSHFlexGird (fgdCompany) and a search command. When the user enters the search data into "txtSearch", the command should search for the data and show it to the user by : Highlighting the record in the MSHFlexGrid -OR- By bringing the row that contains the searched data to the top of the MSHFlexGrid. The code that I am using is given below. The search function works perfectly. Only thing is I can't make the record that contains the searched data be highlighted so that the user knows in which record the data that was search data is present. …

Member Avatar
Member Avatar
+0 forum 3

Hello Good day. Here is the problem I am trying to solve. I have a table as seen below. ![232465554203149acd8363d3a4a127ae](/attachments/large/3/232465554203149acd8363d3a4a127ae.jpg "232465554203149acd8363d3a4a127ae") My GOAL: Columns A through G are going to be filled with integers. (I have already created an integer model so that these cells only take integers). As the cells in that range are filled, the Totals column will decrease in number until it reaches zero. So far I have managed to use a TableModelListener to respond to the changing cell values. What I wish to do now is to prevent a cell, *that is being edited*, from *accepting* …

Member Avatar
Member Avatar
+0 forum 14

hi to all.. i am using mshflexgrid to display records in vb6.0.. i used **like** query to find the text in database.. i finished everything.. my problem is whatever i give in search textbox that should get highlighed in mshflex grid. example: to search telephone ill type phone in flexgrid it as to highlight like this tele**phone** or **telephone**

Member Avatar
Member Avatar
+0 forum 1

Hi guys. I'm stuck. How can I use a custom color (rgb 25, 25, 25)(for example) as my fill rectangle color instead of the default blue? 'Private Sub ListBox10_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox10.DrawItem ' e.DrawBackground() ' If (e.State And DrawItemState.Selected) = DrawItemState.Selected Then ' e.Graphics.FillRectangle(Color.??, e.Bounds) ' End If ' Using b As New SolidBrush(e.ForeColor) ' e.Graphics.DrawString(ListBox10.GetItemText(ListBox10.Items(e.Index)), e.Font, b, e.Bounds) ' End Using ' e.DrawFocusRectangle() 'End Sub

Member Avatar
Member Avatar
+0 forum 7

hello i am working on a c,c++,java tutorial website, & i want to insert lots of source code example in it. I am doing this using <span> & CSS classes. I have seen some online code highlighter. i want to make one for my site. And is there any other method like read a .c file & automaticaly convert it into HTML/CSS. Please suggest. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Hi guys... I need some help from you all.. **Actual Scenario is :** This is Module to Update today's price of products and these TextBoxes below is created in loop with <input type="text" id="<?="rate2".$i?>" name="<?="rate2".$i?>" size="5" /> ($i is increment variable of loop) also I already got abc rate (Standard price). **Now Problem is :** Whenever user enters the value on 1 TBX it should compare this.value with abc rate and if this.value is low then entire row's text color should be red, so on. then finally, it should also highlight the lowest of all. **Please help me in this …

Member Avatar
Member Avatar
+0 forum 3

Im trying to make a highlighter that will highlight a word after I have typed it in a JTextArea. The problem I have, is that after I press space, the highlighter doesnt stop. It continues highlighting the next words as well. public class highLighter { JTextArea ref; Highlighter hilite; String text; Document doc; public highLighter(JTextArea mainT) { ref = mainT; try { } catch (Exception ex) { Logger.getLogger(highLighter.class.getName()).log(Level.SEVERE, null, ex); } } public void light(int pos, int lenght){ hilite = ref.getHighlighter(); doc = ref.getDocument(); try { text = doc.getText(0, doc.getLength()); // Create highlighter using private painter and apply around pattern …

Member Avatar
Member Avatar
+0 forum 2

I'm working on highlighting repeater row. And then when i click on another row, the previous row becomes unhighlighted. So it's working, but only for a split second. Once the modalpopup appears, the highlight is gone. By the way, i have a linkbutton in every row that makes the modalpopup show, and i made all the labels inside the repeater as associatedcontrols of the linkbutton. So the texts inside the repeater all kind of serve as linkbuttons. I know that the highlight-unhighlight thing works because the effect persists when i only click on the areas without text. I know the …

Member Avatar
+0 forum 0

Hi all, How i changing the color of label caption dynamically, so it looks like highlight text changing color. Thank you.

Member Avatar
Member Avatar
+0 forum 2

Hi, I have been trying to change the highlight color when the mouse gets on it of the stripmenu...how do I do that? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 3

Good Day everybody, I am wanting to make a program in VB.NET that has many files.doc in a specific folder. This program has on top a textbox(txtSearch) with a button(btnSearch) under that this has two listbox(lstOption, lstResult), that are floating a left, one richtextbox(rtbDoc) that is floating a right. I want that when the user writes in txtSearch and click on button then the application will read all files, and find for this string. When it complete: the first listbox's item are: All words matches, Some words matches initial letter of words matches Then when the user click on one …

Member Avatar
Member Avatar
+0 forum 14

Hello Everyone, I have this small system that i developed for a company that is basically a Skill Map for the employee's, so in the following image will show the search of the employee's skills through the Family, in the following image the users does a search of the family and it will show all the employees which have learned a manual of that family: [url]http://www.daniweb.com/forums/attachment.php?attachmentid=20347&stc=1&d=1301518355[/url] So there is another form which is called IDO(SkillMap3.jpg) [url]http://www.daniweb.com/forums/attachment.php?attachmentid=20349&stc=1&d=1301518949[/url] Which are all the Manuals under each family Example [QUOTE] Manual,Revision,Family ENSAMBLE DE FRENO LADO DE SERVICIO,1,TANDEM OMNI & WABCO PRUEBA DE FUGA A …

Member Avatar
+0 forum 0

Hi, I was making a search box and was trying to highlight the words that the users will enter in the search box,for example if the user enter "kids" in the searchbox it should highlight the "kids" word in the result............. is anyone have an idea how to do that

Member Avatar
Member Avatar
+0 forum 5

Hi what i am trying to do here is highlight a particular cell in a table using a custom cell renderer. And by the way this is my first cell renderer so i am really not sure what to do! ok now here is the renderer I have written and what I want it to do is highlight the cell at the 1st row of the column through which I call it. But it does not seem to do it, all it does is highlight all the rows in that column once I click a particular cell. Please help me …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to make a html editor. I need to set different colors for different words... I managed to the change text's background color, but not it's foreground. Can some one help me? this is my code [code=java] public class HEditorView extends FrameView { public HEditorView(SingleFrameApplication app) { super(app); initComponents(); //**** Lots of initializations! Skip further!!!**** // status bar initialization - message timeout, idle icon and busy animation, etc ResourceMap resourceMap = getResourceMap(); int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout"); messageTimer = new Timer(messageTimeout, new ActionListener() { public void actionPerformed(ActionEvent e) { statusMessageLabel.setText(""); } }); messageTimer.setRepeats(false); int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate"); for (int i …

Member Avatar
Member Avatar
+0 forum 5

hello.... i am doing search concept. i am searching one word from all my web pages . actually i have only one table for 25 static pages. among this pages i want to search searching content. and also highlight the search content. how to do?

Member Avatar
Member Avatar
+0 forum 5

The End.