Jump to content

masteroleary

Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

masteroleary's Achievements

Member

Member (2/5)

0

Reputation

  1. I am marking this post as solved since the original problem has been corrected. This new problem will be made into a new post.
  2. If you look at matthew-oleary.com you can see how everything fills the page 100% vertically. This is the table layout. If you look at matthew-oleary.com/index2.php you will find the css layout. The problem is that the center row div (#content) of the second column (#mainbar) is set to 100% but expands the whole second column past the bottom of the page, creating a scroll bar. What i've failed to accompish is getting the height of the #mainbar area to expand no less than the bottom of the window, and expand taller if needed to display more content. Unfortunately using css for layout is still new to me. I am trying not to use tables.
  3. Well I am trying to convert the layout from tables to purely css but am having a little trouble. Your suggest worked sound. Thanks a lot. This whole conversion what quite a learning experience. I am so comfortable with tables I never bothers using css for layout before. If you look at matthew-oleary.com you can see how everything fills the page 100% vertically. This is the table layout. If you look at matthew-oleary.com/index2.php you will find the css layout. The problem is that the center row div (#content) of the second column (#mainbar) is set to 100% but expands the whole second column past the bottom of the page, creating a scroll bar. I would like the center row to only expand enough to fill the page. Any Ideas?
  4. I have scoured the net and am unable to find a solution without ridding my self of tables. I have a table that is divided into two columns. Within each cell there are div tags used specifically for placing an image in the bottom left and right corners of the content area. I can't delete the table and I need the divs for that reason. The problem I am having is that the height of the div is not filling the cell, leaving one column looking shorter that the other. If the divs werent used to place images at the very bottom of the column I would simply set the table bg color but that's not the case. The divs need to expand 100% within the cell so that both columns bg color a flush with each other and the bottom corner images align. See my site here: http://matthew-oleary.com and the css here: http://matthew-oleary.com/Library/CSS/main.css Here are the areas of interest: <table width="100%" border="0" cellpadding="0" cellspacing="6" id="servicetable"> <tr> <td width="50%" valign="top"><div class="cell"> <div> <hr /> <h1> { <span class="lightbrown">my</span><span class="darkbrown">Training</span> }</h1> <hr /> <p>I am a master of the things I love. I read 1000 page technical manuals to ensure I know every trick of trade. I attend training seminars and conferences to keep myself current on the latest software and internet marketing techniques. I am passionate about art, graphics, web design and programming. Because of this I am always studying new technologies so that I can build, create and design without being at the mercy of another.</p> <hr /> <h1> { <span class="lightbrown">my</span><span class="darkbrown">Conviction</span> }</h1> <hr /> <p>I am a strong believer that local businesses should support each other before those far and foreign if plausible. I also believe that it is the responsibility of these businesses to take on some form of community service to ensure the well being of our neighbors.</p> <p>My personal charity of choice is the Galaxy of Resources, an annual free conference that attracts hundreds of people in need of aid and information for their own disability or the disabilities of a loved one. You can visit them at <a href="http://www.galaxyofresources-brevard.org" target="_blank">galaxyofresources-brevard.org</a>.<br /><br /> </p> <p></p> </div> </div></td> <td colspan="2" valign="top"><div class="cell"> <div> <hr /> <h1> { <span class="lightbrown">expect</span><span class="darkbrown">More</span> }</h1> <hr /> <p>When making an agreement with a client it is important to state exactly what work will be done and for what price, no assumptions. When everything goes smoothly and I know my clients are impressed with the work I've done I sleep that much easier. I never promise what I can't and I always tell it how it is.</p> <p>When working with me expect only the best. Over the last few years I have worked with several talented writers, photographers, programmers, videographers and designers. I have built a network of talent that supports me where I fall short. I don't claim to know everything (although I have mastered many fields) and should you need something you don't see here simply ask. I will introduce you to someone who can meet your needs and more.</p> <hr /> <h1> { <span class="lightbrown">real</span><span class="darkbrown">Pricing</span> }</h1> <hr /> <p> Every project is unique and needs to be quoted accordingly. I evaluate each project depending on the work being done, the cost of the materials and the time it takes to complete. You will never be over charged by set pricing brackets and will always get what you pay for.</p> </div> </div></td> </tr> </table> Css: .cell { background-color: #DADDD2; border: 1px solid #333333; background-image: url(../Images/tab.jpg); background-position: left bottom; background-repeat: no-repeat; margin: 0px; padding: 0px; } .cell div { background-image: url(../Images/tab2.jpg); background-position: right bottom; background-repeat: no-repeat; padding-top: 0px; padding-right: 5px; padding-bottom: 25px; padding-left: 5px; }
  5. Ok guys, I really need help here. I put this new code together but it doesn't work. Can someone please help and tell me what is incorrect? ??? <script language="JavaScript" type="text/javascript"> <!-- var rowtr = document.createElement('tr'); var rowtd = document.createElement('td'); var innerhtml = document.createTextNode('Sibshop Topic You Would Like Discussed<br /><input name="topic" type="text" size="70" maxlength="60" />'); rowtr.setAttribute('id', 'extra'); rowtr.appendChild(rowtd); rowtd.appendChild(innerhtml); function sibshop(what) { var table = document.getElementById('formtable'); alert(table); if (what.value == 'Sibshop') { insertBefore(rowtr, table.childNodes[3]); } else { row = document.getElementById('extra'); table.removeChild(row); } } //--> </script> <table id="formtable" name="formtable" width="100%" cellspacing="10" class="box"> <tr> <td><h2> Children participating in Sibshop </h2></td> </tr> <tr> <td>Name <input name="name" type="text" id="name" size="30" maxlength="30" /> DOB <input name="bday" type="text" id="bday" value="00/00/00" size="5" maxlength="8" /></td> </tr> <tr> <td>Age <input name="age" type="text" id="age" size="4" maxlength="2" /> Grade <input name="grade" type="text" id="grade" size="4" maxlength="2" /> <select name="gender" id="gender"> <option value="Male" selected="selected">Male</option> <option value="Female">Female</option> </select> <select name="station" id="station" onChange="sibshop(this);"> <option value="Sibshop">Sibshop</option> <option value="Childcare">Childcare</option> </select></td> </tr> <tr> <td> Disability/Illness <br /> <input name="disability" type="text" id="disability" size="70" maxlength="70" /></td> </tr> <tr> <td valign="top">Special Needs/ Notes<br /> <textarea name="notes" cols="53" rows="3"></textarea></td> </tr> </table>
  6. The code below removes the contents of the row 'extra' and adds them again when the form select element 'station' changes. Because I am only removing a td and not the tr there is extra space. How would you modify this to remove and add the tr tag instead? <script language="JavaScript" type="text/javascript"> <!-- var topicfield; function sibshop(object) { var div1 = document.getElementById('extra'); if(object.value == 'Sibshop') { div1.innerHTML = topicfield; } else { topicfield = div1.innerHTML; div1.innerHTML = ''; } } //--> </script> <table id="formtable" name="formtable" width="100%" cellspacing="10" class="box"> <tr> <td><h2> Children participating in Sibshop </h2></td> </tr> <tr> <td>Name <input name="name" type="text" id="name" size="30" maxlength="30" /> DOB <input name="bday" type="text" id="bday" value="00/00/00" size="5" maxlength="8" /></td> </tr> <tr> <td>Age <input name="age" type="text" id="age" size="4" maxlength="2" /> Grade <input name="grade" type="text" id="grade" size="4" maxlength="2" /> <select name="gender" id="gender"> <option value="Male" selected="selected">Male</option> <option value="Female">Female</option> </select> <select name="station" id="station" onChange="sibshop(this);"> <option value="Sibshop">Sibshop</option> <option value="Childcare">Childcare</option> </select></td> </tr> <tr id="extra" name="extra"> <td>Sibshop Topic You Would Like Discussed<br /> <input name="topic" type="text" size="70" maxlength="60" /></td> </tr> <tr> <td> Disability/Illness <br /> <input name="disability" type="text" id="disability" size="70" maxlength="70" /></td> </tr> <tr> <td valign="top">Special Needs/ Notes<br /> <textarea name="notes" cols="53" rows="3"></textarea></td> </tr> </table>
  7. Well Thanks for the immediate post, especially telling me about the validator, theres a tool I cant believe Ive been living without. I changed two things and then the site appeared in IE. After validating the page I found the my script tag which I normally write like this <script type="text/JavaScript"> <!-- //--> </script> was missing the closing comment //--> Also, I forgot to ad a slash before ending my param tags <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="120" height="600"> <param name="movie" value="Library/banners/template.swf" /> <param name="quality" value="high" /> <embed src="Library/banners/template.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="600"></embed> </object> Thanks again everyone.
  8. http://galaxyofresources-brevard.org/v2/www/ I can't figure out why IE 6 only show white when I try to load this site and firefox is fine. Can someone look at it for me and see if they notice something I don't. Anyone had this problem before? I appreciate any help and ideas
  9. Input from form element: "This is Amelia's Description!" <span style="font-weight: bold;">Hello, World!</span> Page to test input: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php function filter_Desc($string) { $string = strip_tags($string, '<b><strong><i><em><br><br /><p><span>'); $string = preg_replace_callback("/(?<=>)([^<]+)/", create_function('$matches', 'return htmlspecialchars($matches[0], ENT_NOQUOTES)') , $string); $string = eregi_replace('<', '[', $string); $string = eregi_replace('>', ']', $string); $string = trim($string); return $string; } if($_POST['text']) { echo "What you submitted: " . $_POST['text']; echo "What was left: " . filter_Desc($_POST['text']); } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <input name="text" type="text" /> <input name="submit" type="submit" /> </form> </body> </html> Error im getting: What you submitted: \"This is Amelia\'s Description!\" Hello, World! Parse error: parse error, unexpected '}' in C:\WORK FOLDER\Websites\Mabos3-New\test.php(15) : runtime-created function on line 1 Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, '', to be a valid callback in C:\WORK FOLDER\Websites\Mabos3-New\test.php on line 16 What was left: \"This is Amelia\'s Description!\" [span style=\"font-weight: bold;\"]Hello, World![/span] Two problems. First I dont understand the error. I dont see a '}' on that line. Second, my html tags are being removed: \"This is Amelia\'s Description!\" Hello, World! Maybe when I can figure out error one number two will go away.. maybe
  10. I need to convert: "This is Amelia's Description!" <span style="font-weight: bold;">Hello, World!</span> into: "This is Amelia\'s Description!" <span style="font-weight: bold;">Hello, World!</span> only modifying single and double quotes outsite of the html tag carats This is what I have so far: function filter_Desc($string) { $string = strip_tags($string, '<b><strong><i><em><br><br /><p><span>'); $string = eregi_replace('<', '[', $string); $string = eregi_replace('>', ']', $string); $string = htmlspecialchars($string, ENT_NOQUOTES); $string = trim($string); $string = addslashes($string); return $string; } But obviously the problem with this is that it affects the double quotes within the html tags.
  11. Havent gotten a reply. Last time that happened I tried to do something mysql couldnt. Is this the case now?
  12. My goal is to select rows from two tables 'shoot' & 'video' and have mysql order those tables by date and limit the number of rows returned. I want to list the latest 10 rows but am uncertain how many rows from each table will be the latest. I may have more recent shoots than videos or the opposite. How can I use a single ORDER BY and LIMIT statement for both selections? This is the code I used last which may or may not be anywhere near the direction I need to go. SELECT id, name, description, directory, date FROM shoot LIMIT 3 UNION ( SELECT id, name, description, filename, date FROM video ) ORDER BY date LIMIT 0 , 30
  13. So if i have this i would say 'SELECT site.name FROM site JOIN shoot_site ON shoot_site.site_id = site.id JOIN model_shoot ON model_shoot.shoot_id = shoot_site.shoot_id WHERE model_shoot.model_id = 1' ?? and i should get two rows with names for site 1 & 2? Table model_shoot id model_id shoot_id 1 1 4 2 1 5 3 2 1 Table shoot_site id shoot_id site_id 1 4 1 2 4 2 3 5 2
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.