Salem commented: Nicely put +26
Heehee
544. *quick counting*
Well, your javascript function actually adds a new div with a table inside it each time you click on the "Add". For example, clicking on the add link 3 times gives me this code:
<table style="width: 100%;" id="theT" border="1">
<tbody><tr>
<td><div id="content" style="border: 1px solid ; width: 268px;"><div id="strText1"><table border="1"><tbody><tr><td>Memory 1: <input id="Memory 1" name="memory_size1" type="text"></td><td><input id="Memory 1" name="memory_size1" type="text"></td></tr></tbody></table></div><div id="strText2"><table border="1"><tbody><tr><td>Memory 2: <input id="Memory 2" name="memory_size2" type="text"></td><td><input id="Memory 2" name="memory_size2" type="text"></td></tr></tbody></table></div><div id="strText3"><table border="1"><tbody><tr><td>Memory 3: <input id="Memory 3" name="memory_size3" type="text"></td><td><input id="Memory 3" name="memory_size3" type="text"></td></tr></tbody></table></div></div></td>
<td></td>
</tr>
</tbody></table>
Here is a crude example of a different way to do it (using insertCell and insertRow). It's self-explanatory and I'm sure you can figure out how to use it to make two columns per row. =)
<html>
<head>
<title>Adding and Removing Text Boxes Dynamically</title>
<script type = "text/javascript">
var rownum = 0;
var colnum = 0;
function addElement2(){
rownum = rownum + 1;
var newRow = document.getElementById('theT').insertRow(rownum);
var newCol = newRow.insertCell(colnum);
newRow.setAttribute('id', 'row'+rownum);
newCol.setAttribute('id', 'row'+rownum+'col'+colnum);
}
</script>
</head>
<body>
<p>Demo of Adding and Removing Text Box Dynamically using JavaScript</p>
<form method="post" action="php/admin_adddesktop1.php">
<p><a onclick="addElement2();">Add</a><br /><a onclick="removeElement();">Remove</a>
<table style="width: 100%" border="1" id="theT">
<tr>
<td><div id="content" style="width: 268px; border: 1px solid;"></div></td>
<td></td>
</tr>
</table>
</p>
<input name="Submit1" type="submit" value="submit"></form>
</body>
</html>
My... preciousssss...
- Gollum (aka Smeagol)
There's a reason stupid rhymes with Cupid.
The display looks the same for me (with or without the scrollbar). I'm using Firefox 3.
I want to play again! XD
An advice from somewhere:
Ask your clients or 'target' clients what they think your work is worth.
- You'd be surprised at how much they value your talent!
If they quoted something smaller and you're actually 'shocked' / 'offended' / 'abhorred!' at the offer, then at least you know what your work ISN'T worth. (Or at least you get the idea of 'minimum' for yourself)
Or you can always browse the job postings at, say webdesignerwall.com, and see how much the companies there are offering for their 'hirees'.
Do not look at 'bidding' job sites because the bidding makes the work dirt-cheap, but they aren't necessarily up to par. And since your confident that your work is good, don't base your rates on the bidding-prices.
Actually, the watermark on the quick reply window has an erratic behavior. Sometimes it disappears as soon as I click on the textarea, sometimes it changes after I've typed quite a lot of text.
As for the hosting, I think you need a server/host with PHP because you have a lot of content and I couldn't imagine how you manage to update all of them. =(
I just feel you can do better. My sub-site is hosted for free by someone. (Not a corporate free host) It has all the perks of a 'paid' hosting except it isn't paid.
Typography layouts (the well-done ones) might be the best examples of what midimagic wants us to see. They call attention to headings and important parts of the page through contrast (relative size, darker or lighter colors) and not images or flash effects.
I still think that there are some rules that can be bent if you're designing for a specific audience. (Like a site showcasing the latest model of a car --- usually for men and their "eye-candy") Watermarks can be useful for copyright-ing things (like in stock photo galleries), etc.
BTW, whoever said that midimagic's site content was good... is right. =) I've been reading through it but with all that stuff I think it'll take weeks.
I also think midimagic's site content would have gotten more attention if it was published in wordpress (even a minimalist layout/theme would work) instead of geocities... =(
Mr. Midimagic, show your content some love! =p
Everyday all this thread does is get spammed with ads for porn, maybe it should just be locked?
Yes. Nothing like the theory of relativity to invite spam. XD (I don't know why this happens either...)
What if Einstein was a programmer, maybe he can solve this by programming
But then a programmer also needs the hardware to generate that much energy or do whatever it is the program does on a 'physical' level. Even wifi is sent on "wave" signals and even CPUs need a 'motherboard'... and computers need a power supply.
Maybe Einstein and McGyver (macgyver? mc gyver..?) can do it together. With Kenny (southpark) as the test subject.
Maybe if I knew what they were. =)
Have you participated in the 'controversial' time-travel thread at daniweb?
Since our team is so good at it (hehe) why not start at 1000 and count back to 0? Let's make 0 our new goal and let team B have 1500 instead?
CSS inheritance works (more or less) in this way:
- checks your main (ie the a:link)
- checks the specific a:hover
- checks inline style
Your external CSS is correct in that it has text-decoration: underline
in the a: tags BUT when it comes to rendering, the final say comes from this line of code in your html:
<a href="http://www.yahoo.com" [B]style="text-decoration:none"[/B]><b><font color="#FFFFFF">:: HENRY'S :: </font></b></a>
No matter what you specify in your external stylesheet, the inline CSS you use in your HTML will effectively overwrite everything else.
So remove that offending line in your HTML, and you'll be fine.
Probably because the dates stored in your actual database are just that. Dates. (ie January 4, 2008; December 16, 1908; etc)
The dashes(-) you see when you retrieve results (ie SELECT date FROM tablename) are just 'formatting' or presentational characters. The same way you see pipes (|) in between columns. They aren't really part of the 'data' that gets stored in the column.
So a wildcard search for '%-%' wouldn't return anything significant. The same way searching for a pipe '%|%' in a column wouldn't return all rows.
(That's just a guess. I'm 90% sure about it)
This was actually a solution to making divs behave like a table-cell (for those of us who were used to the early-table-like-layouts).
I find them useful for making divs extend all the way down. Because divs with floated elements inside do not display all the way down... so the image floated to the right doesn't really make the 'holding box' display up to the bottom of the image. And the solution is to display it as a table-cell.
There are also table-row and table-column display values available, but they aren't rendered (or they do not affect the display). I think they're just for grouping purposes.
I got this tip from the Sitepoint newsletter by the way. =0
(sorry for the incoherence; got no time to edit)
NOOOOOOOOOO!!!!!!!!
I wasn't able to participate in the final stretch... *cries*
- Do not use 0px (or any other unit of measure with 0). Firefox throws away the style if it has this. Just put a 0 for zero values.
Now I'm confused. I've seen someone somewhere in Daniweb say that even if the value is zero, I had to specify if it's px, pt, em etc.
Which is confusing me. Anyway, I've been doing with a plain 0. I just wanted some clarifications... =)
I'm not sure if you'll like this, but a display: table-cell;
attribute-value in your image's block should do the trick (this also works for backgrounds that won't show because the holding block 'collapses' if it's contents are floated.... I hope I'm making sense. Anyway, here is the whole code, with slight modifications:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>UFO does not mean ET</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css">
.cenx {text-align: center;}
.ceni {clear: both;}
.bxfix {margin: 0; border: none; padding: 0;}
.wfl {width: 100%;}
.hi {margin: 24pt 0;}
.fixim {height: 100%; float: right;}
img {padding: 12px;}
body {background-color: #ffeecc; padding: 5%; font-family: sans-serif;}
table {background-color: #ffffff; vertical-align: top; border: solid 1px #000088;}
th {background-color: #eeffe0; vertical-align: top; border: solid 1px #000088; padding: 4px;}
td {background-color: #ffffff; vertical-align: top; border: solid 1px #000088; padding: 0 4px; font-size: smaller;}
#uppertext
{
display: table-cell;
}
</style>
</head>
<body>
<h1 class="cenx">"UFO" does not mean "ET"</h1>
<div class="hi wfl" id="uppertext">
<img src="podium.jpg" alt="podium def" class="fixim" />
<p>People call many things by the wrong names. Here is a list of objects erroneously given the wrong
names by people who do not know better, and the correct names for them:</p>
</div>
<div class="hi wfl">
<table class="wfl" cellspacing="0">
<tr><th>THE CONFUSED WORD</th><th>WHAT IT REALLY MEANS</th><th>THE ERRONEOUS USE</th><th>THE CORRECT WORD TO USE</th></tr>
<tr><td>Podium</td><td>The box an orator stands on<br />(It elevates him higher.)</td><td>The stand in front of an orator</td><td>Lectern or pulpit</td></tr>
<tr><td>Theory</td><td>A proposal about how things happen<br />(Not …
Jakob Nielsen's website isn't exactly pretty... *sigh*
Yes, and we're asking for the html code. Not the php. =)
To the author: Let me explain why people are NOT agreeing with this thread.
Your arguments are not making ANY sense. You reason in a roundabout way such as:
- Come on everyone, just because no one was able to do it, doesn't mean it's impossible
- You never know what the next technology would bring
- Isaac Newton discovered gravity because he believed in it
When in fact, you started this thread with the question: is time travel possible through the use of programming? --- something which you haven't answered satisfactorily yourself.
After every post you give, I'm getting the idea that you don't know ENOUGH about the ToR (or even understand whatever it is you know) to make any good supporting arguments.
This is why I keep coming back here... to check if you finally read something useful regarding ToR. Or if you ran your ideas through your physics teacher at least.
*waits*
Nope. Still no difference.
Who would ever thought that cars could be invented? Who would ever thought that cellphones could be invented? Who would ever thought that Computers could be invented? Who would ever thought that airplanes could be invented?
At the age where knowledge is still developing many many years has passed, who would have thought that these technologies would come as we could see them and use there usefulness right now...We didn't expect that technology would grow as big as this. Now, how could you say that time travel is impossible?
Eh. You are driving me nuts. What is your point, really? You asked if it was possible to "travel through time with the use of programming". And yet, you can't seem to postulate anything else except that "we never know what's going to happen".
Have you read articles on Einstein's ToR? As in honestly read, understood it, or taken it up in class? Because if you did, you'd see that most of what we're saying makes more sense than the "you-never-know" argument. And faith. Honestly. I'm a Christian too but if we're going to reason here saying God can do anything, then what's the point of starting this thread?
BTW. God can do anything but programmers are not God. And you asked "Is it possible to build a time machine through the use of programming?" --- and don't even say that God can work through a programmer to make time-travel possible. Because if that happened, it's God who made …
Nope.
Do you know who Dorothea Puente is?
LOL
Well, it was definitely a shocker. Thanks for the answer, everyone. :D
haha. lol yeh well, whatever! I can't seem to get past it.
Myself included. ccube, midimagic, roryt, and me are probably the most active people when the 'discussion' is about intense graphics vs accessibility standards.
(Sorry for hi-jacking your thread vandenzergen --- finally got his name right)
Perhaps a 'scrap' of code that can be copy pasted directly (with head, body, etc). Cfa probably wanted to help you, but you should also help us help you (if that makes any sense). After all, unlike you, we're not being paid to do this.
There's also no call for that language/possessiveness over the HTML code... HTML and CSS code are viewable by anyone as long as the site goes live. :D If it were PHP, that would have been different.
Anyway, have you looked at my previous post? Isn't that what you wanted to do (with less div tags)? Make use of labels, they can also be floated, assigned their own 'block' but are more 'semantically' correct for labeling your fields.
For those who want to help out too but can't be bothered to copy, paste, AND edit the code he provided, here's my caveman-html version. Copy-paste directly.
<html>
<head>
<title></title>
<style>
.b {width: 99%; }
.l {width:30%; float:left; text-align:right; margin-right:10px;}
.r {width:30%; float:right; text-align:left; margin-left:10px;}
</style>
</head>
<body>
<div class='b'>
<div class='l'>Prompt for input 1</div>
<input name='1' type='text'></div>
<div class='b'>
<div class='l'>Prompt for input 2</div>
<input name='1' type='radio' value='yes'>Yes <input name='1' type='radio' value='no' checked>No </div>
<div class='b'>
<div class='l'>Prompt for input 3</div>
<input name='3' type='password'></div>
<div class='b'>
<div class='l'>Prompt for input 4</div>
<textarea cols=60 rows=10 name='4'></textarea></div>
<div class='b'>
<div class='l'>Prompt for input 5</div>
<input name='5' type='radio' value='yes' checked>Yes <input name='5' type='radio' value='no'>No </div>
<div class='b'>
<div class='l'>Prompt for input 6</div> …
Aaah... I see the same people active at the accessibility thing and art(not) thing again. :p
I think vander...something's original question was how to design navigation using photoshop. He meant to use that navigation for his site. He didn't exactly say he'd make the entire site from photoshop and cut the images and be a tables-based site with no alt tags *shudders*, right?
For vandergezen (eh, sorry about the name), you can follow the tutorial marathon at talkmania if only to get ideas on color-schemes and different layout/site interface.
If you're just looking for inspiration, you can subscribe to smashingmagazine's RSS feed. I actually visit the design showcase archive regularly. They feature things from effective favicons, innovative blog layouts, minimalist designs (probably the only thing in my post midimagic will approve :p), and web form design (among others).
So have at it! Quick! I shall hold these raving graphics fans and non-fans at bay while you read those articles!
No. It is not possible to build a time machine through programming... That is the answer to your question. :D
Einstein's theory of relativity talked about traveling at speeds 0.9 or 0.99 that of light. It pertains to huge gravitational fields. It talks about large amounts of energy. It does not say anything about programming at the speed of light. It does not say anything about the difficulty of programming such phenomena.
Programming has less bounds than physical space because we can create fictional things: 3D objects, interfaces, applications, etc. We are not limited by mechanical problems or physical problems such as traveling at 0.9c (where c = speed of light), or the problem of going back in time and accidentally killing your grandmother.
Did you know that traveling at that speed will make you so heavy you'll probably implode and reach a different time in dust-form. :p
Perhaps you are confused by the programmer's obsession with coffee (in his overnight coding stints) in his attempts to slow-down time and the coming of the inevitable deadline.
I doubt that your call to "all programmers" to drink huge amounts of coffee would cause a time-stop. But starbucks would have loved for that to happen. :D
I actually can't name anything else at the top of my mind. hehehe
I was hoping to distract him with my ninja skills into making valuable content so that people who happen to visit his site will stay (and hopefully sign-up). Otherwise what's the point of popularity?
Hallu!
It's my first time to give someone a 'bad' reputation. I just thought it was weird to receive an alert that says "May you receive the same reputation in return."
THAT's something I don't want to happen. Right? :D
I would be interested in seeing what mainstream websites meet your criteria?
Perhaps Google (homepage). :D
What about graphics/portfolio sites? Surely, the target audience does not include the 'disabled'?
Some visual learning disabilities (including dyslexia) cause text placed on top of graphics to become unreadable. This also includes the text on watermark text in the submission window used to post this.
I thought the watermark disappears when we start typing?
Don't get me wrong, midi, I'm not trying to antagonize you. It's just that these rules seem too limiting... Like "Thou shalt not use rotating banners." etc. and as roryt said, there should be some sort of compromise (specially if you have a different target audience).
Very good, Genry! :D
Gargle, rinse, repeat.
According to my googling skills, there IS an option to 'sell' or transfer domains at godaddy itself (themselves?)
adamthegreat has probably figured it out already... :D
In that case yes they are a block level element, HOWEVER the way the <li> tag is used on this site it is inline, so they all display along one line: in this case you cannot set the width.
....
....
....You can see I have set the width of the tags displaying inline to 100000000px and it makes no difference at all.
If you can prove me wrong, i would actually be quite happy because it has caused me an annoyance for a very long time.
Hope that clears it up.
What about inline-blocks? Will they work?
basically, but it would be nowhere near as complicated. just a when someone logs in to my site it will take them to their page and basically they can post blogs, people can be friends, comments, a picture and just the basic info about the person.
Eep. That isn't very basic. But this is cool, I'm trying to learn how to do it too... :)
Once you've set-up a local test server (the xampp or wamp that buddylee mentioned), there is a thread with complete code on how to make a login or member system using php and a mySQL database here at daniweb. :)
Try following that tutorial (the 3rd or 4th post) and posting for help when you're stuck at some part.
I read a convincing article that justifies using tables for forms... because they are still 'tabular' info. (2 columns: col1 is field title, col2 is input field)
But if you really want to, you can avoid having to use by setting each label and input to display as a block or inline-block
and assigning a padding and margin for them.
Or save this caveman-CSS I whipped up for ya and preview it:
div#form
{
background: #000;
width: 20.0em;
COLOR: #666;
}
label
{
line-height: 1.0em;
background: #E0E0E0;
margin: 0.5em 1.0em;
width: 8.0em;
display: inline-block;
clear: left;
vertical-align: top;
}
input, select, textarea
{
margin: 0.5em 1.0em;
width: 8.0em;
display: inline-block;
clear: right;
}
Here is a very-short html code to match
<html>
<head>
<title>FORM</title>
<link rel="stylesheet" type="text/css" href="form-block.css" />
</head>
<body>
<div id="form">
<label>Field1</label><input type="text" />
<label>Field2</label><input type="text" />
<label>Textfield</label><textarea></textarea>
<label>Dropdown</label><select><option>1</option><option>2</option><option>3</option><option>4</option>
</div>
</body>
</html>
The background color is to show how the elements are placed in their own 'boxes'. The margin or padding applied to the labels and input fields eliminates the need to add 's.
heehee... just kidding
Try Digg. But I strongly suggest preparing your content first... :(
You posted the problem. :( Not your solution so far... I can't see where you went wrong if you didn't post your work.
*looks at previous post* I'm sure that's not what Dumbledore meant...
oddities.
Love it. :D
Breathing?
UPDATE:
Ay... for some reason, they disabled the id attribute for span and cite tags. But using a div tag should work.
For those who have the same problem, use this:
<p>Blah blah blah, this is going to be a long post so you can <a href="#endcrap">skip the crap</a> and avoid a lot of...
...
...
*very long text here*
...
...
<div id="endcrap">Still reading? Good.</div> blah blah blah again.
you can try submitting your site to popular social bookmarking sites to generate traffic
I thought SEO was about prepping your site's content so that it will figure 'highly' or be 'significant' in search engine results?
*by prepping I meant, using descriptive page/post titles, having an organized content structure, etc.
Hello guys!!! who can help me to solve my problem in javascript program??? I am a 2nd Computer Programming student.. But it is hard for me to do this problem....please!!!help me to do this......thanks guys i need it tomorrow......
Hallu! I'm a 1st ComSci student! LOL just kidding... but seriously,
Maybe you should post the code you have done so far so we can see where things went wrong.
If you haven't started yet, I suggest you try starting the homework now and asking for help when you're stuck.