Jump to content

KevinM1

Moderators
  • Posts

    5,222
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by KevinM1

  1. Well, what does errorDisplay do?
  2. A constructor still needs the 'function' keyword before it, as in: function __construct() {}
  3. You're moving in the right direction. Some thoughts: You should lighten up the green color a bit. I don't know if it's the same for other people, but the links are hard to read with the black text on the green background. I'm not a fan of the font in general. Some of the letters (like 'M') just look odd to me. It's probably adding to my readability issues. You should add some styling to your content. Unformatted text and unordered lists just look lazy. You need to streamline it a bit. Still, miles above what you originally had. Keep it up.
  4. I never said that CS and SE are the same thing. Rather, I said that many universities don't make a distinction. The university I went to never made a hard distinction - you graduated with a CS degree regardless of the electives you took. The same goes for Boston College. MIT lists the degree as a Bachelor of Science in Computer Science and Engineering. Hell, even Stanford, which you listed, only offers a CS degree, with no distinction for Software Engineering. Again, I'm not saying that the disciplines are the same. They are not. What I am saying is that the term 'Computer Science' is often used as a catch-all term by universities to describe whatever programming degree they offer.
  5. My first thought: It takes way too long to load. It also looks very boring and dated. Black and gray would've been edgy in 1999. Now? It's a tired look. I also found it hard to read with that color combination. There aren't any structural issues. I just find it to be forgettable overall.
  6. You need to stop saying this. Many universities don't make the distinction.
  7. I fail to see why creating a new account with the desired name hasn't been considered. The only 'barrier' I can see is Ken's post count not transferring over.
  8. Actually, it's a missing quote. And I assumed it was a typo that the OP made from not simply copying his code, but rather rewriting it here in a hurry.
  9. It should work. Show where your JavaScript is in relation to your HTML.
  10. To be honest, all of this can be done directly in .NET, without any JavaScript. You can obtain the query string value, then have the code-behind render the proper server controls based on that value - regular controls like normal text fields for someone adding a record, and an editable DetailsView for someone looking to edit an existing record. If you still want to do it through JavaScript, do a google search for getElementByClass(). EDIT: also, I'm not sure of the ".NET stops you from using HTML element ids" thing. I've heard it myself, but a quick, dirty test of a small ASP.NET app shows me that the elements are being rendered with the ids I gave their corresponding controls. I have the feeling that if it's true, it's based on which version of ASP.NET you're using. Running your project through the debugger and looking at its rendered source should give you the answer.
  11. From the looks of things, it appears that it's complaining that obj (your spans) are undefined at the time where you attempt to add the makeMe functions to window.onload, and therefore have no style attribute to refer to.
  12. if (isset($_POST['submit'])) { if (!empty($_POST['cell'])) { if (!is_numeric($_POST['cell'])) { echo "Cell number is incorrect."; } else { echo "Cell number is valid."; } } else { echo "Cell number cannot be left empty."; } }
  13. Like Ken said, you'd have to use AJAX. I'm getting the feeling that you're shooting blind here. That you're not entirely comfortable with JavaScript, and are essentially throwing code against the wall to see what sticks. I was there myself not too long ago. Unfortunately, that's not the most effective way to code. My advice is to get a good JavaScript book. I find John Resig's book to be the best: Pro JavaScript Techniques. Also, if that's what your DB tables actually look like, you should probably spend some time with database design as well. Cities should be in their own table, with their home country's id as a field to link them, like so: Countries table - id name 1 America 2 Albania 3 Argentina . . . ---------------------------------------- Cities table id country_id name . . . 22 1 Baltimore 23 1 Boston
  14. 'Sponcers' is spelled wrong - it should be 'Sponsors.'
  15. To be honest, your best bet for learning is doing. I learned most of what I know of PHP by dabbling in small projects and experiments and interacting with people here. Tutorial sites often go over the how, but not necessarily the why. Both books and tutorial sites tend to gloss over or ignore best practices (although there are exceptions). There's nothing like getting feedback and criticism from professionals, which many of us here are.
  16. So, was that div just added by your partner, or was it there originally?
  17. Yeah, a 1MB JavaScript file just screams that it's in need of refactoring. Stick to DRY - Don't Repeat Yourself. If you find yourself repeating entire sections of code, put it in a function. Ah, that's not really the best design decision (as you're currently learning the hard way). Ideally, your markup should be separate from your PHP, and include/require-ed in with the bare minimum of code needed to pass in processed values for display. JavaScript library code should also be put into external files. Your critical JS - the stuff that actually manipulates page items - should be as small and concise as possible. Again, DRY. Also, are you coding your JS in an unobtrusive manner (i.e., not sticking a bunch of repeated JS in HTML tags)? That can save a lot of repetition, and is really the way to go. It also facilitates Separation of Concerns, making it easier for one to modify, edit, and debug their code.
  18. Functions contain argument lists for a reason. There is never a good reason to use global.
  19. It still boggles my mind that a lot of you were essentially born into the internet age. This is probably how people in the early 1900's felt when the automobile exploded on the scene. "What? You mean you never rode a horse into town?" I'm actually kind of sad that geocities disappeared. I had an epic poetry site hosted there back in the day. I was Linkin Park before they were Linkin Park. But I digress. Those old hosts were essentially a record of our collective awkward phase. Embarrassing and humorous to look at, but pivotal in turning the web into what it is today.
  20. This thread is so surreal. In one corner we have the whole, "OMG, girl coders?!" aspect. In another, we have oni-kun raging against the machine AGAIN. We have one drive-by "I'm a girl" post, and just a general level of chaos (and I'm guessing deleted posts). It's so absurd. Someone needs to link a YouTube vid of Yakkety Sax to complete the effect.
  21. This thread amuses me on multiple levels.
  22. 1. You shouldn't use short tags. Instead, use the full <?php ?> pair. 2. You can't output HTML in your if-statement in the manner that you're trying. Either echo/print it, or exit PHP. 3. Like Alex said, you're missing a closing '}' at the end of the else. 4. This looks very much like a homework question, which we generally frown on here.
  23. So I suppose content quality is not reasonable issue for you I was just about to say the same thing. To the OP, fixing your design issues is akin to putting lipstick on a pig. Yeah, it may make it more pleasant, but at the end of the day, it's still a pig. You could make your site as slick as you want it, but the content - what the site actually is - won't change or somehow be improved because of it. And, a site like yours won't maintain readership with the tutorials at their current level of quality. Like others have said, your web stats are essentially a myth - between those of us looking at your site because of this thread, the people you've personally told (family, friends, etc.), and the various bots out there that crawl every site, you shouldn't put too much stock in what those numbers are saying. They are not an indicator of the quality of your content. Further, some of us in this thread do this kind of thing for a living - we know what we're talking about. The bottom line is this - criticism is part of the gig, and there's no such thing as 'off limits' when you put a site online. If all neutral 3rd parties are telling you that your content, as it currently stands, is an issue, then what's more logical - that all of us are wrong, or are somehow being unfair, or that we're right and are trying to help you remedy the problem? In terms of design issues, Mchl mentioned one. I have one more - you need to properly indent your code blocks. A simple: $code = str_replace(' ', ' ', $code); should do the trick, assuming you use spaces instead of tabs.
  24. Unlimited space and bandwidth? No such thing. There are free shared hosting accounts, but like seventheyejosh intimated, you get what you pay for. Look into Awardspace. I used them once a few years ago. They were pretty decent for a free host.
×
×
  • 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.