You will not get a loan contingent on the sale of your home. However, if you qualify for both homes then you can put an offer on the house. You need to talk to a lender to see if you qualify for both homes. if you working with an agent, that agent should be able to answer these questions for you.
if you are not working with an agent, plese call me.