Jump to content

jardrake

Members
  • Content count

    18
  • Joined

  • Last visited

  • Days Won

    1

jardrake last won the day on February 22 2013

jardrake had the most liked content!

Community Reputation

2 Neutral

About jardrake

  • Rank
    Newbie

Contact Methods

  • Website URL
    http://www.afterhoursprogramming.com

Profile Information

Previous Fields

  • Languages
    html, css, javascript, php, coldfusion, python, sql, and asp
  1. Site-SEO-Analysis.com Criticism

    Greetings! I have been working on the design for site-seo-analysis.com. It's practically finished and the algorithm is good to go. Please help me by providing some helpful criticism (design, functionality, or usability). The beta version banner is only temporary and I have to remove it The website analyzes web pages or websites with respect to search engine optimization ultimately hoping to help people rank their awesome websites higher in search engine results. Thanks for your help!
  2. Linking or re-directing one CSS entry to another?

    I don't know what all you have tried, but PHP can dynamically generate the CSS. Maybe not the best solution, but the power of PHP is always neglected. For some reason, people believe that files have to be a certain type, but PHP files can output whatever you want. RSS feeds can even be PHP files that just output xml code. Anyways, I hope this idea helps.
  3. Save your money! Programmers love sharing their knowledge, maybe not their scripts, but they will share useful knowledge about the language. Type in something like JavaScript tutorials into Google. Of course, w3schools will top the list, but there are others as well.
  4. FBLA Competition Website

    I personally like the website. If I was to offer any critique it would be to incorporate color. Sure, black, gray, and white is a cool monochromatic scheme, but why not highlight focus with some red or another color. What I mean is that there is nothing that particular draws my attention to where I should begin. Colors are perfect for that. Best of luck to you!
  5. Thanks a lot Coaxsist for the fieldset catch. I have built my own CMS that does miss a few things I am glad you enjoy it. That is precisely what I intended it to be. I want to speak as plain as possible and have the tutorials flow as if I am talking to you. I always wanted to be taught that way.
  6. Send JSON through AJAX

    Well 2 things here, nothing should look like it is happening as AJAX is behind the scenes (use firebug on FireFox to see ajax calls). Second, PHP should be $tmp = json_decode($_POST["json"]);
  7. disabling user actions

    Hopefully, you are using jQuery You can place the buttons in a div and then do something like <form action="#" method="post"><div id="someId"><input type="button" onClick="sendRequest();return false;" value="Submit" name="someButton"/></div></form><script>function sendRequest() { $('#someId').html('Loading...'); setInterval('showButton()',2000); // too lazy to make an ajax request }function showButton() { $('#someId').html('<input type="button" onClick="sendRequest();return false;" value="Submit" name="someButton"/>');}</script> So on the success of your ajax request, you can call the function showButton() to remove the 'loading...' message. Of course, you could also set the HTML to a loading .gif image instead.
  8. Send JSON through AJAX

    pfft, there is no way you are new to JavaScript. You're code is rather advanced I didn't dig to deep into your serializeObject... But since you are harnessing the power of jQuery, you can probably do some modification of: jsonData = JSON.stringify($('form').serializeObject());jQuery.post("someFileName.php", {json: jsonData}, function(data){ console.log(data); });
  9. Can't get <div>'s to display at the right spot

    Try creating a class for all of the divs with something like: <html><head><style>.div-group { display:inline-block; width:33%; height:150px; background-color:#900;}</style></head><body><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div><div class="div-group"></div></body></html> You don't actually need the "background-color:#900;" that was for my testing purposes
  10. spacing issue

    wendilogic What you are asking is not impossible, but a very messy solution would be required. The best option is how you currently have it. Since each column is different from each other, there is no good way for the middle column to know exactly how to space itself equally from the other two columns that are suppose to be flush with different ends.
  11. casting form data to integer

    Whoa, what's up with using your # everywhere instead of their real values like ( and ). Anyways, what type of database are you using, are you sure it supports integer and not int?
  12. Cannot display username from session

    Since you never set $_SESSION['username'] equal to anything, it will only echo out null. Also, $username = "trainee" is silently failing because you are setting equal to and not testing if equal to. This is a remarkably common mistake of using = when you meant to use ==.
  13. SQL Injection

    This highly depends on what server side language you are using. Props to thescientist for recommending PDO because it is one of the awesome classes in PHP. Essentially, an sql injection occurs when a user injects code that looks like sql code and reads as sql code when put in the query. //partial PHP codeWARNING: this code is an example of bad code"SELECT username, passwordFROM usersWHERE username = $_POST['username']AND password = $_POST['password']" Suppose you have that query, and I send the post variables of $_POST['username'] = " 'aaa' OR 1=1 -- "Now you have, "SELECT username, password FROM users WHERE username = 'aaa' OR 1=1 -- The AND statement is now left out because it was commented, and now I get every username and password because 1 is always equal to 1. If for some odd reason you printed out those results to the screen like to show their username, I would have a list of all the usernames in your 'users' table. PDO escapes this issue with the execute statement and using placeholders in the sql query.
  14. Just a quick note $_SERVER['HTTP_USER_AGENT'] is going to give you a nasty little string like Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11 so you will need to employ some regex and tinker with all of the browsers to see exactly what each browser sends as the agent string. Personally, I think it is a terrible idea no matter what reason you provide.
  15. I acknowledge what you all are trying to do, and I am not trolling. I really just not a fan of correcting outdated deprecated code. You wouldn't want to fix something that you know will be on the next update or so. That makes me question why it is that we aren't fixing their bigger issue first. Let me try to explain with a pathetic analogy . If you had a problem with a small part of your car's muffler, and that part was recalled, wouldn't you want them to show you how to get a new muffler rather than to fix your old broken muffler? eh, I give up lol
×