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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tsp120

  1. tsp120

    Loading Perl vars into JavaScript

    Awesome, thanks guys!
  2. tsp120

    Loading Perl vars into JavaScript

    I setting up a webpage. The page is written in Perl/CGI but uses JavaScript for a variety of reasons. When the page loads, I would like to perform an SQL statement to find all records in a table and store each tuple into an array. For example, if I had a table with the following columns: id...
  3. tsp120

    refresh page with values

    Thank you. This sounds like a good way to do it. Now I will ask, how can I select all info from that table and store it in javascript arrays? (I assume that's what you are recommending). Thanks again!
  4. tsp120

    refresh page with values

    I really am not sure where to post this. I have a perl script with CGI, HTML and Javascript. The page contains a form with a lot of radio buttons, select boxes and text fields. It reads data for the radio buttons and select boxes from a mysql database. There is one set of radio buttons (with...
  5. tsp120

    Insert Perl variables into MySQL

    Worked like a charm! Thanks!
  6. tsp120

    Insert Perl variables into MySQL

    I have the following situation. I have a form, written in Perl, CGI, HTML and Javascript. When this form is submitted, a javascript function verifies the validity of the information on the form. If this passes, it calls another Perl, CGI, HTML page which displays the information for the user...
  7. tsp120

    validating form help

    The following two lines get an error message saying 'Object required'. pulldownLabel.style.color = "red"; pulldownLabel.style.fontWeight = "bold"; It's time for me to head out for the weekend, but I appreciate your help. If you can find what's wrong, I'll be sure to check...
  8. tsp120

    validating form help

    Ok, I found the problem above. You had a typo, it's getElementsByTagName. However, this does not work. I think the problem may be that it is not actually telling the code to change the Label, instead it appears to be trying to change the drop down box. Am I wrong?
  9. tsp120

    validating form help

    Thanks again. I understand what you're trying to do, and it makes sense to me. However, when I implemented it, I'm getting an error message saying "Object doesn't support this property or method." It refers to this line: var pulldowns = document.getElementByTagName("select"); And to answer...
  10. tsp120

    validating form help

    I made a mistake in the original message. For the Label arrays, the variables have 'Label' attached to the end. Is should read as shown below. kaht thanks for the help, but I see two problems with your advice. 1. For the first drop down, 'name', if it contains "-" then the label, 'nameLabel'...
  11. tsp120

    validating form help

    I have a form with multiple drop down boxes. All start with a default value of "-", but once the form is submitted, non can have that value. When this happens, the label for the drop down box gets changed to red. I'd like to put both the label names and drop down box names in arrays, and then...
  12. tsp120

    Trigger set on time?

    I've never heard of cron. I just looked it up, and it seems to be exactly what I'm looking for. Thanks!
  13. tsp120

    Using Perl to enable/disable radio buttons

    I am trying to create some functionality on my website. The page is written in Perl/CGI. I have a drop down box that gets loaded with values from a database. This works fine. When a user selects an item from the dropdown box, I want the onSelect function to perform the following function...
  14. tsp120

    Trigger set on time?

    I'm planning a website right now. At a specific time each day (let's just say noon for example), I want to run a couple scripts on the database. From all the research I've done, it doesn't appear that you can set a trigger up to do this. So my question is, what would be the best way to get...
  15. tsp120

    Reading a text file

    I got it working, thanks for your help. The problem turned out to be that the web host requires the full directory and file name. I was just giving the file name. Again, thanks for taking the time to help me.

Part and Inventory Search

Back
Top