Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jfarmerjr

    Div not formatting correctly in IE, but looks great in Firefox

    Thanks for the reply! It was actually your reply to another thread that made me double check it, so you still get credit it my book.
  2. jfarmerjr

    Div not formatting correctly in IE, but looks great in Firefox

    Nevermind, I forgot to add a doctype. Adding the doctype fixed the problem.
  3. jfarmerjr

    Div not formatting correctly in IE, but looks great in Firefox

    In Firefox, the inputs line up in the columns of 4, but IE just shows everything in 1 column. How can I get it to look right in both? Here's the html: <html> <head> <script type="text/javascript" > var counter=0; function createDiv() { var divTag = document.createElement("div"); var...
  4. jfarmerjr

    How can I add form inputs to dynamically created divs?

    You're right, it works great! Thanks a bunch for your help, and your patience.
  5. jfarmerjr

    How can I add form inputs to dynamically created divs?

    I'm submitting them via a form, then trying to view the data with php, but I'm not seeing the data I enter into the inputs. Is the data saved as a multi-demensional array in $_POST? ($_POST[Ename[]] maybe?) For all the other pages of the application (which are just simple forms) I place all the...
  6. jfarmerjr

    How can I add form inputs to dynamically created divs?

    Still having some trouble with it, the function is called from a button. It's part of a web application, each div that's called is for a previous employer. Here's what I have now: var counter=0; function createDiv() { var divTag = document.createElement("div"); var...
  7. jfarmerjr

    How can I add form inputs to dynamically created divs?

    Alright, I think I'm going to stick with the innerhtml since I can't get the other way to work quite how I want it to. How can I make it so that the inputs in the innerHTML are created as arrays, or how can I add a counter to add a number to the end of each one? For example, if I created 2...
  8. jfarmerjr

    How can I add form inputs to dynamically created divs?

    Here's the function I have to create a div with some text inputs in it. I believe the use of innerHTML has been deprecated (or maybe just frowned upon) so I was wondering how I could do it with createElement or something, I would also like to put the inputs into an array for each, e.g. Ename[]...
  9. jfarmerjr

    Removing newline characters from awk output

    Ugh, why didn't I think of that? Guess I'm not used to dealing with Windows. That fixed it, thanks a bunch.
  10. jfarmerjr

    Regular expression help (preg_match_all)

    Works like a charm! Once again, I'd like to say: You're awesome Feherke! Thanks a bunch. Every I've come to this site looking for regex help(1 other time in the AWK forum I believe) you've come to the rescue and I sincerely appreciate it.
  11. jfarmerjr

    Regular expression help (preg_match_all)

    Thanks Feherke, I'll be sure to use the TGML tags from now on. That's almost there, but it's capturing the rate and I need to capture the float found after that one, (197.38 and 41.12 from the example text on the first post.)
  12. jfarmerjr

    Regular expression help (preg_match_all)

    Whoops, forgot some of it. Here it is in it's entirety: re1='.*?'; # Non-greedy match on filler $re2='(?:[a-z][a-z]+)'; # Uninteresting: word $re3='.*?'; # Non-greedy match on filler $re4='((?:[a-z][a-z]+))'; # Word 1 $re5='.*?'; # Non-greedy match on filler...
  13. jfarmerjr

    Regular expression help (preg_match_all)

    I tried an online regex creator which gave me this: if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8."/is", $FSCtmp, $matches)) { $word1=$matches[1][0]; $float1=$matches[2][0]; print "($word1) ($float1) \n"; } { $word1=$matches[1][0]...
  14. jfarmerjr

    Regular expression help (preg_match_all)

    I need to find all instances of some numbers in a bunch of text files, here's an example pulled from one of the text files: 00 CX76959 01 3/03 Del Rio TX Nogales AZ 768 1.065 185 .810 967.77 03 00 CX76959 01 3/09 FSC Ml: 768...
  15. jfarmerjr

    Need help pulling and formatting text with awk

    Feherke, You Are Awesome! Works exactly as I need it to! Thanks for applying your obviously genius mind to my problem
  16. jfarmerjr

    Need help pulling and formatting text with awk

    Also seems to be adding a single space to the end of every field but the second (company name) But that's not a major issue. I'd like to thank you again for your exceptional help, so...Thank you!
  17. jfarmerjr

    Need help pulling and formatting text with awk

    The last one is essentially perfect, thank you kindly!!! Regarding the spaces issue, every line has 2 spaces after the symbol before the comma example: ACAD  ,ACADIA PHARMACEUTICALS INC,-0.19 ,n/a ,-0.38 ,9-Mar AMC
  18. jfarmerjr

    Need help pulling and formatting text with awk

    I've attached a copy of an output file (named awktest.txt). I'm using whatever awk comes standard on ubuntu, I'm guessing it's gawk. The spaces issue really isn't a big deal, but is there anyway to exclude all the lines where the symbol (first field) has a '.' in it? Included in the share...
  19. jfarmerjr

    Need help pulling and formatting text with awk

    One issue I have is that there is 2 spaces after each symbol before the comma on every line after running the command
  20. jfarmerjr

    Need help pulling and formatting text with awk

    Thank you kindly, it works like a charm!

Part and Inventory Search

Back
Top