Want to hide command bottun using javascript

Hi,
I want to hide command bottun using javascript when form load
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add/Edit CD details</title>
<script type="text/javascript" src="Test.js"></script>
<script type="text/javascript" src="datetimepicker.js"></script>
<script type="text/javascript">
*function hideDeleteButton(){*
if(document.forms['editForm'].elements['editForm:cd_number'].value="")
document.('viewForm:deleteEntry').style.visibility = "hidden";
</script>
</head>
*<body onLoad="hideDeleteButton(),document.getElementById('editForm:cd_title').focus();">*
<f:view>
<h:form id="editForm" onsubmit="return validateDate()">
<b><p align="center">CD Management</p></b>
          <% if(session.getAttribute("supervisor")==null)
     response.sendRedirect("../index.faces");
%>
          <table width="100%">
          <tr><td valign="top" >
          <h:panelGrid columns="8">
          <h:commandLink id="com1" value="CD management" action="#{CDBean.getAllCDs}" title="CD management" immediate="true"/>
          <%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>
          <h:outputText value="||" id="use1r"></h:outputText>
          <h:commandLink id="Users" value="Users account" action="#{usersBean.viewAllAccounts}" title="Users account" immediate="true"/>
          <%} %>
          <h:outputText value="||" id="use13"></h:outputText>
          <h:commandLink id="pas" value="Change password" action="#{changePasswordBean.changePassword}" title="Change password" immediate="true"/>
          <h:outputText value="||" id="us2er"></h:outputText>
          <h:commandLink id="com2" value="Log out" action="#{logoutBean.logout}" title="Log out" immediate="true">
          </h:commandLink>
          </h:panelGrid>
          </td>
          <td valign="top" align="right" title="Logged in||<%=session.getAttribute("username") %>">Logged in||<font color="green"><%=session.getAttribute("username") %></font></td>
     </tr>
     </table>
<hr>
<b><h:outputText value="#{viewCDBean.form_title}"/></b><br><br>
<div id="no"><h:outputText id="nocd" value="#{viewCDBean.cd_number}"/></div>
<h:panelGrid columns="3">
<h:outputText id="output112"/><h:inputHidden id="cd_number" value="#{viewCDBean.cd_number}"></h:inputHidden><h:outputText id="output117"/>
<h:outputText id="output1" value="Title"/><h:inputTextarea id="cd_title" value="#{viewCDBean.cd_title}" rows="2" cols="40" required="true"></h:inputTextarea><h:message for="cd_title" style="color:red"/>
<h:outputText id="output2" value="Contents"/><h:inputTextarea id="cd_contents" value="#{viewCDBean.cd_contents}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output18"/>
<h:outputText id="output3" value="License key"/><h:inputText id="license_key" value="#{viewCDBean.license_key}" size="50"></h:inputText><h:outputText id="output19"/>
<h:outputText id="output4" value="Vender company"/><h:inputText id="vendor_company" value="#{viewCDBean.vendor_company}" size="50"></h:inputText><h:outputText id="output20"/>
     <h:outputText id="output5" value="Vender name"/><h:inputText id="vendor_name" value="#{viewCDBean.vendor_name}" size="50"></h:inputText><h:outputText id="output21"/>
     <h:outputText id="output6" value="Vender contact no"/><h:inputText id="vender_contact_no" value="#{viewCDBean.vender_contact_no}" size="50"></h:inputText><h:outputText id="output22"/>
<h:outputText id="output7" value="Remarks"/><h:inputTextarea id="remarks" value="#{viewCDBean.remarks}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output23"/>
<h:outputText id="output8" value="Added by"/><h:inputText id="entered_by" value="#{viewCDBean.entered_by}" readonly="true"></h:inputText><h:outputText id="output24"/>
<h:outputText id="output9" value="Last modified by"/><h:inputText id="last_updated_by" value="#{viewCDBean.last_updated_by}" readonly="true"></h:inputText><h:outputText id="output25"/>
<h:outputText id="output10" value="CD/DVD"/>
<h:selectManyListbox id="cd_dvd" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.CD_DVD}">
               <f:selectItem itemValue="" itemLabel="DVD" />
               <f:selectItem itemValue="0" itemLabel="CD" />
          </h:selectManyListbox>
<h:message for="cd_dvd" style="color:red"/>
<h:outputText id="output11" value="License/Open source"/>
<h:selectManyListbox id="license_or_open_source" styleClass="selectOneMenu" required="true" size="1" value="#{viewCDBean.license_or_Open_source}">
               <f:selectItem itemValue="1" itemLabel="License" />
               <f:selectItem itemValue="0" itemLabel="Open source" />
          </h:selectManyListbox>
<h:message for="license_or_open_source" style="color:red"/>
<h:outputText id="output12" value="Serial key"/><h:inputTextarea id="serial_key" value="#{viewCDBean.serial_key}" rows="2" cols="40"></h:inputTextarea><h:outputText id="output28"/>
<h:outputText id="output13" value="Purchase date"/>
<t:inputCalendar id="purchase_date" value="#{viewCDBean.purchase_date}"
               renderAsPopup="true" renderPopupButtonAsImage="true" popupButtonImageUrl="cal.gif" title="pick a date"
               alt="pick a date" popupDateFormat="dd-MMMM-yyyy">
          <f:convertDateTime type="date" dateStyle="default" pattern="dd-MMMM-yyyy"/>
     </t:inputCalendar>
     <h:outputText value="(dd-mmm-yyyy)" id="purchase_date2" style="color:red"/>
<h:outputText id="output14" value="Purchase price"/><h:inputText id="purchase_price" value="#{viewCDBean.purchase_price}"></h:inputText><h:message for="purchase_price" id="output30"/>
<h:outputText id="output15" value="Status"/><h:inputText id="status" value="#{viewCDBean.status}"></h:inputText><h:outputText id="output31"/>
</h:panelGrid>
<table>
<tr>
<td>               </td>
<td>                </td>
<td><%if(session.getAttribute("supervisor")!=null && session.getAttribute("supervisor").toString().equals("Y")){%>*<h:commandButton value="Delete" id="deleteEntry" action="#{CDBean.deleteFromCDMaster}" onclick="return insure()" />* <h:commandButton value="Submit" action="#{CDBean.modifyDetail}"/> <%}%></td>
<td><h:commandButton value="Cancel" action="#{CDBean.getAllCDs}" immediate="true" onclick="setDateFieldBlank()"/></td>
</tr>
</table>
</h:form>
</f:view>
</body>

function hideDeleteButton(){
if(document.forms['editForm'].elements['editForm:cd_number'].value="")
document.z('viewForm:deleteEntry').style.visibility = "hidden";
This script will not work

Similar Messages

  • Want to hide a folder using Java

    I want to hide a folder using Java. Can anyone give me API to do this.
    I have checked the I/O package in that only isHidden() is there which shows if the file is hidden or not. But i want to hide a folder using Java code.
    Can you please help me.
    Thanking you in advance

    If your dealing with a Linux directory you could hide it by prepending a dot. Or, if a directory of that name already exists, prepending a number of dots. Unhiding would consist of removing all the leading dots (and this operation might not always be possible).
    If it's a Windows directory you might want to look at the "attrib" command.
    [http://www.computerhope.com/attribhl.htm]

  • How to Hide f:subview using javaScript

    Hi
    In our application i have to hide and show the subview using javascript is it possible i tried like this.. but its not working
    <f:subview id="viewid" >
    // view contents
    </f:subview>
    In java script
    document.getElementById("viewid").style.visibility="hidden";
    Any suggestion to me..
    Regards
    Hari

    The f:subview doesn't render anything to the response. You should know that if you have checked the rendered HTML source.
    Wrap its contents in a h:panelGroup and give it an ID. And don't forget to adapt the clientside Javascript language on the clientside HTML source, not on the serverside JSF source.

  • How to hide command fied using transaction iview

    Hi All,
    Is there any way to hide command box (transactional field) in Portal using transactional iview ?
    I have searched in sdn forum, it is possible via IAC iview using application parameters ~headerOKcode = 1.
    Since our ITS is not configured properly and it is continously giving Browser errors (Object expected, 'wgu_global_eventhandler' is null or not an object).
    So.........I can;t go ahead with IAC Iview.
    I suspect.....anyone has gone through this problem and experts has a solution with transactional iviews to hide those command boxes.
    Appreciate your inputs in this regards.
    Thanks,
    Anil Kumar

    Try this in 'Application Parameters' field '&~NOHEADEROKCODE=1'

  • Conditionally Hide Dashboard Pages using Javascript.

    Hi, I would like to share a small logic i developed to Conditionally show or hide Dashboard Pages based on a Repository Variable.
    In the last few weeks we noticed that the ETL jobs scheduled everyday were failing due to various obvious reasons. As a result, Our Dashboard are greeting the users with "No Data to Display Messages". Most of our Sales Dashboards are defaulted to show business health as of yesterday (Sysdate -1). If ETL scheduled everyday at 3 am failes, then the Dashboards show no data. Emails from Users, etc. etc........
    For a few days we were manually trying to post some messages on Dashboard something like "Please come again, Our Data for yesterday is not yet loaded........".
    I thought it would be nice to hide the Dashhboard Pages automatically, rather than manually posting a message whenever data outage or etl job failure occures.
    To do this, I
    1. Identified the table that the ETL folks update at the end of every job. This table has a column to say the status of the load (Successful, UnSuccessful) and also a date column to show the most updated load date and timings.
    2. Created an Initialization block that would go fetch the most recent loaded date and status of the load values. I set this block to fire every 5 minutes.
    3. Created a report with a Date Column and a bogus columns with FX set as the Repository Variable for Load Status. Added filter on the Date as = the repository variable for Load Date.
    4. In the Narrative View of this Report, I added the following JavaScript.
    In Prefix section:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>     
    <script type="text/javascript">          
    var curTable = document.getElementsByTagName("table");
    In Narrative Section:
    var cFlag = "@2";
    In Postfix Section:
    if (cFlag == "UnSuccessful"){
    for (var i = 0; i < curTable.length; i++) {
    if (curTable.className == "PageTable") {
    curTable[i].style.display = 'none';                         
    /*var curBody = document.getElementsByTagName("body")[0];
    var newTable = document.createElement("table");
    var newTBody = document.createElement("tbody");
    var newRow = document.createElement("tr");
    var newCol = document.createElement("td");
    var curMessage = document.createTextNode("Data for this dashboard is currently unavailable due to the daily load process." + '\n' + "Sorry for the inconvenience.");
    newCol.appendChild(curMessage);
    newRow.appendChild(newCol);
    newTBody.appendChild(newRow);
    newTable.appendChild(newTBody);
    curBody.appendChild(newTable); */
    alert("Data for this dashboard is currently unavailable due to the daily load process. Please check back shortly." + '\n' + "Sorry for the inconvenience.");
    </script>     
    </head>
    <body>
    </body>     
    </html>
    Note: I originally wanted to post the message on the Dashboard, but there are some issues with IE 7, with appendChild method. But it works fine with FireFox. So I did not wasted any time on Javascript Errors, rather just had an alert message, that basically does the job i need. I mean tell the users about the ETL Status.
    5. Finally I added this report in the Dashboard. Key point here is the above report should be added in the Lower Column. I mean if there are six Dashboard COlumns aligned as 2 Columns X 3 Rows, I added the Narrative Report on the 5th or 6th Columns.
    When the load status is unsuccesful, the narrative report will hide the Dashboard Sections and shows a message to the users.
    Thanks
    Sai
    Edited by: Sai Kumar Reddiboyina on Sep 23, 2009 5:51 PM
    Edited by: Sai Kumar Reddiboyina on Sep 23, 2009 5:51 PM

    Hi Turribeach, the reason i set it as "Answered" because, I have found the answer by myself and wanted to share with others.
    Also,
    Guided Navigaion is very expensive in terms of performance and I am talking about at least 8 to 10 answer requests per page here.
    Thanks
    Sai

  • Hide an HTML button using javascript

    Hi,
    I need to hide an html buttton using javascript. I have an radio button with values "YES" and "NO". If is select NO then i need hide the button without refreshing the page. Can anyone suggest me how to hide an button using javascript.
    Thanks
    Prashanth

    Prashanth,
    The exact solution will vary based on a few factors. The basic idea is to place an event handler on the radio button item that calls a function to hide/show the button. You might also want to call that function when the page loads too.
    If you put an example page on apex.oracle.com and provide the workspace/username/password I'll take a look. You can create a new account for this purpose.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • Hide command window from transactions in sap portal

    Dear experts
                  sir i want to hide command window from transactions iview in sap portal when i using sap gui for windows  sir i know very well settings for sap gui for html. so is there any possiblity for hiding command window from transactions iview when i use sap gui for windows
    please help...............
    Edited by: mousam jaini on Nov 1, 2010 12:11 PM

    Hi Mousam
    You can get solution from the  SAP Note: 1010519
    If ur system doesnot meet the pre-requiste, then you can set the below parameter under transaction sicf:
    ~webgui_simple_toolbar=1
    Pls go through the below article to display the SAP Transaction as SAP GUI
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
    Thanks
    Keshari

  • Show/Hide Command button in ADF

    I want to hide "Command Button" based on the select of "tableSelectOne". I have tried using the following code but I am not able to do that. So pls suggest some other options.
    <af:panelGroup partialTriggers="DestRulesSelectionId">
    <af:commandButton text="..."
    disabled="false"
    shortDesc="Test"
    partialTriggers="DestRulesSelectionId"/>
    </af:panelGroup>
    <af:tableSelectOne text="Select and" autoSubmit="true"
    id="DestRulesSelectionId"/>

    Hi Didier,
    But I have also developed the same example and it is working, without putting the command button under any parent component.
    Page defination is
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html binding="#{backing_ShowHide.html1}" id="html1">
          <afh:head title="ShowHide" binding="#{backing_ShowHide.head1}" id="head1">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body binding="#{backing_ShowHide.body1}" id="body1">
            <h:form binding="#{backing_ShowHide.form1}" id="form1">
              <af:panelPage title="Show Hide" binding="#{backing_ShowHide.panelPage1}"
                            id="panelPage1" partialTriggers="selectOneRadio1">
                <f:facet name="menu1"/>
                <f:facet name="menuGlobal"/>
                <f:facet name="branding"/>
                <f:facet name="brandingApp"/>
                <f:facet name="appCopyright"/>
                <f:facet name="appPrivacy"/>
                <f:facet name="appAbout"/>
                <af:selectOneRadio label="Select "
                                   value="#{backing_ShowHide.radioBtnValue}"
                                   autoSubmit="true"
                                   binding="#{backing_ShowHide.selectOneRadio1}"
                                   id="selectOneRadio1">
                  <af:selectItem label="One" value="one"
                                 binding="#{backing_ShowHide.selectItem1}"
                                 id="selectItem1"/>
                  <af:selectItem label="Two" value="two"
                                 binding="#{backing_ShowHide.selectItem2}"
                                 id="selectItem2"/>
                </af:selectOneRadio>
                <af:commandButton text="commandButton 1"
                                  binding="#{backing_ShowHide.commandButton1}"
                                  id="commandButton1"
                                  partialTriggers="selectOneRadio1"
                                  rendered="#{backing_ShowHide.radioBtnValue =='one'}"/>
              </af:panelPage>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_ShowHide-->
    </jsp:root> ~Vikram
    http://kohlivikram.blogspot.com/
    Message was edited by:
    KoVik
    Message was edited by:
    KoVik

  • Allowing only pdf files in document library using Javascript

    HI,
    I have a document library in sharepoint 2013, where i want only pdf files to get uploaded in it. I have created event receiver for the same and it is working fine. but i want to restrict the files using javascript on
    the page itself, since, In event receiver, after the file is getting uploaded, it is checking and throwing error. So, is there any way to check for the file type before uploading the file and show error message if wrong file is uploaded?
    Harikrishna Baskaran

    Bind event to the upload button and add jquery to validate the file extension. Refer to the following posts for more information
    http://stackoverflow.com/questions/13124950/change-onclick-event-input-type-button-in-ie-8-9-ff-with-jquery-won%C2%B4t-wo
    http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file
    --Cheers

  • Preselect Htmlb Radiobutton using javascript

    Hi Experts,
    when I  click on a button, i want to preselect a radiobutton using javascript.
    I am using below code to get the instance of the radiobutton in the javascript, but I am unable to select the radiobutton.
    var theRadio = eval(func(grpId + htmlb_radiobuttonmodifier.substring(3,7)+ "1"));
    Thanks in advance

    Hi,
       Try alerting "(theRadio.type)".
    If you are getting the proper checkbox instance then the alert should display "checkbox". If that much is working then checking the checkbox is as simple as
    var theRadio = eval(func(grpId + htmlb_radiobuttonmodifier.substring(3,7)+ "1"));
    if(theRadio)
       theRadio.checked = true
    By the way what does the function "func" do?
    Regards,
    Satyajit

  • Returning a SharePoint 2013 termset in a tree structure using JavaScript for MultiLingual

    Hi,
    How do we get the path of term,if my term label is in some other locale, lets say for Spanish but using currentTerm.get_pathOfTerm() property it returns default path of my term store, i.e English.
    But i need the path to use my values returned in Spanish ???
    Do we have any idea how to achieve this. ??
    Regards,
    Avinash

    Hi,
    According to your post, my understanding is that you want to get term path using JavaScript for MultiLingual.
    Per my knowledge,
    SP.Taxonomy.Term.pathOfTerm property (sp.taxonomy) gets the path for this
    Term in the
    TermStore default language.
    To get path for MultiLingual, I recommend that you can use
    Term.GetPath method (Int32) which
    gets the path for the current
    Term in the specified lcid.
    If the lcid is not a valid TermStore language, then the default language is used.
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Captivate: Using Javascript to show/hide text captions

    Hello,
    I want to show/hide a text caption using javascript. I can't find the way of doing it with advanced actions. I dont know if it's because it belongs to a question slide in a pool. Does somebody knows if it's possible and how it can be done??

    You can set the length of the variable when you insert it.
    15 characters is just the default setting.
    What I meant by COULD is that the kind of thing you are asking about here (using JavaScript to hide objects inside a Captivate movie at runtime) is not as simple as you'd like it to be.
    JavaScript is not my particular area of expertise, but there are some people that chime in on this forum that ARE experts at JS. But I think they would also be the first to say that it's not as simple a thing to pull off as just "knowing the command to hide/show an object".
    The easiest tool to use in Captivate for showing or hiding objects is Advanced Actions.  The next easiest thing to use is ActionScript 3, and that's hard.  JavaScript is a very useful programming language, but it spends all of its life outside the Captivate movie looking in through AS3's External Interface.  So JS alone is not going to solve all your issues.

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • How to Hide username and password in command line using maxl

    Hi,
    How to encript my user name and password in command line prompt when I am login to Essbase server using batch file:
    *1_Here is my batch file:*
    Name of the bat file AV_Assig_Var1.bat
    rem This batch file defines the following variables:
    set $1 = 'admin';
    set $2 = 'password';
    essmsh AV_Asig1.mxl admin password
    ===========================
    *2_Here is my maxl file:*
    Name of the bat file AV_Asig1.mxl
    /* Create a process log */
    spool on to 'D:\lova\spool_log.txt';
    /* login (using variables from a batch file */
    login $1 $2 on 10.42.100.229;
    /* create application and database */
    create application AV_Asig1;
    create database AV_Asig1.AV_DB;
    /* End process log */
    spool off;
    exit;
    *3_Command line prompt*
    D:\Ess>AV_Assig_Var1.bat
    D:\Ess>rem This batch file defines the following variables:
    D:\Ess>rem 1: username
    D:\Ess>rem 2: password
    D:\Ess>essmsh AV_Asig1.mxl admin password
    Essbase MaxL Shell - Release 9.3.1 (ESB9.3.1.0.0A181)
    Copyright (c) 2000, 2007, Oracle and/or its affiliates.
    All rights reserved.
    MAXL> login admin password on *10.46.100.222*; /* I want to hide this information */
    OK/INFO - 1051034 - Logging in user [admin].
    OK/INFO - 1051035 - Last login on Monday, June 14, 2010 12:44:03 PM.
    OK/INFO - 1241001 - Logged in to Essbase.
    MAXL> create application AV_Asig1;
    OK/INFO - 1051061 - Application AV_Asig1 loaded - connection established.
    OK/INFO - 1054027 - Application [AV_Asig1] started with process id [6792].
    OK/INFO - 1056010 - Application AV_Asig1 created.
    MAXL> create database AV_Asig1.AV_DB;
    OK/INFO - 1054014 - Database AV_DB loaded.
    OK/INFO - 1056020 - Database AV_Asig1.AV_DB created.
    MaxL Shell completed
    D:\Ess>
    I am looking forward to inputs from anybody.
    Thanks & Regards,
    Deepthi.

    Beyond that thread, I gave a presentation at Kaleidoscope last year around MaxL that goes into quite a bit of depth re encryption and a whole bunch of other MaxL goodies.
    To download it, go to www.odtug.com, click on Tech Resources, Essbase/Hyperion, and use the search box for MaxL.
    There are two presentations, one by Tracy McMullen and the other by me. Tracy's is a good introduction to the various command groups; my presentation focused on a few areas in depth, one of which was encryption. The title is "Master Essbase with MaxL Automation".
    You will need to join ODTUG to download the presentation, but there is a junior membership that is free.
    Regards,
    Cameron Lackpour
    P.S. ODTUG Kaleidoscope 2010 is coming up in two weeks, starting on 27 June 2010 -- for those of you still on the fence, it is an awesome conference and I urge you all to come. The content this year will be fantastic.

  • Hide datefield coldfusion control using JavaScript

    I have a straight forward datefield control.  Looks like the following:
    <cfinput type="dateField" name="dt_RtDate" width="60px"  id="dt_RtDate" title="Enter or select repeat date" value=""  >
    Now I have a javascript function that happens on a click event that I use to want to hide this control it looks similar to the following:
    //Hide Repeater control
        var dtRepeater =  document.getElementById('dt_RtDate'); 
        dtRepeater.style.visibility = "hidden";
    this works fine, but there is a problem I notice.  The textbox dissapears and this is fine, but the calendar image control IS STILL VISIBLE?!
    So my question is I am not sure how to reference this control or property to make the entire thing go away.  I would also then like to know the flipside of showing it too (which I am using by saying ...  dtRepeater.style.visibility = "";   )
    So what do I have to do to reference the coldfusion date control to make it dissapear completely?
    Thanks,

    You could always put it inside a span or div and do your show/hide on that element.

Maybe you are looking for