Berkeley CSUA MOTD:Entry 12465
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2004/3/1-2 [Computer/SW/Languages/Misc] UID:12465 Activity:nil
3/1     I barely, if ever, used Javascript.  Can someone tell me if this is
        possible?  If so, can you either give me a sample of how to write
        "func()" or point to where I can find some samples?  Thanks.

        If I have the following embedded table, can I dynamically replace the
        embedded table with
          nothing (i.e., empty string)
           
          or from a selection of like 3 differently data sets
        when a user selects a different option in the dropdown menu?
        <form ...>
          <select onChange=func()><input>1</input><input>2</input>...</select>
          <table>
            <tr><td>...</td><td>...</td></tr>
            <tr>
              <td>...</td>
              <td>
                <table>
                  <tr><td>...</td><td>...</td></tr>
                  <tr><td>...</td><td>...</td></tr>
                  ...
                </table>
            <tr><td>...</td><td>...</td></tr>
          </table>
        </form>
        \_ Rather than removing it, you might consider simply hiding it with
           CSS (though removing it is possible):
           <table id="showMeAtFirst">...</table>
           <a href="#" onclick="swapVis('showMeAtFirst')">Show/Hide</a>
           <script>
             function swapVis(id) {
                if (document.getElementById(id).style.display == 'block') {
                  document.getElementById(id).style.display = 'none';
                } else {
                  document.getElementById(id).style.display = 'block';
                }
             }
           </script>
        \_ Pretty cool--this actually shows up as intended on soda's finger
           cgi.  -John
2025/07/09 [General] UID:1000 Activity:popular
7/9     

You may also be interested in these entries...
2010/12/11-2011/2/19 [Computer/SW/Languages/Perl] UID:53984 Activity:nil
12/11   Anyone have experience with Perl PDF::API2 or PDF::API3?  Can you
        point me to a good tutorial for creating a simple document (a small
        table of 2-3 rows and a single image)?
	...
2010/7/21-8/9 [Computer/SW/OS/FreeBSD] UID:53890 Activity:nil
7/21    Can I just use ifconfig to expand my netmask on a FreeBSD box?
        Are there any gotchas here? Linux forces me to restart my network
        to expand my netmask.
        \_ yes... and no, you don't have to restart your network on linux either
           \_ Rebooting is the Ubootntoo way!
              \_ Oooboot'n'tootin!
	...