treehouse : what would you like to learn today?
Web Design Web Development iOS Development

TT_Mark

  • Stock Quotes Option

    Ok, cool. So we've established the problem. That makes things a little easier. Your best bet is to take a look at the noConflict() page here http://api.jquery.com/jQuery.noConflict/ Essentially what you'll need to do is in the second yel…
    Comment by TT_Mark March 2012 permalink
  • Stock Quotes Option

    Hmm..It's difficult to say exactly, because you have a lot of JS on the page However, I would have tried something like: //
    Comment by TT_Mark March 2012 permalink
  • Stock Quotes Option

    I would guess it has something to do with the fact you are referencing two different JavaScript libraries, both of which are competing for the '$' symbol. You'll need to put this before the stock code $.noConflict();
    Comment by TT_Mark March 2012 permalink
  • BG Loop with CSS

    @cacildo JavaScript, not Java. The two are completely different languages
    Comment by TT_Mark March 2012 permalink
  • where can I get a xcode version which would work on mac os 10.6.8

    I've never lost anything in a Mac upgrade process. Everything should still be there when you've done, sometimes you won't even notice the difference
    Comment by TT_Mark March 2012 permalink
  • Get PHP to create pages.

    copy() clones the file and it's contents and creates an entirely new file with those contents.
    Comment by TT_Mark March 2012 permalink
  • Get PHP to create pages.

    You'll need to make sure you have permissions to create files in the directory. So if you're copying fails due to permissions, take a look at chmod()
    Comment by TT_Mark March 2012 permalink
  • Stock Quotes Option

    You'll need to find the correct stock symbol for the company you wish to display e.g. 'GOOG' is Google. For example, here is the NASDAQ list http://www.eoddata.com/symbols.aspx
    Comment by TT_Mark March 2012 permalink
  • Somethings gone terribly wrong, what do I do?

    @karlpcrowley Removed the one from Noah's post as well
    Comment by TT_Mark March 2012 permalink
  • Useful tools

    My Regular Expression tester of choice http://gskinner.com/RegExr/
    Comment by TT_Mark March 2012 permalink
  • $_GET to $_POST?

    Filter your data though! Make sure you have floats where you expect floats and strings where you accept strings. Otherwise there could be a whole load of problems later on
    Comment by TT_Mark March 2012 permalink
  • Rewrite /a/username/p/posts ?

    Firstly I don't think you're example is particularly safe, as ([^/]) matches exeverything except '/'. There are other characters you'll want to ignore as well as they are non URL safe, so it's best to write the rule wit…
    Comment by TT_Mark February 2012 permalink
  • Update PHP Automatically?

    You'll need to do a JavaScript AJAX request to get the new information, then append that to the table
    Comment by TT_Mark February 2012 permalink
  • Financial Calculator

    Unfortunately my Drupal knowledge is non-existent, however I would guess the first thing you need to do is decide whether you want it to update 'on-the-fly' with real time calculations, or if you want people to hit a 'Submit' but…
    Comment by TT_Mark February 2012 permalink
  • Simple Contact form

    1) Think about what you're doing. $Email and $email are not the same. PHP variables are case sensitive. 3) Remove the print which redirects to contactthanks.php
    Comment by TT_Mark February 2012 permalink
  • Inner join vs two select statements

    Always a join for this kind of thing. The fewer SQL queries you have to perform on a page the better performance will be, within reason.
    Comment by TT_Mark February 2012 permalink
  • I need to use ajax to send a php mailer form. HELP?

    Ah, this is a good question and one I tried to combat on an online ordering system I did. The solution I ended up using (probably not the best but I was being rushed) was what @bungle suggested. The client submits the order form, it sends an email …
    Comment by TT_Mark February 2012 permalink
  • IE7 Emulator

    Or you could install Windows XP mode and upgrade the default IE6 browser to IE7 http://www.microsoft.com/windows/virtual-pc/download.aspx
    Comment by TT_Mark January 2012 permalink
  • php problems

    What's the exact error message you are getting, and what is on line 34 of that file?
    Comment by TT_Mark January 2012 permalink
  • Web Hosting

    For one site MediaTemple probably is a bit overkill. That's not to say it's not a good choice though, you can host multiple sites from one account, their support is fantastic and I've never had any problems
    Comment by TT_Mark January 2012 permalink
  • Table Help Please!?!

    It's because there is a border on the main table, then a border on each of the cells within the table. Remove the padding on the table and add border-spacing:0
    Comment by TT_Mark January 2012 permalink
  • in jquery html()

    I believe what he is saying is that he's getting some content from an external webservice and it contains html elements. However, when outputting the content to the page using $(element).html(content); the html elements are outputted as is, i…
    Comment by TT_Mark January 2012 permalink
  • HELP NEEDED URGENT WITH CSS PLEASE

    Sorry, but that has to be one of the worst examples of HTML coding I have seen in my whole life. I seriously hope you did not do it yourself and that it's part of the e-commerce platform you our using. Otherwise, get it out of the nested tabl…
    Comment by TT_Mark January 2012 permalink
  • Use php (instead of .htaccess) to internally redirect to query string?

    I have to ask why you want to do this? Surely it's better in the .htaccess
    Comment by TT_Mark January 2012 permalink
  • table tr> td- does not give me the result I want

    I may be rocking the boat here, but they are technically 'headings' for the table, so should you not be using
    Comment by TT_Mark January 2012 permalink
  • cascading issues

    You don't put a space as it's the h2 that has the id you are targeting. h2 #id will target an element inside the h2, maybe a span, that has that id
    Comment by TT_Mark January 2012 permalink
  • Get ID from link

    You're not really redirecting URLs in the correct way, you should be using the .htaccess/web.config to do this because it keeps your code cleaner and more manageable However, if you want to continue in the same way, just look at what you are d…
    Comment by TT_Mark December 2011 permalink
  • Setting backround color of tablecell dynamically?

    There was a ':contains' selector in the CSS3 spec at one point, however I cannot find it in the current version. Basically it was designed so that you could do td:contains("5") { background: red; } however, I guess they binned …
    Comment by TT_Mark December 2011 permalink
  • Django vs Rails

    Ah, fair enough, makes sense to me! I've been through the intro tutorials to both of them. Rails was a pain to install, kicking up a fuss over file permissions constantly, whereas Django was really easy. However, having used them both for a l…
    Comment by TT_Mark December 2011 permalink
  • Django vs Rails

    Cheers, however I have to say I think you've possibly made a mistake in your comparison. Comparing Rails to Python is an unbalanced comparison, Rails is a framework whereas Python is a language. Any person of sane mind would prefer Rails to Pyt…
    Comment by TT_Mark December 2011 permalink