Results 1 to 4 of 4

Thread: How to make the javascript style visible

  1. #1
    Join Date
    Nov 2008
    Posts
    97

    How to make the javascript style visible

    I have a javascript function that basically hides or displays fields according to a filter. and I need to write javascript for those controls for validation. I'm doing this by trying to execute a series of style.visible="visible" & "hidden" statements. Is it possible to generate dynamically a html file which will contain only <div> tags of which contents are hidden from user.

  2. #2
    Join Date
    Mar 2008
    Posts
    258

    Re: How to make the javascript style visible

    There are basically two different ways of hiding elements - you can either set their visibility to "hidden", or you can set their display to "none". CSS "visibility" property hides an element but retains its space in the flow of the document.

  3. #3
    Join Date
    Jan 2006
    Posts
    211

    Re: How to make the javascript style visible

    Basically there are many ways to Visible/hide, render/not render a control For ASP.NET webcontrols, this is because i have tried it out in ASP.NET and not so aware about the javascript, but am sure that you have the Visible property which can be set to true or false but that's serverside. The visibility option doesn't alter any other elements around or after the element, whereas the display option will "collapse" the element so to speak.

  4. #4
    Join Date
    Mar 2008
    Posts
    227

    Re: How to make the javascript style visible

    This could also be done by writing the asp:Button will cause a postback and you can make controls visible property true/false server side. Identify each line with an id or class and turn each one on/off as required. Then you can turn each line on/off using javascript and display:none or hidden as required.

Similar Threads

  1. Replies: 4
    Last Post: 19-02-2012, 04:29 PM
  2. Does a own Domain Name make your website more visible
    By Kiran25 in forum Technology & Internet
    Replies: 8
    Last Post: 24-09-2011, 10:24 PM
  3. Cufon javascript replace isn't replacing the correct style in my
    By Luis-Fernando in forum Software Development
    Replies: 6
    Last Post: 18-05-2010, 12:25 AM
  4. Javascript Change Style
    By Berth in forum Software Development
    Replies: 3
    Last Post: 18-09-2009, 03:00 PM
  5. How to make Tables visible in Javascript
    By Jannat in forum Software Development
    Replies: 2
    Last Post: 13-02-2009, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,011,719.69572 seconds with 16 queries