tr

Getting a value of td of a selected tr in jquery

Below is my table <table> <tr class=chargeTR> <td id=chargeTD> charge1 </td> </tr class=chargeTR> <td id=chargeTD> charge2 </td> </tr> <table> Below is my jquery call $(".chargeTR").each(function() { // this line works fine $.get("process.php", { ...

UNIX: Replace Newline w/ Colon, Preserving Newline Before EOF

I have a text file ("INPUT.txt") of the format: A<LF> B<LF> C<LF> D<LF> X<LF> Y<LF> Z<LF> <EOF> which I need to reformat to: A:B:C:D:X:Y:Z<LF> <EOF> I know you can do this with 'sed'. There's a billion google hits for doing this with 'sed'. But I'm trying to emphasis readability, simplicity, and using the correct tool for the corre...

Javascript getElementsByTagName broken firefox?

I'm getting the weirdest issues with Javascript in Firefox today. I'm trying to manipulate some table rows, but .getElementsByTagName("tr"); is pulling back junk. dynamicTable.tableBody = dynamicTable.getElementsByTagName("tbody")[0]; var tableRows = dynamicTable.tableBody.getElementsByTagName("TR"); var actualTableRows = new Array(); ...

Remove non-ascii characters from csv

I want to remove all the non-ASCII characters from a file in place. I found one solution with tr, but i guess I need to write back that file after modification. I need to do it in place with relatively good performance. Any suggestions? Thanks ...

Strangeness using /usr/xpg4/bin/tr and /usr/bin/tr on Solaris 9

Hi all, I have a file looking like this, "xxxxxx" "yyyyyy" "aaaaaa" "cccccc" "bbbbbb" "eeeeee" "oooooo" "zzzzzz" Wanting to replace each \n in this file I use: tr '\n' ',' < INPUT > OUTPUT Which works fine. The output is to be expected: "xxxxxx","yyyyyy","aaaaaa","cccccc".... However I can't do any manipulation using sed or aw...

Find location of a checkbox inside a table

I have a table that has checkboxes within tds. The checkboxes have ids that form an array (s[1], s[2], s[3], s[4], etc...) and I am trying to find out the numeric row location of the checkbox within the table>tbody (YES, this row location also matches the index inside the array. Here's the code I'm trying but the result is always "0": ...

qt tr() in static variable

Hi all, I have problem concerning translations in qt. All translations in my porject work fine, but one, which is in a static variable of a class. Corresponding part of code looks as follows The header file is similar to this: typedef struct { int type; QString problematicString; } info; MyClass::QObject_Descend...

unix commandline for inline replacement of all newlines in file with <br>\n

sed 's/$/<br>/' mytext.txt worked but output it all on the command line. I want it to just do the replacement WITHIN the specified file itself. Should I be using another tool? ...

Consistent implementation of tr?

I have a ksh script that generates a long, random string using /dev/urandom and tr: STRING="$(cat /dev/urandom|tr -dc 'a-zA-Z0-9-_'|fold -w 64 |head -1)" On the Linux and AIX servers where I used this it resulted in 64 characters of upper and lower case alpha chars, digits, dash and underscore characters. Example: W-uch3_4fbnk34u2nc0...