How to show/hide div based on the value of mysql

I have a dataset that contains a 'locked' column, which is a Boolean value that I want to use to remove a button on a form.  The idea is that it will be fixed to 1 after a period of time, thus eliminating the buttun that connects to an update form and prevent the data being edited.  Currently I have the field bound to a checkbox at the top of the table.  How can I use this to hide the button (or any other html element) when the value 1 and show the item when the value 0?  I understand that I need to create a php mysql boolean variable and then use a loop if/else statement to hide/show the html code but I don't know how impliment that?  Thanks for any help.

Here is the code:

<? php require_once('Connections/testmypms.php');? >

<? PHP

$currentPage = $_SERVER ['PHP_SELF'];

$maxRows_spec_rx = 10;

$pageNum_spec_rx = 0;

If (isset($_GET['pageNum_spec_rx'])) {}

$pageNum_spec_rx = $_GET ['pageNum_spec_rx'];

}

$startRow_spec_rx = $pageNum_spec_rx * $maxRows_spec_rx;

$colname_spec_rx = "1";

If (isset($_GET['pxID'])) {}

$colname_spec_rx = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

}

@mysql_select_db ($database_testmypms, $testmypms);

$query_spec_rx = sprintf ("SELECT spec_rx.spec_rx_id, spec_rx. FK_px_id, DATE_FORMAT (spec_rx.spec_rx_date, ' % d-% m-% Y') as formatted_rx_date, spec_rx. FK_user_id, spec_rx.spec_rx_rsph, spec_rx.spec_rx_rcyl, spec_rx.spec_rx_raxis, spec_rx.spec_rx_rhprism, spec_rx.spec_rx_rhprismbase, spec_rx.spec_rx_rvprism, spec_rx.spec_rx_rvprismbase, spec_rx.spec_rx_rnadd, spec_rx.spec_rx_rnhprism, spec_rx.spec_rx_rnhprismbase, spec_rx.spec_rx_rnvprism, spec_rx.spec_rx_rnvprismbase, spec_rx.spec_rx_rintadd, spec_rx.spec_rx_rinthprism, spec_rx.spec_rx_rinthprismbase spec_rx.spec_rx_rintvprism, spec_rx.spec_rx_rintvprismbase, spec_rx.spec_rx_lsph, spec_rx.spec_rx_lcyl, spec_rx.spec_rx_laxis, spec_rx.spec_rx_lhprism, spec_rx.spec_rx_lhprismbase, spec_rx.spec_rx_lvprism, spec_rx.spec_rx_lvprismbase, spec_rx.spec_rx_lintadd, spec_rx.spec_rx_linthprism, spec_rx.spec_rx_linthprismbase, spec_rx.spec_rx_lintvprism, spec_rx.spec_rx_lintvprismbase, spec_rx.spec_rx_lnadd, spec_rx.spec_rx_lnhprism spec_rx.spec_rx_lnhprismbase, spec_rx.spec_rx_lnvprism, spec_rx.spec_rx_lnvprismbase, spec_rx.locked, users.user_id, users.user_firstname, users.user_surname FROM spec_rx, users WHERE %s = spec_rx. FK_px_id AND spec_rx. (FK_user_id = users.user_id ORDER BY spec_rx.spec_rx_date DESC, spec_rx.spec_rx_id DESC', $colname_spec_rx);

$query_limit_spec_rx = sprintf ("%s LIMIT %d, %d", $query_spec_rx, $startRow_spec_rx, $maxRows_spec_rx);

$spec_rx = mysql_query ($query_limit_spec_rx, $testmypms) or die (mysql_error ());

$row_spec_rx = mysql_fetch_assoc ($spec_rx);

If (isset($_GET['totalRows_spec_rx'])) {}

$totalRows_spec_rx = $_GET ['totalRows_spec_rx'];

} else {}

$all_spec_rx = mysql_query ($query_spec_rx);

$totalRows_spec_rx = mysql_num_rows ($all_spec_rx);

}

$totalPages_spec_rx = ceil($totalRows_spec_rx/$maxRows_spec_rx)-1;

$colname_demographics = "1";

If (isset($_GET['pxID'])) {}

$colname_demographics = (get_magic_quotes_gpc())? $_GET ['pxID']: addslashes($_GET['pxID']);

}

@mysql_select_db ($database_testmypms, $testmypms);

$query_demographics = sprintf ("SELECT demographics.px_id, demography. FK_title_id, demographics.firstname, demographics.surname, DATE_FORMAT (demographics.dob, ' % d-% m-% Y') as formatted_dob, title.title_id, title.title FROM demographics, title WHERE %s = demographics.px_id AND demography. (FK_title_id = title.title_id", $colname_demographics);

$demographics = mysql_query ($query_demographics, $testmypms) or die (mysql_error ());

$row_demographics = mysql_fetch_assoc ($demographics);

$totalRows_demographics = mysql_num_rows ($demographics);

$queryString_spec_rx = "";

If (! empty($_SERVER['QUERY_STRING'])) {}

$params = explode ("&", $_SERVER ['QUERY_STRING']);

$newParams = array();

{foreach ($params as $param)

If (stristr ($param, "pageNum_spec_rx") == false & &)

stristr ($param, "totalRows_spec_rx") == false) {}

return ($newParams, $param);

}

}

If (count ($newParams)! = 0) {}

$queryString_spec_rx = '& '. htmlentities (implode ("&", $newParams));

}

}

$queryString_spec_rx = sprintf ("& totalRows_spec_rx = %d %s", $totalRows_spec_rx, $queryString_spec_rx);

? >

< ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"

< title > Spec Rx3 < /title >

< script language = "JavaScript" type = "text/JavaScript" >

<!--

function MM_goToURL() {//v3.0

var i, args is MM_goToURL.arguments; document. MM_returnValue = false;

for (i = 0; i <(args.length-1); I += 2) eval(args[i]+".location='"+args[i+1]+"'");

}

->

< /script >

< / head >

< body >

Rx Spec < p > < /p >

< p > <? PHP echo $row_demographics ["px_id"];? > < / p >

< p > <? PHP echo $row_demographics ['title'];? > <? PHP echo $row_demographics ["FirstName"];? > <? PHP echo $row_demographics ['name'];? > <? PHP echo $row_demographics ["formatted_dob"];? > < / p >

< p >

< input name = "Add_spec_rx" type = "button" id = "Add_spec_rx" onClick = "MM_goToURL ('parent', 'add_spec_rx.php'); return document. MM_returnValue' value = 'New Rx' >

< /p >

< p > < a href = "<?" PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, max (0, $pageNum_spec_rx - 1), $queryString_spec_rx);? > "> previous < /a > < a href =" <? PHP printf ("%s? (pageNum_spec_rx = %d %s", $currentPage, min ($totalPages_spec_rx, $pageNum_spec_rx + 1), $queryString_spec_rx);? > "> Next < /a > < /p >"

<? PHP {? >}

< table border = "1" cellspacing = "1" cellpadding = "5" >

< b >

< td > < table >

< td > <? PHP echo $row_spec_rx ["formatted_rx_date"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_id"];? > < table >

< td > locked:

< input <? PHP if (!) ((strcmp($row_spec_rx['locked'],1)))) {echo 'checked' ;}? > name = 'locked' type = "checkbox" id = "locked" value = "1" > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< /tr >

< b >

< td > < table >

SPH < td > < table >

Cyl < td > < table >

Axis of < td > < table >

HPrism < td > < table >

HPrismBase < td > < table >

VPrism < td > < table >

VPrismBase < td > < table >

NrAdd < td > < table >

NrHPrism < td > < table >

NrHPrismBase < td > < table >

NrVPrism < td > < table >

NrVPrismBase < td > < table >

IntAdd < td > < table >

IntHPrism < td > < table >

IntHPrismBase < td > < table >

IntVPrism < td > < table >

IntVPrismBase < td > < table >

< /tr >

< b >

< td > < table > R

< td > <? PHP echo ($row_spec_rx ['spec_rx_rsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rsph']): null;? > < table >

< td > <? PHP echo ($row_spec_rx ['spec_rx_rcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_rcyl']): null;? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_raxis"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rhprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rhprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rvprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rnadd"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rnhprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rnhprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rnvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rnvprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rintadd"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rinthprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rinthprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rintvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_rintvprismbase"];? > < table >

< /tr >

< b >

< td > < table > L

< td > <? PHP echo ($row_spec_rx ['spec_rx_lsph'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lsph']): null;? > < table >

< td > <? PHP echo ($row_spec_rx ['spec_rx_lcyl'] <>null)? sprintf ("%+4.2f", $row_spec_rx ['spec_rx_lcyl']): null;? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_laxis"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lhprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lhprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lvprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lnadd"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lnhprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lnhprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lnvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lnvprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lintadd"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_linthprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_linthprismbase"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lintvprism"];? > < table >

< td > <? PHP echo $row_spec_rx ["spec_rx_lintvprismbase"];? > < table >

< /tr >

< b >

< td > < table >

< td > user ID <? PHP echo $row_spec_rx ['user_id'];? > < table >

< td > <? PHP echo $row_spec_rx ['user_firstname'];? > < table >

< td > <? PHP echo $row_spec_rx ["user_surname"];? > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< td > < table >

< /tr >

< /table >

< p > < / p >

<? PHP} while ($row_spec_rx = mysql_fetch_assoc ($spec_rx));? >

< p > < / p >

< p > < / p >

< p > < / p >

< / body >

< / html >

<? PHP

mysql_free_result ($spec_rx);

mysql_free_result ($Demographics);

? >

barrydocks wrote:

I don't know there must be a more elegant way to do it!

<>

If ($row_spec_rx ['locked'] == 1) {}

echo 'button html goes here ";

}

else {}

echo "something else";

}

?>

Tags: Dreamweaver

Similar Questions

  • How to show/hide point based on the value of Radiogroup

    Hello

    I'm having a Radiogroup with a yes/no value.
    I have something else to say... P1_TEXT1

    I want to show / hide point P1_TEXT1 based on the value selected in the radiogroup.
    If I select Yes - agenda should be displayed
    If I select non - element should be hidden

    I don't want to send the page.


    Thank you
    Deepak

    on your page go to edit page under the attribute of the HTML body of the Page then you need to put the following text:

    onload="MyFunction;"
    

    You must have tobe your function name Myfunction. Pass the item to your function in your code?

    Could you post your code js here and we could have a look for you?

  • Show/hide subform based on the value of digital field

    Hi all


    I created my first form in LiveCycle Designer, but jammed with coding. Any help would be greatly appreciated.

    In the attached form, based on the value of field digital "number Total points" (calculated from the user of entry), I want two things to happen.

    The 'field' text should display different text depending on the points,

    • Less than 10 points is "beginner."
    • 10-14 is "intermediate."

    and just like that...

    If the total number of points is less than 10, 'Course for beginners' and 'Language' DropDownList must appear.

    Is there a way to do this? I tried posting 'If' 'else' statement, but it does not work. I looked in the previous discussions, but cannot find that anything will be based on the numeric value.

    You are looking for assistance.
    R

    The joint responds to your needs. The JavaScript on the TextField1 calculate event anime.

    Form1. #subform [0]. TextField1::calculate - (JavaScript, client)

    If (NumericField1.rawValue! = 0) {}
    If (NumericField1.rawValue< 10)="">
    DropDownList1.presence = "visible";
    DropDownList2.presence = "visible";
    this.rawValue = "beginner."
    }
    else {}
    DropDownList1.presence = 'hidden ';
    DropDownList2.presence = 'hidden ';
    If (NumericField1.rawValue< 15)="">
    this.rawValue = "middle";
    }
    else {}
    this.rawValue = "";
    }
    }
    }

    Steve

  • How to show/hide conditional text on the text selected with the FDK API

    Hello!

    Do you know how to show/hide conditional text in a selected text using the FDK API? I managed to do it on the whole document, but I need to do on specific selected text...

    Thanks in advance,

    Stefano

    Hi Stefano,

    This is not possible, the conditions are the properties of the document and cannot be changed from visible to hidden or v.v. for the full document.

    If you really need a more detailed method, you must create a separate condition for the selected text.

    -Michael

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • Show/hide panelFormLayout based on the current selection of selectOneChoice

    Hey all,.

    I have a relatively basic question, I'm looking for a clear answer.

    I have a layout with the following structure:

    JSP:root

    AF:panelFormLayout

    AF:panelGroupLayout

    -component selectOneChoice

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    AF:panelFormLayout

    AF:panelGroupLayout

    ADF - components

    I'm looking for the easiest way to show/hide the 3 children of panelFormLayout based on what is selected in the selectOneChoice component.  I've hard-coded these values and set their values like "1, 2, 3" respectively.

    I've already tried defining a ValueChangeListener on the selectOneChoice component, but when I run the page and change the value - it doesn't seem to be hitting my method when I select something.

    Any help would be appreciated.

    JDev Version is 11.1.1.7

    Please add autoSubmit true on the selectOneChoice element and try, it will hit valueChangeListener.

    Also, you can set three PFL render property conditionally in your VCL and make a real at the same time.

    Thank you

  • Show/Hide button, based on the user variable

    I have a variable "videoDone" which is set to 1 when the SWF on my Captivate slide is completed.

    My next button is hidden when the slide is displayed (Next hidden if the button videoDone = 0)

    How to make the next visible button without having the user to interact with something on the slide? I want to not visible when videoDone = 1?

    I can make it appear if I add a button to the screen that has a fast action (if videoDone = 1 show Next_button) but I want the next button to simply appear.

    You need an event to trigger an action, and Captivate has no time-based events. It is impossible with the timeline?

    Events / Actions (Advanced) - Captivate blog

  • Can someone tell me how to show/hide multiple layers at the same time?

    Hello

    Can someone show me how to make more than one layer visible or invisible, without having to click on each separate layer? -J' have more than 100 layers in a drawing, and it is very tedious to have to click on each individual layer to hide it or show it. I just started using Photoshop elements 13, on an iMac

    Thanks for any advice.

    You can Option , click on the eye next to the thumbnail icon of the layer to hide all selected layers, but.

    Option , click New to display all layers.

    Order click to change the visibility of the selected layer switch

    To hide multiple layers, select the layers, right-click on one of the eyes, and click hide this layer

    Repeat to repeat the visible layers.

    You can also click on one of the eyes and then drag down or to hide layers and invert to make the visible layers.

  • Show/hide fields based on the user's selection

    I know little of Javascript, but my first attempts to integrate it in Acrobat are bothersome. I have created a simple form where the user via a check box the number of people that he or she must register, then the form shows that several fields to complete. I tried to make it work with a single field, before I add more.

    In this example, I'm trying just to get the second hidden registered field if the user checks only 1 person to register. (I already know that I have issues when it comes to hide several fields).

    If (event.target.value == "0") {}

    this.getField("Registrant2").display = display.hide;

    }

    Given that I do not know what is the value of exports, try this:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    }

    You can add an else clause so that the field is displayed when the check box is not selected:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    } else {}

    this.getField("Registrant2").display = display.visible;

    }

    If this does ' t work, you don't maybe not the correct domain name. Verify that the console (Ctrl + J) to see all JavaScript errors are reported.

  • Show/hide fields based on the drop-down list

    Hello

    I'm trying to show/hide subforms with a drop-down list selection. I found a lot of information on the subject and ended up with what my script:

     form1.Page1.Division::exit - (JavaScript, client)
    
    switch (Page1.Division.rawValue)
    {
       case "1":
       SubformZZI.presence = "visible";
       SubformZZR.presence = "hidden";   
          break;
     
       case "2":
       SubformZZI.presence = "hidden";
       SubformZZR.presence = "visible";       
          break;
    }
    
    

    However, it does nothing when a selection is made in the drop-down list. I have the "SubformZZI" initially defined as 'Visible' and the 'SubformZZR', originally defined as "hidden".

    Any suggestions?

    Kind regards

    ZeroZone

    Check if the form is saved in dynamic form. File-> save as and choose dynamic for the type of shape...

    Other that that, you should check if you have given the values for the selection of the drop-down list as '1' and '2' in the tab of the control's binding.

    Thank you

    Srini

  • show/hide fields based on the drop-down list of choices

    I have a field from the drop-down list with three choices. Based on the selection, I need a specific text form field to appear and the others to stay hidden. (Or if it makes the code cleaner, the resulting field could be a drop-down list, too, with the selected choice.) I don't know Java well enough to extrapolate the code from the examples online and it fit my forms. I can provide an example of form. Thanks in advance for your help.

    There are ways to run this.  the easiest for you would be to add this script to the event (calculation of the Properties tab) to calculate the field that must be hidden.  Take notes, all "/ /" is some tips for you to understand the code.  You will need to put this script in all the areas you want to replicate the behavior, change the value depending on what you want to accomplish.  the word 'event' means myself to make you understand.

    If (this.getField("dropdown").value == 'put value here') {//replace "drop down" with the name of the drops}

    Event.Target.Display = display.visible;

    }

    else {}

    Event.Target.Display = display.hidden;

    }

    This works if you have a small amount of fields.  If you manage to have a large number of similar fields, let me know because there are other, faster ways.

  • How to hide indicators based on the values of the case?

    I'm trying to show some of the indicators only if necessary - the derivative graphic when you test a resistance and the semi-log graph extracted to test a diode.  I'm not too sure that I extracted the characteristic part of the diode with precision.  (The few cases of structure is completely turned off to the right, everything else works.)

    Thank you!

    Here is an example:

    the function of visibility is a simple bool

  • Anyone know the JavaScript to show/hide content based on the country field?

    Hi, I need to display a different number on a site according to the area of the country (com.au or co.nz). I figured out that the module {module_urlcountrycode} can be used to do this with javascript.

    Because I'm not exactly an ACE to js, is there anyone who could share the code?

    See you soon

    Jerun

    Place the module as a class-{module_urcountrycode} country, then you can simply the elements to give their own class and then you see depend on.

    . Country-nz .nzelement {display: block ;}}

    And by default all elements of the country have a class contryelement or something and all hidden by default.

Maybe you are looking for