Jump to content

bigsilk

Members
  • Content Count

    104
  • Joined

  • Last visited

Community Reputation

0 Neutral

About bigsilk

  • Rank
    Member
  1. I got a good solution from someone at stackoverflow.com: var things = ['attorney', 'insurance', 'financial', 'estate', 'trust', 'death']; var guide = {t1: 'attorney', t2: 'insurance', t3: 'financial', t4: 'estate', t5: 'trust', t6: 'death'}; $('#t1, #t2, #t3, #t4, #t5, #t6').click(function() { var clicked = $(this).attr('id'); $.each(things, function(_, thing) { var $thing = $('#' + thing); if (guide[clicked] == thing) $thing.show(); else $thing.hide(); }); }); Amazing how one job can be accomplished in so many ways...
  2. Works fine in Safari. However, while the image is yellow, the combo box shows 'Black' on load.
  3. Am working on a site that requires replacing data in <div class="foo"> that has <div id="foo_1"> ... <div id="foo_6">, where these divs have different data.So, here's what I've got: $('#t1').click(function() { $('#attorney').show(); $('#insurance,#financial,#estate,#trust,#death').hide(); }); $('#t2').click(function() { $('#insurance').show(); $('#attorney,#financial,#estate,#trust,#death').hide(); }); $('#t3').click(function() { $('#financial').show(); $('#attorney,#insurance,#estate,#trust,#death').hide(); }); $('#t4').click(function() { $('#estate').show(); $('#
  4. I concur entirely. Absolute positioning will eventually bite you in the turdpucker, especially in different browsers.Add:.contentbox { background-color: #4E412D; height: 50px; width: 200px; margin-top: 20px; float:left; }Ooh, look! I just became a member!
  5. I'm trying to get a reaction from a radio button choice: If a person chooses 'Single', nothing happens. If they choose 'Married', an input box appears to allow them to enter their spouse's name. <html><head><script type="text/javascript"> { document.getElementById("answer"); } if (value = married) { document.write("Spouse's Full Name: <input type="text" size="20">"); }</script></head><body><form>Your Marital Status: <input type="radio" name="answer" onclick="check(this.value)" value="single">Single<input type="radio" name="answ
  6. I'm using phphMyAdmin, and no, neither of those, yet. I'm really just getting into php and MySQL and am taking small, incremental steps towards creating a robust, safe db. As for display entries, couldn't I just:<?php$con = mysql_connect("localhost","peter","abc123");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("my_db", $con);$result = mysql_query("SELECT * FROM Persons");while($row = mysql_fetch_array($result)) { echo $row['FirstName'] . " " . $row['LastName']; echo "<br />"; }mysql_close($con);?> As for deletion, not all records were dups. It
  7. I haven't created the UPDATE form, yet. Only a form to return a record associated with a username and a form to insert a new record. I'm trying to wrap my head around validation right now.I deleted the duplicate records. I'll keep trying to duplicate the error and see what I did to make it happen.Stay tuned...A
  8. I have a db that's supposed to have 236 records in it. For some odd reason, it suddenly has 634 and most of them are duplicates. It's as though the table is replicating itself and appending itself to the beginning of that table. I know it's the beginning because the first four hundred or so don't have the password included in any of the fields and it's not on my input form, yet. Here's my form to retrieve records from a query based on a username: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html xmlns="http://www.w3.org/1999/x
  9. First, go to:Visit This PageEnter 'user1' for the User name. Don't worry about the password. Hit the Search button.On the next page, notice how the labels for the <textarea> are located at the bottom-left of the boxes. I want them to be top-left.
  10. Odd (loosely used) that it would not work in 8. 6 I can dig. I use a separate CSS for 6. Are you using the developer tools (F12) in 8 and setting it to view in 7 plain and quirks mode?
  11. I've several <textarea> on a page, and they are aligned to the bottom-left of the text area. I want them aligned to the top-left.
  12. NO TABLES!Have you tried floating everything left? float:left;
  13. Actually, it'sdb=bigsilkd_attorneystable=attorneyscolumn=usersIt works now...
×
×
  • Create New...