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 IamaSherpa 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. amethystct

    How do I run command line instructions

    Thank you Sedj! That is exactly what I'd been looking for :)
  2. amethystct

    How do I run command line instructions

    I am trying to write this quick li'l thing to do an ls in a given directory and return the results (if any) to the screen. I thought I could use Runtime.exec but in reading up it says that should really only be used to run programs. What would I use instead? Thank you in advance for your help :)
  3. amethystct

    Emailing multiple attachments

    I have a delivery sheet being emailed. The first page is dynamic. That attaches fine. The second page has to be emailed with the first page also an attachment. They're both pdf files. When I try to attach it I get no errors but it creates an empty file. I don't want to recreate the second file...
  4. amethystct

    Question about timezones

    I'm using Calendar to compare 2 dates to see their difference in time. I couldn't get the locale to set properly so I created a lookup of states to just give me the offset. The problem is that for states that don't observe daylight savings I need to set a different offset during dst. Is there a...
  5. amethystct

    Closing pasv connection

    :) That was the issue. Der! Thank you!!
  6. amethystct

    Closing pasv connection

    Okay who's a ftp wiz?! :) We recently moved our servers behind a firewall and were told we had to change our feed programs to use a passive connection. I can get the mode changed to passive and it gets the file but then the connection hangs. Am I closing the connection incorrectly? Here's a...
  7. amethystct

    Keeping "pasv"

    Hi, I have a program that ftp's a file from a server that is outside our firewall. I'm told I have to send the "pasv" command in order to let the data connection bring the file back. I can see in the debugging that it's setting the connection as passive but it sets it back to active when I get...
  8. amethystct

    Difference in time

    There's a gettimeinmilliseconds which is protected. getTime().getTime() returns the milliseconds. long, int, Integer, it doesn't matter what I use the result is the same. Even if the time difference is only an hour the output isn't correct. Using this as an example: compare1: 1077614100712...
  9. amethystct

    Array value

    I have a js function for a checkbox. It's on every row of my part detail so I could have 1 - ? rows If I have more than 1 rows then the checkbox works correctly. When a user checks it I open a new page. If, however, I only have 1 row then I get an error that the value doesn't exist. Why does...
  10. amethystct

    checkbox issue

    Fixed it. I feel like a dummy now!! var formObj = document.varViewPost; var custCode = document.varViewPost.custcode.value;
  11. amethystct

    checkbox issue

    The code originally was for multiple forms. Moving the form outside my loop is what broke this. I'm trying to change it to give me the value of the form elements for the row that was checked. I don't need the check box value, that's just set to the row index. I need the value of some other...
  12. amethystct

    checkbox issue

    Hi! I have a function that WAS working beautifully. I have a page that displays some query rows for me. I had a form for each row but it had to be changed when other form input was added. Now instead of the form being on each row it's just one form. I hope this makes sense! What's happening is...
  13. amethystct

    Form values not saving

    Crud!! Is there any way to make a hidden submit when the value of the select is changed? I can't have them press the other button
  14. amethystct

    Form values not saving

    I have a form w/ 5 selects. When you first enter this page only the first select is filled. Once the user selects one of the options I want it to refresh the page so I can fill the next select based. And so on for each select list. I have a server side process that's called whenever the page is...
  15. amethystct

    Difference in time

    I'm getting the milli from 2 dates, current & a passed date. I want to know the difference in time down to the second between the 2 dates. Given this date: 2004-02-05 18:25:00 and current of 2004-02-17 09:40:00 I get a time difference of 27:166:100. This is supposed to be hours min seconds...
  16. amethystct

    Query question

    Shriyan, you're fantastic!! This is exactly what I was looking for! Thank you!!!!! :)
  17. amethystct

    Query question

    I have 2 questions. I have a query that I need to return the difference between 2 dates. One is a timestamp field the other is a char field but it's in timestamp format. First question is, is the extend the way I have it correct? It works but only if there's a value. Second question is...
  18. amethystct

    Calendar question

    I'm having issues setting a date and I'm wondering if someone could explain what I'm doing wrong. User enters a date/time. I need to compare that date/time to the current date/time and decide whether it meets criteria. The problem is that I have to assume the user entered the date/time based on...
  19. amethystct

    Resetting checkbox

    You guys are soooo awesome! Thank you. :)
  20. amethystct

    Resetting checkbox

    Kaht, Nope, I have another checkbox on the page. This is still good info though! Thanks.

Part and Inventory Search

Back
Top