I just figured it out. Use this code for the javascript:
function hide_elements() {
document.styleSheets[0].rules.item(0).style.display = "none";
}
function show_elements() {
document.styleSheets[0].rules.item(0).style.display = "inline";
}
Now, does anyone know how to...
...that I can set as the class for specific objects that I want to hide and unhide using javascript. for example:
<style type="text/css">
*.hideme {display: inline}
</style>
<script>
function hide_stuff() {
(1) change the class hideme to have: display: none;
}
function...
I am building a site that has a menu page that is called from many different pages so that to change the menu only the one file must be changed. In some of the pages I have set a css class. How do I check to see if the class has been defined before i try to use it? I have tried...
I wrote 2 macros to help in a document that I am making to document code. I made the macros yesterday and ran them many times without problem. Today when I tried to run them I got the following error: "The macros in this project are disabled. Please refer to the online help or...
You could put the id and the action (from the action= in the query part of the form action) in a hidden filed on the form. ie
<input type=hidden name=id value=<cfoutput>#id#</cfoutput>>
<input type=hidden name=action value=add>
then on the page you submit to just use #form.id# to get the uers...
I would put the style definitions in a memo field. Those should be long enough for what you need. What you had as an additional idea after my last post sounds good. I hadn't actually thought about this before I saw your post. But now that i look at it, it seems to be a useful thing to do...
This sounds easy enough. You have the right idea I think. Here is a way you could implement it. Build a database table that has 3 fields. First an ID field (unique), second a short description of the style, and the third containing the actuall code for the style. For example:
Col 1: 123
Col...
I need to insert ascii code 012 into my page (makes page break for printer (?)). How do i put that into my page? I have tried a document.write('\012'); but that doesn't appear to work. Any ideas? thanks.
Leslie
I am using CSS2 and several things are not working in IE5.5 such as page-break-after:always. Does anyone know if CSS2 is not supported in IE5.5 or if there is something I need to do to make it work. Thanks.
Leslie
I am designing a website that uses a pop-up type menu on the left side and on the right has content. Some of the content contains select controls. The problem I am having is that the controls show over the pop-pu menu from the left no matter what I do. They are on 2 different div's and the...
I am currently working on a project taking an app in Access and porting it to ColdFusion. There are some functions in the access database that are proving diffucult to reporduce in CF. Is there a way to access the Access module/functions? Thanks.
Leslie
Does anyone know why you can't comment out cf statements? for example if I have
<!-- <cfquery ......>....</cfquery> -->
or <!-- <cfif...... -->
cf will run try to run the code in teh comments (<!-- -->). How can I fix this? It would make debugging alot easier. Thanks.
Leslie
Thanks, I also found what works is month(activity_date) = 2.
Its a SQL command so it should work for any query no matter the datasource. Also useful are Year() and Day().
Just as a note, I tried doing
Month(activity_date) = 2
and I got this error:
QUERY
The QUERY attribute of the tag does not specify the name of an available query
The error occurred while processing an element with a general identifier of (CFOUTPUT), occupying document position (50:1) to...
I have a query and in it I need to find where there was activity during a specific month. The activity date is a date type in an access database. how do i put the query to that i can say where activity_date is in month__? like if I want activity in april then where activity_date is in 4. How...
I have a page that I want to print. When it prints it needs to be in landscape orientation and I also need a way to insert pagebreaks where I want them. I know there is a way to do this with js but i can't seem to find anything referring to it now. Can anyone help? thanks.
Leslie
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.