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...
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!
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...
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...
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...
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?
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...
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'...
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...
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...
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...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.