Thanks Diancecht,
I used the checked attribute, but had to modify the code a bit.
Here's what ended up working:
<input type="checkbox" name="animal" value="dog" ${param.animal == 'dog' ? 'checked' : ''}/>Dog
This is a pretty simple request, but I'm new to Javascript so thanks upfront for your patience.
I'm trying to pre-populate some check boxes based on values passed to a JSP page through either a POST or GET call.
So if my post string is:
http://www.example.com/form.jsp?animal=dog&color=blue
It...
This is a pretty simple request, but I'm new to Javascript so thanks upfront for your patience.
I'm trying to pre-populate some check boxes based on values passed to a JSP page through either a POST or GET call.
So if my post string is:
http://www.example.com/form.jsp?animal=dog&color=blue...
I have a large group of numbers; they are volumes at certain percentages, e.g. (54.32%, 232), (18.5%, 129), (11.98%, 89)...
What I would like to do is have Excel determine what the average volume would be for specified percentages, for example, What is the average volume at 50.00%, 60.00%, etc...
Thanks for the fast response George!
However, I'm having problems getting the query to work. I am getting these errors:
Column 'InProgram' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
Column 'InProgram' is invalid in the...
I have a table that records when clients have entered and exited a program. Clients can enter multiple times, often sequentially:
UID ClientID EntryDate ExitDate InProgram
1 5 1/1/2006 1/2/2006 N
2 5 1/2/2006 1/3/2006 N
3 5 1/3/2006 1/4/2006 N
4 5 1/4/2006 1/5/2006 N
5 6...
I have a website that I would like to display two ways; either a menu bar is displayed on the left, or not.
If the user goes to www.mydomain.com, they should get the regular website with menu bar. However, if they go to www.mydomain.com/search, they should get the website without the menu bar...
For some reason, the code below is giving me an error:
[i]Error: 'document.Update[...].checked' is null or not an object[\i]
[code]
<html>
<head>
<title>Enable / Disable</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function fncEnable(chkname)
{...
I have a page that allows a user to edit details about a company or agency. One of the things a user can do is add to a list of services an agency provides. However, the list of services is so extensive that I have made a separate page (as a pop-up) for users to search & navigate to the service...
I have a self-referential table that contains parents and childen in the same table. Here is a sample of my table:
service_codes
------------------
uid parent_id descrip
14 NULL Basic Needs
15 14 Food
17 15 Emergency Food
59 14...
Thanks DotNetGnat, sorry I missed that.
I am still having trouble getting that code to work.
I changed the CreateObject to a connection, and get this error:
Operation is not allowed when the object is open.
(On this line: rsAddlElements.ActiveConnection = objConn)
Taking out the...
The code recommended by DotNetGnat doesn't seem to be working. I am getting this error: Object doesn't support this property or method: 'ConnectionString'
Here is the code as I have it in the page:
Set objConn = Server.CreateObject("ADODB.Recordset")
objConn.ConnectionString =...
DotNetGnat,
Sorry, I can't quite figure out how to modify the code as per your suggestion.
Doesn't this part:
Set rsAddlElements = Server.CreateObject("ADODB.Recordset")
make it a connection object?
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.