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 helps a little, but not exactly waht I am looking for. Maybe this will make it easier. i want to be able to make a class called hideme 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">...
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
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.